Lines Matching refs:deviceConfig
54 ResTable_config deviceConfig; in TEST() local
55 memset(&deviceConfig, 0, sizeof(deviceConfig)); in TEST()
56 deviceConfig.density = ResTable_config::DENSITY_XHIGH; in TEST()
57 deviceConfig.sdkVersion = 21; in TEST()
63 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
67 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
71 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
74 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
78 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
83 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
87 ResTable_config deviceConfig; in TEST() local
88 memset(&deviceConfig, 0, sizeof(deviceConfig)); in TEST()
89 deviceConfig.sdkVersion = 21; in TEST()
96 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
100 ASSERT_EQ(expectedBest, selectBest(deviceConfig, configs)); in TEST()
104 ResTable_config deviceConfig; in TEST() local
105 memset(&deviceConfig, 0, sizeof(deviceConfig)); in TEST()
111 EXPECT_FALSE(roundConfig.match(deviceConfig)); in TEST()
113 deviceConfig.screenLayout2 = ResTable_config::SCREENROUND_YES; in TEST()
115 EXPECT_TRUE(roundConfig.match(deviceConfig)); in TEST()
117 deviceConfig.screenLayout2 = ResTable_config::SCREENROUND_NO; in TEST()
119 EXPECT_FALSE(roundConfig.match(deviceConfig)); in TEST()
125 EXPECT_TRUE(notRoundConfig.match(deviceConfig)); in TEST()
163 ResTable_config deviceConfig; in TEST() local
164 memset(&deviceConfig, 0, sizeof(deviceConfig)); in TEST()
165 deviceConfig.screenLayout2 = ResTable_config::SCREENROUND_YES; in TEST()
166 deviceConfig.screenLayout = ResTable_config::SCREENLONG_YES; in TEST()
177 EXPECT_TRUE(targetConfigB.isBetterThan(targetConfigA, &deviceConfig)); in TEST()
178 EXPECT_TRUE(targetConfigC.isBetterThan(targetConfigB, &deviceConfig)); in TEST()