Home
last modified time | relevance | path

Searched refs:ParseConfigOrDie (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/tools/aapt2/filter/
DConfigFilter_test.cpp26 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("320dpi"))); in TEST()
27 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("fr"))); in TEST()
32 filter.AddConfig(test::ParseConfigOrDie("fr")); in TEST()
34 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("320dpi"))); in TEST()
39 filter.AddConfig(test::ParseConfigOrDie("fr")); in TEST()
41 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("fr"))); in TEST()
46 filter.AddConfig(test::ParseConfigOrDie("fr")); in TEST()
48 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("fr-320dpi"))); in TEST()
53 filter.AddConfig(test::ParseConfigOrDie("fr-rFR")); in TEST()
54 filter.AddConfig(test::ParseConfigOrDie("sw360dp")); in TEST()
[all …]
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp30 test::ParseConfigOrDie("mdpi")) in TEST()
33 test::ParseConfigOrDie("hdpi")) in TEST()
36 test::ParseConfigOrDie("xhdpi")) in TEST()
39 test::ParseConfigOrDie("xxhdpi")) in TEST()
50 test::ParseConfigOrDie("mdpi"))); in TEST()
53 test::ParseConfigOrDie("hdpi"))); in TEST()
56 test::ParseConfigOrDie("xhdpi"))); in TEST()
59 test::ParseConfigOrDie("xxhdpi"))); in TEST()
68 test::ParseConfigOrDie("mdpi")) in TEST()
71 test::ParseConfigOrDie("hdpi")) in TEST()
[all …]
/frameworks/base/tools/aapt2/link/
DNoDefaultResourceRemover_test.cpp29 .AddSimple("android:string/foo", test::ParseConfigOrDie("en-rGB")) in TEST()
30 .AddSimple("android:string/foo", test::ParseConfigOrDie("fr-rFR")) in TEST()
31 .AddSimple("android:string/bar", test::ParseConfigOrDie("en-rGB")) in TEST()
32 .AddSimple("android:string/bar", test::ParseConfigOrDie("fr-rFR")) in TEST()
33 .AddSimple("android:string/bat", test::ParseConfigOrDie("en-rGB-xhdpi")) in TEST()
34 .AddSimple("android:string/bat", test::ParseConfigOrDie("fr-rFR-hdpi")) in TEST()
35 .AddSimple("android:string/baz", test::ParseConfigOrDie("en-rGB")) in TEST()
36 .AddSimple("android:string/baz", test::ParseConfigOrDie("fr-rFR")) in TEST()
54 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("mdpi")) // v4 in TEST()
55 .AddSimple("android:drawable/keep1", test::ParseConfigOrDie("en-rGB")) in TEST()
[all …]
DResourceExcluder_test.cpp47 auto fr_config = test::ParseConfigOrDie("fr"); in TEST()
65 auto fr_config = test::ParseConfigOrDie("fr"); in TEST()
83 auto fr_land_config = test::ParseConfigOrDie("fr-land"); in TEST()
101 auto night_config = test::ParseConfigOrDie("night"); in TEST()
102 auto fr_config = test::ParseConfigOrDie("fr"); in TEST()
103 auto fr_land_config = test::ParseConfigOrDie("fr-land"); in TEST()
104 auto fr_night_config = test::ParseConfigOrDie("fr-night"); in TEST()
128 auto night_config = test::ParseConfigOrDie("night"); in TEST()
129 auto fr_config = test::ParseConfigOrDie("fr"); in TEST()
130 auto fr_land_config = test::ParseConfigOrDie("fr-land"); in TEST()
[all …]
DAutoVersioner_test.cpp29 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
30 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land"); in TEST()
42 const ConfigDescription sw600dp_v13_config = test::ParseConfigOrDie("sw600dp-v13"); in TEST()
43 const ConfigDescription v21_config = test::ParseConfigOrDie("v21"); in TEST()
59 "app:style/Foo", test::ParseConfigOrDie("v4"), in TEST()
72 "app:style/Foo", test::ParseConfigOrDie("v21"), in TEST()
88 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v4")); in TEST()
93 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v13")… in TEST()
99 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v17")… in TEST()
106 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v21")… in TEST()
DProductFilter_test.cpp28 const ConfigDescription land = test::ParseConfigOrDie("land"); in TEST()
29 const ConfigDescription port = test::ParseConfigOrDie("port"); in TEST()
DTableMerger_test.cpp96 file_desc.config = test::ParseConfigOrDie("hdpi-v4"); in TEST_F()
104 &final_table, "com.app.a:layout/main", test::ParseConfigOrDie("hdpi-v4")); in TEST_F()
/frameworks/base/tools/aapt2/optimize/
DVersionCollapser_test.cpp29 builder.AddSimple(name, test::ParseConfigOrDie(item)); in BuildTableWithConfigs()
50 test::ParseConfigOrDie("land-v4"))); in TEST()
53 test::ParseConfigOrDie("land-v5"))); in TEST()
58 test::ParseConfigOrDie("land-v6"))); in TEST()
63 test::ParseConfigOrDie("sw600dp"))); in TEST()
68 test::ParseConfigOrDie("land"))); in TEST()
71 test::ParseConfigOrDie("land-v14"))); in TEST()
74 test::ParseConfigOrDie("land-v21"))); in TEST()
92 test::ParseConfigOrDie("land-v4"))); in TEST()
95 test::ParseConfigOrDie("land-v5"))); in TEST()
[all …]
DResourceDeduper_test.cpp31 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl"); in TEST()
32 const ConfigDescription ldrtl_v21_config = test::ParseConfigOrDie("ldrtl-v21"); in TEST()
33 const ConfigDescription en_config = test::ParseConfigOrDie("en"); in TEST()
34 const ConfigDescription en_v21_config = test::ParseConfigOrDie("en-v21"); in TEST()
36 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
69 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl"); in TEST()
70 const ConfigDescription ldrtl_v21_config = test::ParseConfigOrDie("ldrtl-v21"); in TEST()
72 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
91 const ConfigDescription fr_config = test::ParseConfigOrDie("fr"); in TEST()
92 const ConfigDescription fr_rCA_config = test::ParseConfigOrDie("fr-rCA"); in TEST()
DMultiApkGenerator_test.cpp44 using ::aapt::test::ParseConfigOrDie;
96 ConfigDescription default_ = ParseConfigOrDie("").CopyWithoutSdkVersion();
97 ConfigDescription mdpi_ = ParseConfigOrDie("mdpi").CopyWithoutSdkVersion();
98 ConfigDescription hdpi_ = ParseConfigOrDie("hdpi").CopyWithoutSdkVersion();
99 ConfigDescription xhdpi_ = ParseConfigOrDie("xhdpi").CopyWithoutSdkVersion();
100 ConfigDescription xxhdpi_ = ParseConfigOrDie("xxhdpi").CopyWithoutSdkVersion();
101 ConfigDescription xxxhdpi_ = ParseConfigOrDie("xxxhdpi").CopyWithoutSdkVersion();
102 ConfigDescription v19_ = ParseConfigOrDie("v19");
103 ConfigDescription v21_ = ParseConfigOrDie("v21");
/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp73 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
74 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land-v13"); in TEST()
93 const ConfigDescription land_config = test::ParseConfigOrDie("land"); in TEST()
94 const ConfigDescription sw600dp_land_config = test::ParseConfigOrDie("sw600dp-land-v13"); in TEST()
115 const ConfigDescription en_config = test::ParseConfigOrDie("en"); in TEST()
116 const ConfigDescription en_v21_config = test::ParseConfigOrDie("en-v21"); in TEST()
117 const ConfigDescription ldrtl_config = test::ParseConfigOrDie("ldrtl-v4"); in TEST()
118 const ConfigDescription ldrtl_xhdpi_config = test::ParseConfigOrDie("ldrtl-xhdpi-v4"); in TEST()
119 const ConfigDescription sw300dp_config = test::ParseConfigOrDie("sw300dp-v13"); in TEST()
120 const ConfigDescription sw540dp_config = test::ParseConfigOrDie("sw540dp-v14"); in TEST()
[all …]
DResourceTable_test.cpp141 test::ParseConfigOrDie("land"), "tablet", in TEST()
145 test::ParseConfigOrDie("land"), "phone", in TEST()
149 …:GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOrDie("land"), "tab… in TEST()
150 …:GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOrDie("land"), "pho… in TEST()
156 sr.value().entry->FindAllValues(test::ParseConfigOrDie("land")); in TEST()
DResourceValues_test.cpp171 String str_a(pool_a.MakeRef("hello", StringPool::Context(test::ParseConfigOrDie("en")))); in TEST()
174 EXPECT_THAT(pool_a.strings()[0]->context.config, Eq(test::ParseConfigOrDie("en"))); in TEST()
179 EXPECT_THAT(pool_b.strings()[0]->context.config, Eq(test::ParseConfigOrDie("en"))); in TEST()
DResourceParser_test.cpp340 const ConfigDescription watch_config = test::ParseConfigOrDie("watch"); in TEST_F()
/frameworks/base/libs/androidfw/tests/
DConfigDescription_test.cpp141 static inline ConfigDescription ParseConfigOrDie(const android::StringPiece& str) { in ParseConfigOrDie() function
148 EXPECT_FALSE(ParseConfigOrDie("large").ConflictsWith(ParseConfigOrDie("normal-land"))); in TEST()
149 EXPECT_FALSE(ParseConfigOrDie("long-hdpi").ConflictsWith(ParseConfigOrDie("xhdpi"))); in TEST()
150 EXPECT_FALSE(ParseConfigOrDie("sw600dp").ConflictsWith(ParseConfigOrDie("sw700dp"))); in TEST()
151 EXPECT_FALSE(ParseConfigOrDie("v11").ConflictsWith(ParseConfigOrDie("v21"))); in TEST()
152 EXPECT_FALSE(ParseConfigOrDie("h600dp").ConflictsWith(ParseConfigOrDie("h300dp"))); in TEST()
153 EXPECT_FALSE(ParseConfigOrDie("w400dp").ConflictsWith(ParseConfigOrDie("w300dp"))); in TEST()
154 EXPECT_FALSE(ParseConfigOrDie("600x400").ConflictsWith(ParseConfigOrDie("300x200"))); in TEST()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp187 test::ParseConfigOrDie("en"), "two") in TEST()
190 test::ParseConfigOrDie("en-rXA"), "three") in TEST()
205 test::ParseConfigOrDie("en-rXA"))); in TEST()
208 test::ParseConfigOrDie("ar-rXB"))); in TEST()
213 test::ParseConfigOrDie("en-rXA"))); in TEST()
216 test::ParseConfigOrDie("ar-rXB"))); in TEST()
220 test::ParseConfigOrDie("en-rXA")); in TEST()
226 test::ParseConfigOrDie("ar-rXB"))); in TEST()
231 test::ParseConfigOrDie("en-rXA"))); in TEST()
234 test::ParseConfigOrDie("ar-rXB"))); in TEST()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp163 .AddValue("com.app.test:integer/one", test::ParseConfigOrDie("v1"), in TEST_F()
186 test::ParseConfigOrDie("v1"), Res_value::TYPE_INT_DEC, 2u, in TEST_F()
333 const ConfigDescription sparse_config = test::ParseConfigOrDie("en-rGB"); in TEST_F()
376 const ConfigDescription sparse_config = test::ParseConfigOrDie("en-rGB-v26"); in TEST_F()
398 const ConfigDescription sparse_config = test::ParseConfigOrDie("en-rGB"); in TEST_F()
531 .AddValue("com.app.test:integer/one", test::ParseConfigOrDie("v1"), in TEST_F()
559 ResourceId(0x7f030000), test::ParseConfigOrDie("v1"), Res_value::TYPE_INT_DEC, in TEST_F()
585 .AddValue("com.app.test:integer/one", test::ParseConfigOrDie("v1"), in TEST_F()
614 ResourceId(0x7f030000), test::ParseConfigOrDie("v1"), Res_value::TYPE_INT_DEC, in TEST_F()
/frameworks/base/tools/aapt2/cmd/
DUtil_test.cpp45 {test::ParseConfigOrDie("en-rUS-land"), test::ParseConfigOrDie("b+sr+Latn")}}; in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp79 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()
133 &new_table, "com.app.a:integer/one", test::ParseConfigOrDie("land"), ""); in TEST()
138 &new_table, "com.app.a:integer/one", test::ParseConfigOrDie("land"), "tablet"); in TEST()
420 const ConfigDescription expected_config = test::ParseConfigOrDie(config_str); in ExpectConfigSerializes()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp283 configs.push_back(test::ParseConfigOrDie(density)); in AddDensityGroup()
292 configs.push_back(test::ParseConfigOrDie(locale)); in AddLocaleGroup()
DCommon.h48 inline android::ConfigDescription ParseConfigOrDie(const android::StringPiece& str) { in ParseConfigOrDie() function