Home
last modified time | relevance | path

Searched refs:res_name (Results 1 – 9 of 9) 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, false, &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.name != 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(String16("integerArray1"), String16(res_name.name, 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()
DCommon.cpp46 const android::StringPiece& res_name, in GetValueForConfigAndProduct() argument
49 Maybe<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
DBuilders.cpp119 ResourceName res_name = ParseNameOrDie(name); in AddValue() local
120 CHECK(table_->AddResourceWithIdMangled(res_name, id, config, {}, std::move(value), in AddValue()
129 ResourceName res_name = ParseNameOrDie(name); in SetSymbolState() local
132 CHECK(table_->SetVisibilityWithIdMangled(res_name, visibility, id, GetDiagnostics())); in SetSymbolState()
133 CHECK(table_->SetAllowNewMangled(res_name, AllowNew{}, GetDiagnostics())); in SetSymbolState()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp167 const ResourceNameRef& res_name, in MergeConfigValue() argument
191 << "resource '" << res_name << "' has a conflicting value for " in MergeConfigValue()
225 const ResourceNameRef res_name(src_package->name, src_type->type, src_entry->name); in DoMerge() local
229 << "resource " << res_name in DoMerge()
249 MergeConfigValue(context_, res_name, overlay, dst_config_value, in DoMerge()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp349 android::ResTable::resource_name res_name = {}; in GetResourceName() local
350 if (!table.getResourceName(id.id, true, &res_name)) { in GetResourceName()
353 return ResourceUtils::ToResourceName(res_name); in GetResourceName()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp1005 ResourceNameRef res_name(package->name, type->type, entry->name); in VerifyNoExternalPackages() local
1012 << "generated id '" << res_name in VerifyNoExternalPackages()
1017 << "defined resource '" << res_name in VerifyNoExternalPackages()
1049 ResourceNameRef res_name(package->name, type->type, entry->name); in VerifyNoIdsSet() local
1051 DiagMessage() << "entry " << res_name << " has ID " in VerifyNoIdsSet()
1359 ResourceName res_name = exported_symbol.name; in MergeExportedSymbols() local
1360 if (res_name.package.empty()) { in MergeExportedSymbols()
1361 res_name.package = context_->GetCompilationPackage(); in MergeExportedSymbols()
1364 Maybe<ResourceName> mangled_name = context_->GetNameMangler()->MangleName(res_name); in MergeExportedSymbols()
1366 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():