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.cpp80 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/foo"))); in TEST_F()
81 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/bar"))); in TEST_F()
82 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:styleable/view"))); in TEST_F()
85 EXPECT_FALSE(final_table.FindResource(test::ParseNameOrDie("com.app.b:id/foo"))); in TEST_F()
88 EXPECT_TRUE(final_table.FindResource(test::ParseNameOrDie("com.app.a:id/com.app.b$foo"))); in TEST_F()
99 file_desc.name = test::ParseNameOrDie("layout/main"); in TEST_F()
118 file_desc.name = test::ParseNameOrDie("xml/foo"); in TEST_F()
420 Reference(test::ParseNameOrDie("com.app.a:attr/bar")), in TEST_F()
421 Reference(test::ParseNameOrDie("com.app.a:attr/bat")), in TEST_F()
422 Reference(test::ParseNameOrDie("com.app.a:attr/foo"), ResourceId(0x01010000)), in TEST_F()
[all …]
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp41 test::ParseNameOrDie("android:id/hey,there"), ConfigDescription{}, "", in TEST()
46 test::ParseNameOrDie("android:id/hey:there"), ConfigDescription{}, "", in TEST()
55 test::ParseNameOrDie("android:id/heythere "), ConfigDescription{}, "", in TEST()
63 test::ParseNameOrDie("android:attr/id"), ConfigDescription{}, "", in TEST()
78 test::ParseNameOrDie("android:attr/layout_width"), config, "", in TEST()
83 test::ParseNameOrDie("android:attr/id"), config, "", in TEST()
88 test::ParseNameOrDie("android:string/ok"), config, "", in TEST()
93 test::ParseNameOrDie("android:string/ok"), language_config, "", in TEST()
108 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
116 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
[all …]
DResourceParser_test.cpp486 EXPECT_THAT(style->parent.value().name, Eq(make_value(test::ParseNameOrDie("style/fu")))); in TEST_F()
489 EXPECT_THAT(style->entries[0].key.name, Eq(make_value(test::ParseNameOrDie("attr/bar")))); in TEST_F()
490 EXPECT_THAT(style->entries[1].key.name, Eq(make_value(test::ParseNameOrDie("attr/bat")))); in TEST_F()
491 EXPECT_THAT(style->entries[2].key.name, Eq(make_value(test::ParseNameOrDie("attr/baz")))); in TEST_F()
500 …EXPECT_THAT(style->parent.value().name, Eq(make_value(test::ParseNameOrDie("com.app:style/Theme"))… in TEST_F()
832 Maybe<ResourceTable::SearchResult> result = table_.FindResource(test::ParseNameOrDie("attr/foo")); in TEST_F()
843 result = table_.FindResource(test::ParseNameOrDie("attr/bar")); in TEST_F()
866 table_.FindResource(test::ParseNameOrDie("string/foo")); in TEST_F()
884 table_.FindResource(test::ParseNameOrDie("string/bar")); in TEST_F()
927 EXPECT_THAT(val->entries[0].key, Eq(Reference(test::ParseNameOrDie("attr/test")))); in TEST_F()
[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()
/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.cpp57 ASSERT_TRUE(table->SetVisibilityWithId(test::ParseNameOrDie("com.app.a:layout/main"), in TEST()
67 ASSERT_TRUE(table->AddResource(test::ParseNameOrDie("com.app.a:plurals/hey"), ConfigDescription{}, in TEST()
75 table->AddResource(test::ParseNameOrDie("com.app.a:string/styled"), ConfigDescription{}, {}, in TEST()
81 test::ParseNameOrDie("com.app.a:integer/one"), test::ParseConfigOrDie("land"), {}, in TEST()
84 test::ParseNameOrDie("com.app.a:integer/one"), test::ParseConfigOrDie("land"), "tablet", in TEST()
91 expected_ref.name = test::ParseNameOrDie("android:layout/main"); in TEST()
94 test::ParseNameOrDie("com.app.a:layout/abc"), ConfigDescription::DefaultConfig(), {}, in TEST()
101 ASSERT_TRUE(table->SetOverlayable(test::ParseNameOrDie("com.app.a:integer/overlayable"), in TEST()
122 new_table.FindResource(test::ParseNameOrDie("com.app.a:layout/main")); in TEST()
128 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()
DCommon.cpp51 Maybe<ResourceTable::SearchResult> result = table->FindResource(ParseNameOrDie(res_name)); in GetValueForConfigAndProduct()
DContext.h156 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
166 symbol_source_->name_map_[ParseNameOrDie(name)] = symbol.get();
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.cpp92 const ResourceName expected_res_name = test::ParseNameOrDie(expected_name); in Exists()
309 const ResourceName name = test::ParseNameOrDie( in BuildTableWithSparseEntries()
427 result.FindResource(test::ParseNameOrDie("lib:id/foo")); in TEST_F()
459 result.FindResource(test::ParseNameOrDie("lib:style/Theme")); in TEST_F()
691 auto search_result = output_table.FindResource(test::ParseNameOrDie(name)); in TEST_F()
732 auto search_result = output_table.FindResource(test::ParseNameOrDie(name_zero)); in TEST_F()
740 search_result = output_table.FindResource(test::ParseNameOrDie(name_one)); in TEST_F()
747 search_result = output_table.FindResource(test::ParseNameOrDie(name_two)); in TEST_F()
795 auto search_result = output_table.FindResource(test::ParseNameOrDie(name_zero)); in TEST_F()
805 search_result = output_table.FindResource(test::ParseNameOrDie(name_one)); 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()