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()
222 ASSERT_TRUE(theme_one->ApplyStyle(app::R::style::StyleOne).has_value()); in TEST_F()
225 auto value = theme_one->GetAttribute(app::R::attr::attr_one); in TEST_F()
232 ASSERT_FALSE(theme_one->GetAttribute(app::R::attr::attr_six).has_value()); in TEST_F()
235 ASSERT_TRUE(theme_two->ApplyStyle(app::R::style::StyleThree).has_value()); in TEST_F()
244 ASSERT_FALSE(theme_one->GetAttribute(app::R::attr::attr_one).has_value()); in TEST_F()
247 value = theme_one->GetAttribute(app::R::attr::attr_six); in TEST_F()
268 const uint32_t styles[] = {app::R::style::StyleOne, app::R::style::StyleDayNight}; in TEST_F()
274 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
281 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
288 const uint32_t styles[] = {app::R::style::StyleOne, app::R::style::StyleDayNight}; in TEST_F()
294 value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
300 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
307 const uint32_t styles[] = {app::R::style::StyleOne, app::R::style::StyleDayNight}; in TEST_F()
313 value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
321 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
338 ASSERT_TRUE(theme_dst->ApplyStyle(app::R::style::StyleOne).has_value()); in TEST_F()
342 ASSERT_TRUE(theme_src->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
357 value = theme_dst->GetAttribute(app::R::attr::attr_one); in TEST_F()
386 ASSERT_TRUE(theme_src->ApplyStyle(app::R::style::StyleSeven).has_value()); in TEST_F()