Lines Matching refs:app

29 namespace app = com::android::app;
70 EXPECT_FALSE(theme->GetAttribute(app::R::attr::attr_one).has_value()); in TEST_F()
78 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleOne).has_value()); in TEST_F()
80 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
86 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
98 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
100 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
106 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
115 value = theme->GetAttribute(app::R::attr::attr_three); in TEST_F()
127 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
136 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
137 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree).has_value()); in TEST_F()
140 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
147 value = theme->GetAttribute(app::R::attr::attr_six); in TEST_F()
154 value = theme->GetAttribute(app::R::attr::attr_five); in TEST_F()
157 EXPECT_EQ(app::R::string::string_one, value->data); in TEST_F()
166 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
167 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree, true /* force */).has_value()); in TEST_F()
170 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
177 value = theme->GetAttribute(app::R::attr::attr_six); in TEST_F()
184 value = theme->GetAttribute(app::R::attr::attr_five); in TEST_F()
221 ASSERT_TRUE(theme_one->ApplyStyle(app::R::style::StyleOne).has_value()); in TEST_F()
224 auto value = theme_one->GetAttribute(app::R::attr::attr_one); in TEST_F()
231 ASSERT_FALSE(theme_one->GetAttribute(app::R::attr::attr_six).has_value()); in TEST_F()
234 ASSERT_TRUE(theme_two->ApplyStyle(app::R::style::StyleThree).has_value()); in TEST_F()
243 ASSERT_FALSE(theme_one->GetAttribute(app::R::attr::attr_one).has_value()); in TEST_F()
246 value = theme_one->GetAttribute(app::R::attr::attr_six); in TEST_F()
267 const uint32_t styles[] = {app::R::style::StyleOne, app::R::style::StyleDayNight}; in TEST_F()
273 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
280 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
287 const uint32_t styles[] = {app::R::style::StyleOne, app::R::style::StyleDayNight}; in TEST_F()
293 value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
299 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
306 const uint32_t styles[] = {app::R::style::StyleOne, app::R::style::StyleDayNight}; in TEST_F()
312 value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
320 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
336 ASSERT_TRUE(theme_dst->ApplyStyle(app::R::style::StyleOne).has_value()); in TEST_F()
340 ASSERT_TRUE(theme_src->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
355 value = theme_dst->GetAttribute(app::R::attr::attr_one); in TEST_F()
384 ASSERT_TRUE(theme_src->ApplyStyle(app::R::style::StyleSeven).has_value()); in TEST_F()