Home
last modified time | relevance | path

Searched refs:AddResource (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()
63 EXPECT_TRUE(table.AddResource( in TEST()
78 EXPECT_TRUE(table.AddResource( in TEST()
84 EXPECT_TRUE(table.AddResource( in TEST()
90 EXPECT_TRUE(table.AddResource( 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.h304 bool AddResource(NewResource&& res, android::IDiagnostics* diag);
DResourceTable.cpp467 bool ResourceTable::AddResource(NewResource&& res, android::IDiagnostics* diag) { in AddResource() function in aapt::ResourceTable
DResourceParser.cpp166 if (!table->AddResource(res_builder.Build(), diag)) { in AddResourcesToTable()
798 return table.AddResource(NewResourceBuilder(name).SetValue(std::move(id)).Build(), &diag); in ParseXml()
/frameworks/base/tools/aapt2/process/
DProductFilter_test.cpp32 ASSERT_TRUE(table.AddResource( in TEST()
39 ASSERT_TRUE(table.AddResource( in TEST()
46 ASSERT_TRUE(table.AddResource( in TEST()
53 ASSERT_TRUE(table.AddResource( in TEST()
75 ASSERT_TRUE(table.AddResource( in TEST()
81 ASSERT_TRUE(table.AddResource( in TEST()
104 ASSERT_TRUE(table.AddResource( in TEST()
110 ASSERT_TRUE(table.AddResource( in TEST()
117 ASSERT_TRUE(table.AddResource( in TEST()
132 ASSERT_TRUE(table.AddResource( in TEST()
[all …]
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp168 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()
208 ASSERT_TRUE(table.AddResource( in TEST()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp112 CHECK(table_->AddResource(builder.Build(), GetDiagnostics())); in AddValue()
126 CHECK(table_->AddResource(builder.Build(), GetDiagnostics())); in SetSymbolState()
133 CHECK(table_->AddResource( in SetOverlayable()
140 CHECK(table_->AddResource(std::move(res), GetDiagnostics())); in Add()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp112 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()
133 ASSERT_TRUE(table->AddResource( 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()
170 table->AddResource(NewResourceBuilder(test::ParseNameOrDie("com.app.a:integer/overlayable")) in TEST()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp439 if (!table_->AddResource(res_builder.Build(), diag_)) { 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()
318 CHECK(table->AddResource( in BuildTableWithSparseEntries()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp664 bool result = table->AddResource(NewResourceBuilder(file.name) in Flatten()
1508 bool result = final_table_.AddResource( in MergeExportedSymbols()