Home
last modified time | relevance | path

Searched refs:AddValue (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp59 .AddValue("android:attr/cool.attr", ResourceId(0x01010000), in TEST()
61 .AddValue("android:styleable/hey.dude", ResourceId(0x01030000), in TEST()
115 .AddValue("app:attr/foo", ResourceId(0x7f010000), in TEST()
117 .AddValue("app:attr/bar", ResourceId(0x7f010001), in TEST()
119 .AddValue("android:attr/baz", ResourceId(0x01010000), in TEST()
121 .AddValue("app:styleable/MyStyleable", ResourceId(0x7f030000), in TEST()
281 .AddValue("android:attr/bar", ResourceId(0x01010000), test::AttributeBuilder().Build()) in TEST()
282 .AddValue("com.lib:attr/bar", ResourceId(0x02010000), test::AttributeBuilder().Build()) in TEST()
283 .AddValue("android:styleable/foo", ResourceId(0x01030000), in TEST()
350 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
[all …]
/frameworks/base/tools/aapt2/test/
DBuilders.cpp46 return AddValue(name, id, util::make_unique<Id>()); in AddSimple()
52 return AddValue(name, config, id, util::make_unique<Id>()); in AddSimple()
63 return AddValue(name, id, util::make_unique<Reference>(ParseNameOrDie(ref))); in AddReference()
73 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
79 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
94 return AddValue(name, id, std::move(file_ref)); in AddFileReference()
103 return AddValue(name, config, {}, std::move(file_ref)); in AddFileReference()
106 ResourceTableBuilder& ResourceTableBuilder::AddValue(const StringPiece& name, in AddValue() function in aapt::test::ResourceTableBuilder
108 return AddValue(name, {}, std::move(value)); in AddValue()
111 ResourceTableBuilder& ResourceTableBuilder::AddValue(const StringPiece& name, const ResourceId& id, in AddValue() function in aapt::test::ResourceTableBuilder
[all …]
DBuilders.h68 ResourceTableBuilder& AddValue(const android::StringPiece& name, std::unique_ptr<Value> value);
69 ResourceTableBuilder& AddValue(const android::StringPiece& name, const ResourceId& id,
71 ResourceTableBuilder& AddValue(const android::StringPiece& name,
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp61 .AddValue( in TEST_F()
162 .AddValue("bool/foo", ResourceUtils::TryParseBool("true")) in TEST_F()
167 .AddValue("bool/foo", ResourceUtils::TryParseBool("false")) in TEST_F()
198 .AddValue("bool/foo", std::move(foo_original)) in TEST_F()
199 .AddValue("bool/bar", std::move(bar_original)) in TEST_F()
205 .AddValue("bool/foo", std::move(foo_overlay)) in TEST_F()
206 .AddValue("bool/bar", std::move(bar_overlay)) in TEST_F()
207 .AddValue("bool/baz", std::move(baz_overlay)) in TEST_F()
327 .AddValue("bool/foo", ResourceUtils::TryParseBool("true")) in TEST_F()
345 .AddValue("bool/foo", ResourceUtils::TryParseBool("true")) in TEST_F()
[all …]
DAutoVersioner_test.cpp58 .AddValue( in TEST()
71 .AddValue( in TEST()
DReferenceLinker_test.cpp79 .AddValue("com.app.test:style/Theme", in TEST()
159 .AddValue("com.app.test:style/Theme", ResourceId(0x7f020000), in TEST()
233 .AddValue("com.app.test:style/Theme", in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp50 .AddValue("com.app.a:id/foo", {}, util::make_unique<Id>()) in TEST()
314 .AddValue("android:bool/boolean_true", in TEST()
316 .AddValue("android:bool/boolean_false", in TEST()
318 .AddValue("android:color/color_rgb8", ResourceUtils::TryParseColor("#AABBCC")) in TEST()
319 .AddValue("android:color/color_argb8", ResourceUtils::TryParseColor("#11223344")) in TEST()
320 .AddValue("android:color/color_rgb4", ResourceUtils::TryParseColor("#DEF")) in TEST()
321 .AddValue("android:color/color_argb4", ResourceUtils::TryParseColor("#5678")) in TEST()
322 .AddValue("android:integer/integer_444", ResourceUtils::TryParseInt("444")) in TEST()
323 .AddValue("android:integer/integer_neg_333", ResourceUtils::TryParseInt("-333")) in TEST()
324 .AddValue("android:integer/hex_int_abcd", ResourceUtils::TryParseInt("0xABCD")) in TEST()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp161 .AddValue("com.app.test:id/three", ResourceId(0x7f020002), in TEST_F()
163 .AddValue("com.app.test:integer/one", ResourceId(0x7f030000), in TEST_F()
165 .AddValue("com.app.test:integer/one", test::ParseConfigOrDie("v1"), in TEST_F()
229 .AddValue("android:attr/foo", ResourceId(0x01010000), util::make_unique<Attribute>(attr)) in TEST_F()
252 .AddValue("android:array/foo", ResourceId(0x01010000), std::move(array)) in TEST_F()
421 .AddValue("lib:id/foo", ResourceId(0x00010000), util::make_unique<Id>()) in TEST_F()
442 .AddValue("lib:style/Theme", in TEST_F()
483 .AddValue("app:id/foo", ResourceId(0x7f010000), in TEST_F()
485 .AddValue("app:id/bar", ResourceId(0x7f010001), in TEST_F()
570 .AddValue("com.app.test:id/three", ResourceId(0x7f020002), in TEST_F()
[all …]
/frameworks/base/tools/aapt2/process/
DSymbolTable_test.cpp36 .AddValue("android:attr/foo", ResourceId(0x01010000), in TEST()
53 .AddValue("android:^attr-private/foo", ResourceId(0x01010000), in TEST()