Home | History | Annotate | Download | only in tests

Lines Matching refs:deviceConfig

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