Home
last modified time | relevance | path

Searched refs:FindResource (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/tools/aapt2/link/
DNoDefaultResourceRemover_test.cpp42 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/foo"))); in TEST()
43 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:string/bar"))); in TEST()
44 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/bat"))); in TEST()
45 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/baz"))); in TEST()
67 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep1"))); in TEST()
68 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep2"))); in TEST()
69 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
85 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
104 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep1"))); in TEST()
105 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
DTableMerger_test.cpp77 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/foo"))); in TEST_F()
78 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/bar"))); in TEST_F()
79 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:styleable/view"))); in TEST_F()
82 EXPECT_FALSE(final_table.FindResource(test::ParseNameOrDie("com.app.b:id/foo"))); in TEST_F()
85 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/com.app.b$foo"))); in TEST_F()
485 std::optional<ResourceTable::SearchResult> search_result = final_table.FindResource(name); in TEST_F()
519 std::optional<ResourceTable::SearchResult> search_result = final_table.FindResource(name); in TEST_F()
DReferenceLinker.cpp390 auto result = table->FindResource(transformed_reference.name.value()); in LinkReference()
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp64 maybe_result = table->FindResource(test::ParseNameOrDie("android:dimen/two")); in TEST_F()
69 table->FindResource(test::ParseNameOrDie("android:integer/three")); in TEST_F()
77 table->FindResource(test::ParseNameOrDie("android:string/five")); in TEST_F()
83 maybe_result = table->FindResource(test::ParseNameOrDie("android:attr/bar")); in TEST_F()
87 maybe_result = table->FindResource(test::ParseNameOrDie("android:attr/baz")); in TEST_F()
156 auto result = table->FindResource(test::ParseNameOrDie("android:attr/foo")); in TEST_F()
/frameworks/base/tools/aapt2/
DResourceParser_test.cpp917 table_.FindResource(test::ParseNameOrDie("attr/foo")); in TEST_F()
922 result = table_.FindResource(test::ParseNameOrDie("attr/bar")); in TEST_F()
937 table_.FindResource(test::ParseNameOrDie("attr/foo")); in TEST_F()
945 result = table_.FindResource(test::ParseNameOrDie("attr/bar")); in TEST_F()
965 table_.FindResource(test::ParseNameOrDie("string/foo")); in TEST_F()
983 table_.FindResource(test::ParseNameOrDie("string/bar")); in TEST_F()
1065 search_result = table_.FindResource(test::ParseNameOrDie("drawable/bar")); in TEST_F()
1115 auto search_result = table_.FindResource(test::ParseNameOrDie("string/bar")); in TEST_F()
1123 search_result = table_.FindResource(test::ParseNameOrDie("string/fiz")); in TEST_F()
1131 search_result = table_.FindResource(test::ParseNameOrDie("string/fuz")); in TEST_F()
[all …]
DResourceTable_test.cpp167 table.FindResource(test::ParseNameOrDie("android:string/foo")); in TEST()
191 std::optional<ResourceTable::SearchResult> result = table.FindResource(name); in VisibilityOfResource()
251 result = table.FindResource(name); in TEST()
259 result = table.FindResource(name); in TEST()
278 std::optional<ResourceTable::SearchResult> search_result = table.FindResource(name); in TEST()
DResourceTable.h321 std::optional<SearchResult> FindResource(const ResourceNameRef& name) const;
322 std::optional<SearchResult> FindResource(const ResourceNameRef& name, ResourceId id) const;
DResourceTable.cpp600 std::optional<ResourceTable::SearchResult> ResourceTable::FindResource( in FindResource() function in aapt::ResourceTable
619 std::optional<ResourceTable::SearchResult> ResourceTable::FindResource(const ResourceNameRef& name, in FindResource() function in aapt::ResourceTable
DDebug.cpp378 std::optional<ResourceTable::SearchResult> result = table->FindResource(style_name); in PrintStyleGraph()
DResourceParser.cpp485 if (!table_->FindResource(stripped_resource)) { in ParseResources()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp44 auto result = table->FindResource(res_name); in GetEntry()
49 auto result = table->FindResource(res_name, id); in GetEntry()
79 auto search_result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/foo")); in TEST()
84 search_result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/bar")); in TEST()
89 search_result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/baz")); in TEST()
94 search_result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/fiz")); in TEST()
193 new_table.FindResource(test::ParseNameOrDie("com.app.a:layout/main")); in TEST()
199 result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/foo")); in TEST()
238 new_table.FindResource(test::ParseNameOrDie("com.app.a:integer/overlayable")); in TEST()
646 new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/foo")); in TEST()
[all …]
/frameworks/base/tools/aapt2/test/
DCommon.cpp50 std::optional<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
DCommon.h58 std::optional<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp489 result.FindResource(test::ParseNameOrDie("lib:id/foo")); in TEST_F()
520 result.FindResource(test::ParseNameOrDie("lib:style/Theme")); in TEST_F()
824 auto search_result = output_table.FindResource(test::ParseNameOrDie(name)); in TEST_F()
864 auto search_result = output_table.FindResource(test::ParseNameOrDie(name_zero)); in TEST_F()
872 search_result = output_table.FindResource(test::ParseNameOrDie(name_one)); in TEST_F()
879 search_result = output_table.FindResource(test::ParseNameOrDie(name_two)); in TEST_F()
927 auto search_result = output_table.FindResource(test::ParseNameOrDie(name_zero)); in TEST_F()
937 search_result = output_table.FindResource(test::ParseNameOrDie(name_one)); in TEST_F()
946 search_result = output_table.FindResource(test::ParseNameOrDie(name_two)); in TEST_F()
957 search_result = output_table.FindResource(test::ParseNameOrDie(name_three)); in TEST_F()
/frameworks/base/tools/aapt2/cmd/
DDump.cpp298 std::optional<ResourceTable::SearchResult> target = table->FindResource(target_style); in Dump()
DLink.cpp1720 const auto search_result = table->FindResource(name_ref); in ResolveTableEntry()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp186 std::optional<ResourceTable::SearchResult> result = table_->FindResource(name); in FindByName()