Lines Matching refs:uint16_t

41 static constexpr uint16_t kMaxDexFileKeyLength = PATH_MAX;
167 3 * sizeof(uint16_t) + // method_set.size + class_set.size + dex_location.size
189 AddUintToBuffer(&buffer, static_cast<uint16_t>(info_.size())); in Save()
214 sizeof(uint16_t) * (dex_data.class_set.size() + dex_data.method_set.size()); in Save()
218 DCHECK_LE(dex_location.size(), std::numeric_limits<uint16_t>::max()); in Save()
219 DCHECK_LE(dex_data.method_set.size(), std::numeric_limits<uint16_t>::max()); in Save()
220 DCHECK_LE(dex_data.class_set.size(), std::numeric_limits<uint16_t>::max()); in Save()
221 AddUintToBuffer(&buffer, static_cast<uint16_t>(dex_location.size())); in Save()
222 AddUintToBuffer(&buffer, static_cast<uint16_t>(dex_data.method_set.size())); in Save()
223 AddUintToBuffer(&buffer, static_cast<uint16_t>(dex_data.class_set.size())); in Save()
268 uint16_t method_idx) { in AddMethodIndex()
279 uint16_t class_idx) { in AddClassIndex()
289 uint16_t method_set_size, in ProcessLine()
290 uint16_t class_set_size, in ProcessLine()
293 for (uint16_t i = 0; i < method_set_size; i++) { in ProcessLine()
294 uint16_t method_idx = line_buffer.ReadUintAndAdvance<uint16_t>(); in ProcessLine()
300 for (uint16_t i = 0; i < class_set_size; i++) { in ProcessLine()
301 uint16_t class_def_idx = line_buffer.ReadUintAndAdvance<uint16_t>(); in ProcessLine()
366 /*out*/uint16_t* number_of_lines, in ReadProfileHeader()
372 sizeof(uint16_t); // number of lines in ReadProfileHeader()
389 *number_of_lines = safe_buffer.ReadUintAndAdvance<uint16_t>(); in ReadProfileHeader()
403 uint16_t dex_location_size = header_buffer.ReadUintAndAdvance<uint16_t>(); in ReadProfileLineHeader()
404 line_header->method_set_size = header_buffer.ReadUintAndAdvance<uint16_t>(); in ReadProfileLineHeader()
405 line_header->class_set_size = header_buffer.ReadUintAndAdvance<uint16_t>(); in ReadProfileLineHeader()
429 static constexpr uint16_t kMaxNumberOfEntriesToRead = 5120; in ReadProfileLine()
430 uint16_t methods_left_to_read = line_header.method_set_size; in ReadProfileLine()
431 uint16_t classes_left_to_read = line_header.class_set_size; in ReadProfileLine()
434 uint16_t methods_to_read = std::min(kMaxNumberOfEntriesToRead, methods_left_to_read); in ReadProfileLine()
435 uint16_t max_classes_to_read = kMaxNumberOfEntriesToRead - methods_to_read; in ReadProfileLine()
436 uint16_t classes_to_read = std::min(max_classes_to_read, classes_left_to_read); in ReadProfileLine()
438 size_t line_size = sizeof(uint16_t) * (methods_to_read + classes_to_read); in ReadProfileLine()
487 uint16_t number_of_lines; in LoadInternal()
555 const std::set<uint16_t>& methods = info_it->second.method_set; in ContainsMethod()
561 bool ProfileCompilationInfo::ContainsClass(const DexFile& dex_file, uint16_t class_def_idx) const { in ContainsClass()
567 const std::set<uint16_t>& classes = info_it->second.class_set; in ContainsClass()