Home
last modified time | relevance | path

Searched refs:res_name (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tools/aapt2/optimize/
DVersionCollapser_test.cpp38 const StringPiece res_name = "@android:string/foo"; in TEST() local
41 res_name, in TEST()
49 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
52 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
57 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
62 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
67 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
70 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
73 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
81 const StringPiece res_name = "@android:string/foo"; in TEST() local
[all …]
/frameworks/base/libs/androidfw/tests/
DIdmap_test.cpp96 ResTable::resource_name res_name; in TEST_F() local
97 ASSERT_TRUE(target_table_.getResourceName(R::array::integerArray1, true, &res_name)); in TEST_F()
99 ASSERT_TRUE(res_name.package != NULL); in TEST_F()
100 ASSERT_TRUE(res_name.type != NULL); in TEST_F()
101 ASSERT_TRUE(res_name.name8 != NULL); in TEST_F()
103 EXPECT_EQ(String16("com.android.basic"), String16(res_name.package, res_name.packageLen)); in TEST_F()
104 EXPECT_EQ(String16("array"), String16(res_name.type, res_name.typeLen)); in TEST_F()
105 EXPECT_EQ(String8("integerArray1"), String8(res_name.name8, res_name.nameLen)); in TEST_F()
/frameworks/base/tools/aapt2/test/
DCommon.h55 T* GetValueForConfigAndProduct(ResourceTable* table, const android::StringPiece& res_name, in GetValueForConfigAndProduct() argument
58 Maybe<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
70 const android::StringPiece& res_name,
75 T* GetValueForConfig(ResourceTable* table, const android::StringPiece& res_name, in GetValueForConfig() argument
77 return GetValueForConfigAndProduct<T>(table, res_name, config, {}); in GetValueForConfig()
81 T* GetValue(ResourceTable* table, const android::StringPiece& res_name) { in GetValue() argument
82 return GetValueForConfig<T>(table, res_name, {}); in GetValue()
DBuilders.cpp120 ResourceName res_name = ParseNameOrDie(name); in AddValue() local
121 CHECK(table_->AddResourceWithIdMangled(res_name, id, config, {}, std::move(value), in AddValue()
130 ResourceName res_name = ParseNameOrDie(name); in SetSymbolState() local
133 CHECK(table_->SetVisibilityWithIdMangled(res_name, visibility, id, GetDiagnostics())); in SetSymbolState()
134 CHECK(table_->SetAllowNewMangled(res_name, AllowNew{}, GetDiagnostics())); in SetSymbolState()
141 ResourceName res_name = ParseNameOrDie(name); in SetOverlayable() local
142 CHECK(table_->SetOverlayable(res_name, overlayable, GetDiagnostics())); in SetOverlayable()
DCommon.cpp48 const android::StringPiece& res_name, in GetValueForConfigAndProduct() argument
51 Maybe<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp195 const ResourceNameRef& res_name, in MergeConfigValue() argument
215 << "resource '" << res_name << "' has a conflicting value for " in MergeConfigValue()
248 const ResourceNameRef res_name(src_package->name, src_type->type, src_entry->name); in DoMerge() local
252 << "resource " << res_name in DoMerge()
272 MergeConfigValue(context_, res_name, overlay, dst_config_value, in DoMerge()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp986 ResourceNameRef res_name(package->name, type->type, entry->name); in VerifyNoExternalPackages() local
993 << "generated id '" << res_name in VerifyNoExternalPackages()
998 << "defined resource '" << res_name in VerifyNoExternalPackages()
1030 ResourceNameRef res_name(package->name, type->type, entry->name); in VerifyNoIdsSet() local
1032 DiagMessage() << "entry " << res_name << " has ID " in VerifyNoIdsSet()
1346 ResourceName res_name = exported_symbol.name; in MergeExportedSymbols() local
1347 if (res_name.package.empty()) { in MergeExportedSymbols()
1348 res_name.package = context_->GetCompilationPackage(); in MergeExportedSymbols()
1351 Maybe<ResourceName> mangled_name = context_->GetNameMangler()->MangleName(res_name); in MergeExportedSymbols()
1353 res_name = mangled_name.value(); in MergeExportedSymbols()
[all …]
/frameworks/base/tools/aapt2/tools/consumers/
Dduplicates.py28 for res_name, entries in tracker.resource_definitions.iteritems():