Lines Matching refs:config
27 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { in TestParse() argument
28 if (AaptConfig::parse(String8(input), config)) { in TestParse()
34 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { in TestParse() argument
35 return TestParse(String8(input), config); in TestParse()
53 ConfigDescription config; in TEST() local
54 EXPECT_TRUE(TestParse("", &config)); in TEST()
55 EXPECT_EQ(String8(""), config.toString()); in TEST()
57 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST()
58 EXPECT_EQ(String8("fr-land"), config.toString()); in TEST()
61 "xhdpi-keyssoft-qwerty-navexposed-nonav", &config)); in TEST()
63 "xhdpi-keyssoft-qwerty-navexposed-nonav-v13"), config.toString()); in TEST()
67 ConfigDescription config; in TEST() local
68 EXPECT_TRUE(TestParse("en-rUS", &config)); in TEST()
69 EXPECT_EQ(String8("en-rUS"), config.toString()); in TEST()
73 ConfigDescription config; in TEST() local
74 EXPECT_TRUE(TestParse("sw600dp", &config)); in TEST()
75 EXPECT_EQ(String8("sw600dp-v13"), config.toString()); in TEST()
77 EXPECT_TRUE(TestParse("sw600dp-v8", &config)); in TEST()
78 EXPECT_EQ(String8("sw600dp-v13"), config.toString()); in TEST()
82 ConfigDescription config; in TEST() local
83 EXPECT_TRUE(TestParse("car", &config)); in TEST()
84 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST()
88 ConfigDescription config; in TEST() local
89 EXPECT_TRUE(TestParse("round", &config)); in TEST()
91 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST()
92 EXPECT_EQ(SDK_MNC, config.sdkVersion); in TEST()
93 EXPECT_EQ(String8("round-v23"), config.toString()); in TEST()
95 EXPECT_TRUE(TestParse("notround", &config)); in TEST()
97 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST()
98 EXPECT_EQ(SDK_MNC, config.sdkVersion); in TEST()
99 EXPECT_EQ(String8("notround-v23"), config.toString()); in TEST()
103 ConfigDescription config; in TEST() local
104 EXPECT_TRUE(TestParse("widecg", &config)); in TEST()
106 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
107 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
108 EXPECT_EQ(String8("widecg-v26"), config.toString()); in TEST()
110 EXPECT_TRUE(TestParse("nowidecg", &config)); in TEST()
112 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
113 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
114 EXPECT_EQ(String8("nowidecg-v26"), config.toString()); in TEST()
118 ConfigDescription config; in TEST() local
119 EXPECT_TRUE(TestParse("highdr", &config)); in TEST()
121 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
122 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
123 EXPECT_EQ(String8("highdr-v26"), config.toString()); in TEST()
125 EXPECT_TRUE(TestParse("lowdr", &config)); in TEST()
127 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
128 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
129 EXPECT_EQ(String8("lowdr-v26"), config.toString()); in TEST()