Lines Matching defs:value

69   Res_value value;
71 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags));
81 Res_value value;
85 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
87 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
88 EXPECT_EQ(1u, value.data);
91 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags);
93 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
94 EXPECT_EQ(2u, value.data);
105 Res_value value;
109 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
111 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
112 EXPECT_EQ(1u, value.data);
115 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags);
117 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType);
120 GetStringFromPool(assetmanager.GetStringPoolForCookie(0), value.data));
124 cookie = theme->GetAttribute(app::R::attr::attr_three, &value, &flags);
126 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
127 EXPECT_EQ(3u, value.data);
138 Res_value value;
140 ASSERT_EQ(kInvalidCookie, theme->GetAttribute(0x7f000001, &value, &flags));
151 Res_value value;
156 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
158 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
159 EXPECT_EQ(1u, value.data);
163 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags);
165 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
166 EXPECT_EQ(6u, value.data);
170 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags);
172 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType);
173 EXPECT_EQ(app::R::string::string_one, value.data);
185 Res_value value;
190 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
192 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
193 EXPECT_EQ(1u, value.data);
197 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags);
199 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
200 EXPECT_EQ(6u, value.data);
204 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags);
206 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
207 EXPECT_EQ(5u, value.data);
219 Res_value value;
223 // The attribute should be resolved to the final value.
224 cookie = theme->GetAttribute(libclient::R::attr::foo, &value, &flags);
226 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
227 EXPECT_EQ(700u, value.data);
231 cookie = theme->GetAttribute(libclient::R::attr::bar, &value, &flags);
233 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType);
236 EXPECT_EQ(3u, get_package_id(value.data));
237 EXPECT_EQ(get_type_id(lib_one::R::string::foo), get_type_id(value.data));
238 EXPECT_EQ(get_entry_id(lib_one::R::string::foo), get_entry_id(value.data));
248 Res_value value;
253 cookie = theme_one->GetAttribute(app::R::attr::attr_one, &value, &flags);
255 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
256 EXPECT_EQ(1u, value.data);
260 EXPECT_EQ(kInvalidCookie, theme_one->GetAttribute(app::R::attr::attr_six, &value, &flags));
272 EXPECT_EQ(kInvalidCookie, theme_one->GetAttribute(app::R::attr::attr_one, &value, &flags));
275 cookie = theme_one->GetAttribute(app::R::attr::attr_six, &value, &flags);
277 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType);
278 EXPECT_EQ(6u, value.data);
298 Res_value value;
302 EXPECT_EQ(kInvalidCookie, theme_one->GetAttribute(app::R::attr::attr_one, &value, &flags));
305 EXPECT_NE(kInvalidCookie, theme_one->GetAttribute(R::attr::foreground, &value, &flags));