Home
last modified time | relevance | path

Searched refs:ParseNameOrDie (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/tools/aapt2/process/
DSymbolTable_test.cpp41 EXPECT_THAT(symbol_source.FindByName(test::ParseNameOrDie("android:id/foo")), NotNull()); in TEST()
42 EXPECT_THAT(symbol_source.FindByName(test::ParseNameOrDie("android:id/bar")), NotNull()); in TEST()
45 symbol_source.FindByName(test::ParseNameOrDie("android:attr/foo")); in TEST()
59 symbol_source.FindByName(test::ParseNameOrDie("android:attr/foo")); in TEST()
75 EXPECT_THAT(symbol_table.FindByName(test::ParseNameOrDie("id/foo")), NotNull()); in TEST()
76 EXPECT_THAT(symbol_table.FindByName(test::ParseNameOrDie("com.android.lib:id/foo")), NotNull()); in TEST()
129 EXPECT_THAT(symbol_table.FindByName(test::ParseNameOrDie("com.android.lib:id/foo")), NotNull()); in TEST_F()
130 EXPECT_THAT(symbol_table.FindByName(test::ParseNameOrDie("com.android.app:id/bar")), NotNull()); in TEST_F()
132 EXPECT_THAT(symbol_table.FindByName(test::ParseNameOrDie("com.android.app:id/foo")), IsNull()); in TEST_F()
133 EXPECT_THAT(symbol_table.FindByName(test::ParseNameOrDie("com.android.lib:id/bar")), IsNull()); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/link/
DNoDefaultResourceRemover_test.cpp43 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/foo"))); in TEST()
44 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:string/bar"))); in TEST()
45 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/bat"))); in TEST()
46 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:string/baz"))); in TEST()
68 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep1"))); in TEST()
69 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep2"))); in TEST()
70 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
86 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
105 EXPECT_TRUE(table->FindResource(test::ParseNameOrDie("android:drawable/keep1"))); in TEST()
106 EXPECT_FALSE(table->FindResource(test::ParseNameOrDie("android:drawable/remove1"))); in TEST()
DProductFilter_test.cpp33 test::ParseNameOrDie("android:string/one"), land, "", in TEST()
37 test::ParseNameOrDie("android:string/one"), land, "tablet", in TEST()
42 test::ParseNameOrDie("android:string/one"), port, "", in TEST()
46 test::ParseNameOrDie("android:string/one"), port, "tablet", in TEST()
68 test::ParseNameOrDie("android:string/one"), in TEST()
73 test::ParseNameOrDie("android:string/one"), in TEST()
94 test::ParseNameOrDie("android:string/one"), in TEST()
99 test::ParseNameOrDie("android:string/one"), in TEST()
104 test::ParseNameOrDie("android:string/one"), in TEST()
118 test::ParseNameOrDie("android:string/one"), in TEST()
[all …]
DAutoVersioner_test.cpp91 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")), style->entries.front().key.nam… in TEST()
96 EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")),style->entries[0].key.name); in TEST()
97 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/requiresSmallestWidthDp")), style->entries… in TEST()
102 EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")), style->entries[0].key.name); in TEST()
103 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/requiresSmallestWidthDp")), style->entries… in TEST()
104 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/paddingStart")), style->entries[2].key.nam… in TEST()
109 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/paddingEnd")), style->entries.front().key.… in TEST()
DTableMerger_test.cpp78 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/foo"))); in TEST_F()
79 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/bar"))); in TEST_F()
80 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:styleable/view"))); in TEST_F()
83 EXPECT_FALSE(final_table.FindResource(test::ParseNameOrDie("com.app.b:id/foo"))); in TEST_F()
86 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/com.app.b$foo"))); in TEST_F()
97 file_desc.name = test::ParseNameOrDie("layout/main"); in TEST_F()
116 file_desc.name = test::ParseNameOrDie("xml/foo"); in TEST_F()
474 Reference(test::ParseNameOrDie("com.app.a:attr/bar")), in TEST_F()
475 Reference(test::ParseNameOrDie("com.app.a:attr/bat")), in TEST_F()
476 Reference(test::ParseNameOrDie("com.app.a:attr/foo"), ResourceId(0x01010000)), in TEST_F()
[all …]
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp39 test::ParseNameOrDie("android:id/hey,there"), ConfigDescription{}, "", in TEST()
44 test::ParseNameOrDie("android:id/hey:there"), ConfigDescription{}, "", in TEST()
53 test::ParseNameOrDie("android:id/heythere "), ConfigDescription{}, "", in TEST()
61 test::ParseNameOrDie("android:attr/id"), ConfigDescription{}, "", in TEST()
76 test::ParseNameOrDie("android:attr/layout_width"), config, "", in TEST()
81 test::ParseNameOrDie("android:attr/id"), config, "", in TEST()
86 test::ParseNameOrDie("android:string/ok"), config, "", in TEST()
91 test::ParseNameOrDie("android:string/ok"), language_config, "", in TEST()
106 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
114 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
[all …]
DResourceValues_test.cpp235 attr2.symbols.push_back(Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), in TEST()
245 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
247 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x02u}); in TEST()
249 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/baz")), 0x04u}); in TEST()
251 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bat")), 0x80u}); in TEST()
264 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
299 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
301 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x07u}); in TEST()
305 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
307 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x07u}); in TEST()
[all …]
DResourceParser_test.cpp481 EXPECT_THAT(style->parent.value().name, Eq(make_value(test::ParseNameOrDie("style/fu")))); in TEST_F()
484 EXPECT_THAT(style->entries[0].key.name, Eq(make_value(test::ParseNameOrDie("attr/bar")))); in TEST_F()
485 EXPECT_THAT(style->entries[1].key.name, Eq(make_value(test::ParseNameOrDie("attr/bat")))); in TEST_F()
486 EXPECT_THAT(style->entries[2].key.name, Eq(make_value(test::ParseNameOrDie("attr/baz")))); in TEST_F()
495 …EXPECT_THAT(style->parent.value().name, Eq(make_value(test::ParseNameOrDie("com.app:style/Theme"))… in TEST_F()
827 Maybe<ResourceTable::SearchResult> result = table_.FindResource(test::ParseNameOrDie("attr/foo")); in TEST_F()
838 result = table_.FindResource(test::ParseNameOrDie("attr/bar")); in TEST_F()
861 table_.FindResource(test::ParseNameOrDie("string/foo")); in TEST_F()
879 table_.FindResource(test::ParseNameOrDie("string/bar")); in TEST_F()
922 EXPECT_THAT(val->entries[0].key, Eq(Reference(test::ParseNameOrDie("attr/test")))); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp66 maybe_result = table->FindResource(test::ParseNameOrDie("android:dimen/two")); in TEST()
71 table->FindResource(test::ParseNameOrDie("android:integer/three")); in TEST()
79 table->FindResource(test::ParseNameOrDie("android:string/five")); in TEST()
85 maybe_result = table->FindResource(test::ParseNameOrDie("android:attr/bar")); in TEST()
89 maybe_result = table->FindResource(test::ParseNameOrDie("android:attr/baz")); in TEST()
118 {test::ParseNameOrDie("android:attr/foo"), ResourceId(0x01010002)}}; in TEST()
123 table->FindResource(test::ParseNameOrDie("android:attr/foo")); in TEST()
DPseudolocaleGenerator_test.cpp244 ASSERT_TRUE(table->AddResource(test::ParseNameOrDie("com.pkg:plurals/foo"), ConfigDescription{}, in TEST()
276 ASSERT_TRUE(table->AddResource(test::ParseNameOrDie("android:string/foo"), ConfigDescription{}, in TEST()
279 ASSERT_TRUE(table->AddResource(test::ParseNameOrDie("android:string/bar"), ConfigDescription{}, in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp55 ASSERT_TRUE(table->SetVisibilityWithId(test::ParseNameOrDie("com.app.a:layout/main"), in TEST()
65 ASSERT_TRUE(table->AddResource(test::ParseNameOrDie("com.app.a:plurals/hey"), ConfigDescription{}, in TEST()
73 table->AddResource(test::ParseNameOrDie("com.app.a:string/styled"), ConfigDescription{}, {}, in TEST()
79 test::ParseNameOrDie("com.app.a:integer/one"), test::ParseConfigOrDie("land"), {}, in TEST()
82 test::ParseNameOrDie("com.app.a:integer/one"), test::ParseConfigOrDie("land"), "tablet", in TEST()
89 expected_ref.name = test::ParseNameOrDie("android:layout/main"); in TEST()
92 test::ParseNameOrDie("com.app.a:layout/abc"), ConfigDescription::DefaultConfig(), {}, in TEST()
99 ASSERT_TRUE(table->SetOverlayable(test::ParseNameOrDie("com.app.a:integer/overlayable"), in TEST()
120 new_table.FindResource(test::ParseNameOrDie("com.app.a:layout/main")); in TEST()
126 result = new_table.FindResource(test::ParseNameOrDie("com.app.a:bool/foo")); in TEST()
[all …]
/frameworks/base/tools/aapt2/test/
DBuilders.cpp63 return AddValue(name, id, util::make_unique<Reference>(ParseNameOrDie(ref))); in AddReference()
120 ResourceName res_name = ParseNameOrDie(name); in AddValue()
130 ResourceName res_name = ParseNameOrDie(name); in SetSymbolState()
141 ResourceName res_name = ParseNameOrDie(name); in SetOverlayable()
155 std::unique_ptr<Reference> reference = util::make_unique<Reference>(ParseNameOrDie(ref)); in BuildReference()
193 style_->parent = Reference(ParseNameOrDie(str)); in SetParent()
198 style_->entries.push_back(Style::Entry{Reference(ParseNameOrDie(str)), std::move(value)}); in AddItem()
214 styleable_->entries.push_back(Reference(ParseNameOrDie(str))); in AddItem()
DContext.h142 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
152 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
DCommon.cpp51 Maybe<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
DCommon.h42 inline ResourceName ParseNameOrDie(const android::StringPiece& str) { in ParseNameOrDie() function
58 Maybe<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp90 const ResourceName expected_res_name = test::ParseNameOrDie(expected_name); in Exists()
307 const ResourceName name = test::ParseNameOrDie( in BuildTableWithSparseEntries()
425 result.FindResource(test::ParseNameOrDie("lib:id/foo")); in TEST_F()
647 auto search_result = output_table.FindResource(test::ParseNameOrDie(name)); in TEST_F()
688 auto search_result = output_table.FindResource(test::ParseNameOrDie(name_zero)); in TEST_F()
696 search_result = output_table.FindResource(test::ParseNameOrDie(name_one)); in TEST_F()
703 search_result = output_table.FindResource(test::ParseNameOrDie(name_two)); in TEST_F()
750 auto search_result = output_table.FindResource(test::ParseNameOrDie(name_zero)); in TEST_F()
760 search_result = output_table.FindResource(test::ParseNameOrDie(name_one)); in TEST_F()
769 search_result = output_table.FindResource(test::ParseNameOrDie(name_two)); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp344 styleable.entries.push_back(Reference(test::ParseNameOrDie("android:attr/one"))); in TEST()
382 styleable.entries.push_back(Reference(test::ParseNameOrDie("android:attr/one"))); in TEST()
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp195 const ResourceName foo = test::ParseNameOrDie("android:string/foo"); in TEST()