Home
last modified time | relevance | path

Searched refs:NewResourceBuilder (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceTable_test.cpp42 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:id/hey,there")).Build(), in TEST()
46 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:id/hey:there")).Build(), in TEST()
54 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:id/heythere ")) in TEST()
64 NewResourceBuilder(test::ParseNameOrDie("android:attr/id")) in TEST()
79 NewResourceBuilder(test::ParseNameOrDie("android:attr/layout_width")) in TEST()
85 NewResourceBuilder(test::ParseNameOrDie("android:attr/id")) in TEST()
91 NewResourceBuilder(test::ParseNameOrDie("android:string/ok")) in TEST()
97 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:string/ok")) in TEST()
113 ASSERT_TRUE(table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:attr/foo")) in TEST()
122 ASSERT_TRUE(table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:attr/foo")) in TEST()
[all …]
DResourceTable.h274 struct NewResourceBuilder { struct
275 explicit NewResourceBuilder(const ResourceNameRef& name);
276 explicit NewResourceBuilder(const std::string& name);
277 NewResourceBuilder& SetValue(std::unique_ptr<Value> value, android::ConfigDescription config = {},
279 NewResourceBuilder& SetId(ResourceId id, OnIdConflict on_conflict = OnIdConflict::ERROR);
280 NewResourceBuilder& SetVisibility(Visibility id);
281 NewResourceBuilder& SetOverlayable(OverlayableItem overlayable);
282 NewResourceBuilder& SetAllowNew(AllowNew allow_new);
283 NewResourceBuilder& SetStagedId(StagedId id);
284 NewResourceBuilder& SetAllowMangled(bool allow_mangled);
DResourceTable.cpp690 NewResourceBuilder::NewResourceBuilder(const ResourceNameRef& name) { in NewResourceBuilder() function in aapt::NewResourceBuilder
694 NewResourceBuilder::NewResourceBuilder(const std::string& name) { in NewResourceBuilder() function in aapt::NewResourceBuilder
700 NewResourceBuilder& NewResourceBuilder::SetValue(std::unique_ptr<Value> value, in SetValue()
709 NewResourceBuilder& NewResourceBuilder::SetId(ResourceId id, OnIdConflict on_conflict) { in SetId()
714 NewResourceBuilder& NewResourceBuilder::SetVisibility(Visibility visibility) { in SetVisibility()
719 NewResourceBuilder& NewResourceBuilder::SetOverlayable(OverlayableItem overlayable) { in SetOverlayable()
723 NewResourceBuilder& NewResourceBuilder::SetAllowNew(AllowNew allow_new) { in SetAllowNew()
728 NewResourceBuilder& NewResourceBuilder::SetStagedId(StagedId staged_alias) { in SetStagedId()
733 NewResourceBuilder& NewResourceBuilder::SetAllowMangled(bool allow_mangled) { in SetAllowMangled()
738 NewResource NewResourceBuilder::Build() { in Build()
DResourceParser.cpp128 NewResourceBuilder res_builder(res->name); in AddResourcesToTable()
798 return table.AddResource(NewResourceBuilder(name).SetValue(std::move(id)).Build(), &diag); in ParseXml()
/frameworks/base/tools/aapt2/process/
DProductFilter_test.cpp33 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
40 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
47 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
54 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
76 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
82 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
105 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
111 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
118 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
133 NewResourceBuilder(test::ParseNameOrDie("android:string/one")) in TEST()
[all …]
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp124 .Add(NewResourceBuilder("android:attr/staged_baz") in TEST_F()
137 .Add(NewResourceBuilder("android:bool/staged_baz") in TEST_F()
168 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
180 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
189 ASSERT_TRUE(table.AddResource(NewResourceBuilder("android:attr/res").SetId(0x0101ffff).Build(), in TEST_F()
194 table.AddResource(NewResourceBuilder("android:attr/res" + std::to_string(i)).Build(), in TEST_F()
DPseudolocaleGenerator_test.cpp244 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.pkg:plurals/foo")) in TEST()
280 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("android:string/foo")) in TEST()
284 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("android:string/bar")) in TEST()
349 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.pkg:plurals/foo")) in TEST()
408 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("android:string/foo")) in TEST()
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp197 table.AddResource(NewResourceBuilder(foo) in TEST()
203 table.AddResource(NewResourceBuilder(foo) in TEST()
209 NewResourceBuilder(foo) in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp57 .Add(NewResourceBuilder("com.app.a:bool/foo") in TEST()
60 .Add(NewResourceBuilder("com.app.a:bool/bar") in TEST()
63 .Add(NewResourceBuilder("com.app.a:bool/baz") in TEST()
66 .Add(NewResourceBuilder("com.app.a:bool/fiz") in TEST()
112 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.app.a:layout/main")) in TEST()
124 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.app.a:plurals/hey")) in TEST()
134 NewResourceBuilder(test::ParseNameOrDie("com.app.a:string/styled")) in TEST()
141 table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.app.a:integer/one")) in TEST()
148 table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.app.a:integer/one")) in TEST()
160 ASSERT_TRUE(table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.app.a:layout/abc")) in TEST()
[all …]
/frameworks/base/tools/aapt2/test/
DBuilders.cpp106 NewResourceBuilder builder(res_name); in AddValue()
120 NewResourceBuilder builder(res_name); in SetSymbolState()
134 NewResourceBuilder(res_name).SetOverlayable(overlayable).SetAllowMangled(true).Build(), in SetOverlayable()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp412 NewResourceBuilder res_builder(name); in ParseType()
502 if (!table_->AddResource(NewResourceBuilder(iter->second) in ParseOverlayable()
543 if (!table_->AddResource(NewResourceBuilder(resource_name) in ParseStagedAliases()
DTableFlattener_test.cpp310 CHECK(table->AddResource(NewResourceBuilder(name) in BuildTableWithSparseEntries()
319 NewResourceBuilder(name) in BuildTableWithSparseEntries()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp664 bool result = table->AddResource(NewResourceBuilder(file.name) in Flatten()
1509 NewResourceBuilder(res_name).SetValue(std::move(id)).SetAllowMangled(true).Build(), in MergeExportedSymbols()