/aosp12/system/core/property_service/libpropertyinfoparser/ |
H A D | property_info_parser.cpp | 102 if (trie_node.prefix(i)->type_index != ~0u) { in CheckPrefixMatch() 103 *type_index = trie_node.prefix(i)->type_index; in CheckPrefixMatch() 123 if (trie_node.type_index() != ~0u) { in GetPropertyInfoIndexes() 124 return_type_index = trie_node.type_index(); in GetPropertyInfoIndexes() 156 if (type_index != nullptr) { in GetPropertyInfoIndexes() 158 *type_index = trie_node.exact_match(i)->type_index; in GetPropertyInfoIndexes() 160 *type_index = return_type_index; in GetPropertyInfoIndexes() 170 if (type_index != nullptr) *type_index = return_type_index; in GetPropertyInfoIndexes() 177 uint32_t type_index; in GetPropertyInfo() local 187 if (type_index == ~0u) { in GetPropertyInfo() [all …]
|
/aosp12/art/libprofile/profile/ |
H A D | profile_compilation_info.h | 120 return dex_profile_index == other.dex_profile_index && type_index == other.type_index; 124 ? type_index < other.type_index 335 DCHECK(type_index.IsValid()); in AddClass() 336 DCHECK(type_index.index_ <= data->num_type_ids || in AddClass() 338 data->class_set.insert(type_index); in AddClass() 346 dex::TypeIndex type_index, 348 DCHECK(type_index.IsValid()); 355 data->class_set.insert(type_index); 631 DCHECK(type_index.IsValid()); in GetTypeDescriptor() 633 if (type_index.index_ < num_type_ids) { in GetTypeDescriptor() [all …]
|
H A D | profile_compilation_info.cc | 721 if (!type_index.IsValid()) { in AddClass() 724 data->class_set.insert(type_index); in AddClass() 1265 if (type_index.IsValid()) { in AddMethod() 1266 dex_pc_data->AddClass(type_index); in AddMethod() 2069 os << type_index.index_ << ","; in DumpInfo() 2101 class_set->insert(type_index); in GetClassesAndMethods() 2497 uint16_t type_index = 0u; in ReadClasses() local 2512 type_index += type_index_diff; in ReadClasses() 2513 if (type_index >= num_type_ids) { in ReadClasses() 2786 uint16_t type_index = 0u; in ReadMethods() local [all …]
|
H A D | profile_test_helper.h | 77 dex::TypeIndex type_index, 79 return info->AddClass(*dex, type_index, annotation); 129 for (dex::TypeIndex type_index : dex_pc_data.classes) { in EqualInlineCaches() local 134 return type_index == type_ref.TypeIndex(); in EqualInlineCaches() 138 const char* descriptor = info.GetTypeDescriptor(dex_file, type_index); in EqualInlineCaches()
|
H A D | profile_compilation_info_test.cc | 252 for (uint32_t type_index = 0; type_index != num_type_ids1; ++type_index) { in TEST_F() local 253 ASSERT_TRUE(info.AddClass(*dex1, dex::TypeIndex(type_index))); in TEST_F() 256 for (uint32_t type_index = num_type_ids1; type_index != DexFile::kDexNoIndex16; ++type_index) { in TEST_F() local 257 std::string descriptor = "LX" + std::to_string(type_index) + ";"; in TEST_F() 266 for (uint32_t type_index = 0; type_index != num_type_ids2; ++type_index) { in TEST_F() local 267 ASSERT_TRUE(info.AddClass(*dex2, dex::TypeIndex(type_index))); in TEST_F() 274 for (uint32_t type_index = num_type_ids2; type_index != DexFile::kDexNoIndex16; ++type_index) { in TEST_F() local 275 std::string descriptor = "LX" + std::to_string(type_index) + ";"; in TEST_F() 676 dex::TypeIndex type_index = *dex_pc_data.classes.begin(); in TEST_F() local 677 ASSERT_FALSE(dex2->IsTypeIndexValid(type_index)); in TEST_F() [all …]
|
/aosp12/art/compiler/optimizing/ |
H A D | instruction_builder.h | 173 HNewArray* BuildNewArray(uint32_t dex_pc, dex::TypeIndex type_index, HInstruction* length); 177 dex::TypeIndex type_index, 202 dex::TypeIndex type_index, 207 dex::TypeIndex type_index, 217 HLoadClass* BuildLoadClass(dex::TypeIndex type_index, uint32_t dex_pc); 219 HLoadClass* BuildLoadClass(dex::TypeIndex type_index, 226 Handle<mirror::Class> ResolveClass(ScopedObjectAccess& soa, dex::TypeIndex type_index) 229 bool LoadClassNeedsAccessCheck(dex::TypeIndex type_index, ObjPtr<mirror::Class> klass) 278 HNewInstance* BuildNewInstance(dex::TypeIndex type_index, uint32_t dex_pc); 292 ObjPtr<mirror::Class> LookupResolvedType(dex::TypeIndex type_index,
|
H A D | instruction_builder.cc | 1277 type_index, in BuildNewInstance() 2237 HLoadClass* cls = BuildLoadClass(type_index, dex_pc); in BuildNewArray() 2391 type_index = local_type_index; in BuildLoadClass() 2407 type_index, in BuildLoadClass() 2430 auto it = class_cache_.find(type_index); in ResolveClass() 2441 class_cache_.Put(type_index, h_klass); in ResolveClass() 2469 if (type_index != outer_class_def.class_idx_) { in LoadClassNeedsAccessCheck() 3329 dex::TypeIndex type_index(instruction.VRegC_22c()); in ProcessDexInstruction() local 3339 dex::TypeIndex type_index(instruction.VRegB_35c()); in ProcessDexInstruction() local 3487 BuildLoadClass(type_index, dex_pc); in ProcessDexInstruction() [all …]
|
H A D | sharpening.cc | 171 dex::TypeIndex type_index = load_class->GetTypeIndex(); in ComputeLoadClassKind() local 203 const char* klass_descriptor = dex_file.StringByTypeIdx(type_index); in ComputeLoadClassKind() 230 compiler_options.IsImageClass(dex_file.StringByTypeIdx(type_index))) { in ComputeLoadClassKind()
|
H A D | code_generator_arm_vixl.h | 619 PcRelativePatchInfo* NewBootImageTypePatch(const DexFile& dex_file, dex::TypeIndex type_index); 638 dex::TypeIndex type_index,
|
H A D | code_generator_arm64.cc | 285 dex::TypeIndex type_index = cls_->GetTypeIndex(); in EmitNativeCode() local 286 __ Mov(calling_convention.GetRegisterAt(0).W(), type_index.index_); in EmitNativeCode() 4825 dex::TypeIndex type_index, in NewBootImageTypePatch() argument 4834 dex::TypeIndex type_index = load_class->GetTypeIndex(); in NewBssEntryTypePatch() local 4850 return NewPcRelativePatch(&dex_file, type_index.index_, adrp_label, patches); in NewBssEntryTypePatch() 4926 const DexFile& dex_file, dex::TypeIndex type_index, Handle<mirror::Class> handle) { in DeduplicateJitClassLiteral() argument 4927 ReserveJitClassRoot(TypeReference(&dex_file, type_index), handle); in DeduplicateJitClassLiteral() 4929 TypeReference(&dex_file, type_index), in DeduplicateJitClassLiteral() 5300 dex::TypeIndex type_index = cls->GetTypeIndex(); in VisitLoadClass() local 5301 vixl::aarch64::Label* adrp_label = codegen_->NewBootImageTypePatch(dex_file, type_index); in VisitLoadClass() [all …]
|
/aosp12/frameworks/base/libs/androidfw/tests/ |
H A D | LoadedArsc_test.cpp | 63 const uint8_t type_index = get_type_id(app::R::string::string_one) - 1; in TEST() local 66 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() 87 const uint8_t type_index = get_type_id(sparse::R::integer::foo_9) - 1; in TEST() local 90 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() 111 const uint8_t type_index = get_type_id(sparse::R::string::only_v26) - 1; in TEST() local 114 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() 206 uint8_t type_index = get_type_id(basic::R::string::test3) - 1; in TEST() local 209 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() 391 const uint8_t type_index = get_type_id(overlayable::R::string::overlayable11) - 1; in TEST() local 394 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
|
/aosp12/system/core/property_service/libpropertyinfoparser/include/property_info_parser/ |
H A D | property_info_parser.h | 36 uint32_t type_index; member 106 uint32_t type_index() const { return node_property_entry()->type_index; } in type_index() function 146 …void GetPropertyInfoIndexes(const char* name, uint32_t* context_index, uint32_t* type_index) const; 176 uint32_t* context_index, uint32_t* type_index) const;
|
/aosp12/system/core/property_service/libpropertyinfoserializer/ |
H A D | property_info_serializer_test.cpp | 49 EXPECT_STREQ("default", property_info_area->type(root_node.type_index())); in TEST() 62 EXPECT_STREQ("1st", property_info_area->type(test_node.type_index())); in TEST() 72 EXPECT_STREQ("2nd", property_info_area->type(prefix->type_index)); in TEST() 88 EXPECT_STREQ("3rd", property_info_area->type(match1->type_index)); in TEST() 89 EXPECT_STREQ("3rd", property_info_area->type(match2->type_index)); in TEST() 90 EXPECT_STREQ("3rd", property_info_area->type(match3->type_index)); in TEST() 123 EXPECT_STREQ("4th", property_info_area->type(final_match->type_index)); in TEST() 146 EXPECT_STREQ("default", property_info_area->type(root_node.type_index())); in TEST()
|
H A D | trie_serializer.cpp | 46 uint32_t type_index = property_entry.type != nullptr && !property_entry.type->empty() in WritePropertyEntry() local 54 serialized_property_entry->type_index = type_index; in WritePropertyEntry()
|
/aosp12/art/runtime/entrypoints/quick/ |
H A D | quick_throw_entrypoints.cc | 127 dex::TypeIndex type_index(check_cast.VRegB_21c()); in artThrowClassCastException() local 129 dest_type = linker->LookupResolvedType(type_index, visitor.caller).Ptr(); in artThrowClassCastException() 131 << visitor.caller->GetDexFile()->PrettyType(type_index); in artThrowClassCastException()
|
/aosp12/art/tools/veridex/ |
H A D | flow_analysis.cc | 534 dex::TypeIndex type_index(instruction.VRegC_22c()); in ProcessDexInstruction() local 535 VeriClass* cls = resolver_->GetVeriClass(type_index); in ProcessDexInstruction() 541 dex::TypeIndex type_index(instruction.VRegB_35c()); in ProcessDexInstruction() local 542 VeriClass* cls = resolver_->GetVeriClass(type_index); in ProcessDexInstruction() 548 dex::TypeIndex type_index(instruction.VRegB_3rc()); in ProcessDexInstruction() local 550 VeriClass* cls = resolver_->GetVeriClass(type_index); in ProcessDexInstruction() 669 dex::TypeIndex type_index(instruction.VRegB_21c()); in ProcessDexInstruction() local 670 UpdateRegister(reference, resolver_->GetVeriClass(type_index)); in ProcessDexInstruction()
|
/aosp12/art/runtime/jit/ |
H A D | profile_saver.cc | 408 dex::TypeIndex type_index; member 543 dex::TypeIndex type_index = k->GetDexTypeIndex(); in CollectInternal() 556 ClassRecord{type_index, dim, copied_methods_start, methods}); in CollectInternal() 679 array_class_descriptor += dex_file->StringByTypeIdx(class_record.type_index); in UpdateProfile() 680 dex::TypeIndex type_index = in UpdateProfile() local 682 if (type_index.IsValid()) { in UpdateProfile() 683 profile_info->AddClass(profile_index, type_index); in UpdateProfile() 688 profile_info->AddClass(profile_index, class_record.type_index); in UpdateProfile() 734 dex::TypeIndex type_index = in UpdateProfile() local 736 if (type_index.IsValid()) { in UpdateProfile() [all …]
|
H A D | jit_code_cache.cc | 1534 dex::TypeIndex type_index; in GetProfiledMethods() local 1542 type_index = cls->FindTypeIndexInOtherDexFile(*dex_file); in GetProfiledMethods() 1545 type_index = cls->GetDexTypeIndex(); in GetProfiledMethods() 1547 if (!type_index.IsValid()) { in GetProfiledMethods() 1556 class_dex_file, type_index); in GetProfiledMethods()
|
/aosp12/art/runtime/dex/ |
H A D | dex_file_annotations.cc | 195 uint32_t type_index = DecodeUnsignedLeb128(&annotation); in SearchAnnotationSet() local 355 uint32_t type_index = DecodeUnsignedLeb128(annotation); in ProcessEncodedAnnotation() local 363 class_linker->ResolveType(dex::TypeIndex(type_index), in ProcessEncodedAnnotation() 368 << " annotation class " << type_index; in ProcessEncodedAnnotation() 490 dex::TypeIndex type_index(index); in ProcessAnnotationValue() local 493 type_index, in ProcessAnnotationValue() 500 const char* msg = dex_file.StringByTypeIdx(type_index); in ProcessAnnotationValue() 773 uint32_t type_index = DecodeUnsignedLeb128(&annotation); in GetAnnotationItemFromAnnotationSet() local 778 dex::TypeIndex(type_index), in GetAnnotationItemFromAnnotationSet() 1261 uint32_t type_index = DecodeUnsignedLeb128(&annotation); in IsMethodBuildAnnotationPresent() local [all …]
|
/aosp12/system/nfc/src/nfc/ndef/ |
H A D | ndef_utils.cc | 193 for (int type_index = 0; type_index < type_len; type_index++) { in NDEF_MsgValidate() local 194 if (p_rec_type[type_index] < NDEF_RTD_VALID_START || in NDEF_MsgValidate() 195 p_rec_type[type_index] > NDEF_RTD_VALID_END) in NDEF_MsgValidate()
|
/aosp12/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | LoadedArsc.h | 238 inline const TypeSpec* GetTypeSpecByTypeIndex(uint8_t type_index) const { in GetTypeSpecByTypeIndex() argument 241 const auto& type_spec = type_specs_.find(type_index + 1 - type_id_offset_); in GetTypeSpecByTypeIndex()
|
/aosp12/art/profman/ |
H A D | profman.cc | 831 for (dex::TypeIndex type_index : ic_data.classes) { in GetInlineCacheLine() local 832 val->second.classes_.insert(type_index); in GetInlineCacheLine() 849 for (dex::TypeIndex type_index : dex_data.classes_) { in GetInlineCacheLine() local 854 dump_ic << profile_info.GetTypeDescriptor(dex_file, type_index); in GetInlineCacheLine() 875 for (const dex::TypeIndex& type_index : class_types) { in GetClassNamesAndMethods() local 876 out_lines->insert(profile_info.GetTypeDescriptor(dex_file.get(), type_index)); in GetClassNamesAndMethods() 1045 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClassDef() local 1046 const dex::ClassDef* class_def = dex_file->FindClassDef(type_index); in FindClassDef() 1048 *class_ref = TypeReference(dex_file.get(), type_index); in FindClassDef()
|
H A D | profile_assistant_test.cc | 392 for (dex::TypeIndex type_index : dex_pc_data.classes) { in AssertInlineCaches() local 393 ASSERT_TRUE(type_index.IsValid()); in AssertInlineCaches() 394 if (type_ref.TypeIndex() == type_index) { in AssertInlineCaches() 401 for (dex::TypeIndex type_index : dex_pc_data.classes) { in AssertInlineCaches() local 402 ASSERT_TRUE(type_index.IsValid()); in AssertInlineCaches() 403 const char* descriptor = info.GetTypeDescriptor(dex_file, type_index); in AssertInlineCaches()
|
/aosp12/system/media/audio_utils/include/audio_utils/ |
H A D | Metadata.h | 133 inline constexpr ssize_t type_index() { 147 inline static constexpr bool contains_v = type_index<T, Ts...>() >= 0; 149 inline static constexpr ssize_t index_of() { return type_index<T, Ts...>(); }
|
/aosp12/art/dex2oat/driver/ |
H A D | compiler_driver.h | 150 dex::TypeIndex type_index,
|