Home
last modified time | relevance | path

Searched refs:search_result (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp426 Maybe<ResourceTable::SearchResult> search_result = in TEST_F() local
428 ASSERT_TRUE(search_result); in TEST_F()
429 EXPECT_EQ(0x00u, search_result.value().entry->id.value().package_id()); in TEST_F()
457 Maybe<ResourceTable::SearchResult> search_result = in TEST_F() local
459 ASSERT_TRUE(search_result); in TEST_F()
460 EXPECT_EQ(0x00030001u, search_result.value().entry->id.value()); in TEST_F()
461 ASSERT_EQ(1u, search_result.value().entry->values.size()); in TEST_F()
462 Value* value = search_result.value().entry->values[0]->value.get(); in TEST_F()
681 auto search_result = output_table.FindResource(test::ParseNameOrDie(name)); in TEST_F() local
682 ASSERT_TRUE(search_result); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/
DResourceParser_test.cpp1063 search_result = table_.FindResource(test::ParseNameOrDie("drawable/bar")); in TEST_F()
1064 ASSERT_TRUE(search_result); in TEST_F()
1065 ASSERT_THAT(search_result.value().entry, NotNull()); in TEST_F()
1066 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1067 result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
1113 auto search_result = table_.FindResource(test::ParseNameOrDie("string/bar")); in TEST_F() local
1114 ASSERT_TRUE(search_result); in TEST_F()
1115 ASSERT_THAT(search_result.value().entry, NotNull()); in TEST_F()
1116 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
1117 OverlayableItem result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
[all …]
DResourceTable_test.cpp277 Maybe<ResourceTable::SearchResult> search_result = table.FindResource(name); in TEST() local
279 ASSERT_TRUE(search_result); in TEST()
280 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST()
282 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp79 auto search_result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/foo")); in TEST() local
80 ASSERT_TRUE(search_result); in TEST()
81 EXPECT_THAT(search_result.value().entry->visibility.level, Eq(Visibility::Level::kUndefined)); in TEST()
82 EXPECT_FALSE(search_result.value().entry->visibility.staged_api); in TEST()
84 search_result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/bar")); in TEST()
85 ASSERT_TRUE(search_result); in TEST()
86 EXPECT_THAT(search_result.value().entry->visibility.level, Eq(Visibility::Level::kPrivate)); in TEST()
87 EXPECT_FALSE(search_result.value().entry->visibility.staged_api); in TEST()
89 search_result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/baz")); in TEST()
90 ASSERT_TRUE(search_result); in TEST()
[all …]
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp486 Maybe<ResourceTable::SearchResult> search_result = final_table.FindResource(name); in TEST_F() local
487 ASSERT_TRUE(search_result); in TEST_F()
488 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
489 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
520 Maybe<ResourceTable::SearchResult> search_result = final_table.FindResource(name); in TEST_F() local
521 ASSERT_TRUE(search_result); in TEST_F()
522 ASSERT_TRUE(search_result.value().entry->overlayable_item); in TEST_F()
523 OverlayableItem& result_overlayable_item = search_result.value().entry->overlayable_item.value(); in TEST_F()
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp145 const ResourceTable::SearchResult& search_result = result.value(); in TEST_F() local
146 EXPECT_EQ(make_value<ResourceId>(0x01010002), search_result.entry->id); in TEST_F()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp1594 const auto search_result = table->FindResource(name_ref); in ResolveTableEntry() local
1595 if (!search_result) { in ResolveTableEntry()
1598 return search_result.value().entry; in ResolveTableEntry()