Lines Matching refs:config

29     const StringPiece& input, ConfigDescription* config = nullptr) {  in TestParse()  argument
30 if (ConfigDescription::Parse(input, config)) { in TestParse()
51 ConfigDescription config; in TEST() local
52 EXPECT_TRUE(TestParse("", &config)); in TEST()
53 EXPECT_EQ(std::string(""), config.toString().string()); in TEST()
55 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST()
56 EXPECT_EQ(std::string("fr-land"), config.toString().string()); in TEST()
61 &config)); in TEST()
64 config.toString().string()); in TEST()
68 ConfigDescription config; in TEST() local
69 EXPECT_TRUE(TestParse("en-rUS", &config)); in TEST()
70 EXPECT_EQ(std::string("en-rUS"), config.toString().string()); in TEST()
74 ConfigDescription config; in TEST() local
75 EXPECT_TRUE(TestParse("sw600dp", &config)); in TEST()
76 EXPECT_EQ(std::string("sw600dp-v13"), config.toString().string()); in TEST()
78 EXPECT_TRUE(TestParse("sw600dp-v8", &config)); in TEST()
79 EXPECT_EQ(std::string("sw600dp-v13"), config.toString().string()); in TEST()
83 ConfigDescription config; in TEST() local
84 EXPECT_TRUE(TestParse("car", &config)); in TEST()
85 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST()
89 ConfigDescription config; in TEST() local
90 EXPECT_TRUE(TestParse("round", &config)); in TEST()
92 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST()
93 EXPECT_EQ(SDK_MARSHMALLOW, config.sdkVersion); in TEST()
94 EXPECT_EQ(std::string("round-v23"), config.toString().string()); in TEST()
96 EXPECT_TRUE(TestParse("notround", &config)); in TEST()
98 config.screenLayout2 & android::ResTable_config::MASK_SCREENROUND); in TEST()
99 EXPECT_EQ(SDK_MARSHMALLOW, config.sdkVersion); in TEST()
100 EXPECT_EQ(std::string("notround-v23"), config.toString().string()); in TEST()
104 ConfigDescription config; in TEST() local
105 EXPECT_TRUE(TestParse("widecg", &config)); in TEST()
107 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
108 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
109 EXPECT_EQ(std::string("widecg-v26"), config.toString().string()); in TEST()
111 EXPECT_TRUE(TestParse("nowidecg", &config)); in TEST()
113 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
114 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
115 EXPECT_EQ(std::string("nowidecg-v26"), config.toString().string()); in TEST()
119 ConfigDescription config; in TEST() local
120 EXPECT_TRUE(TestParse("highdr", &config)); in TEST()
122 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
123 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
124 EXPECT_EQ(std::string("highdr-v26"), config.toString().string()); in TEST()
126 EXPECT_TRUE(TestParse("lowdr", &config)); in TEST()
128 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
129 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
130 EXPECT_EQ(std::string("lowdr-v26"), config.toString().string()); in TEST()
134 ConfigDescription config; in TEST() local
135 EXPECT_TRUE(TestParse("vrheadset", &config)); in TEST()
136 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_VR_HEADSET, config.uiMode); in TEST()
137 EXPECT_EQ(SDK_O, config.sdkVersion); in TEST()
138 EXPECT_EQ(std::string("vrheadset-v26"), config.toString().string()); in TEST()
142 ConfigDescription config; in ParseConfigOrDie() local
143 CHECK(ConfigDescription::Parse(str, &config)) << "invalid configuration: " << str; in ParseConfigOrDie()
144 return config; in ParseConfigOrDie()