Lines Matching refs:val

63   Res_value val;  in TEST()  local
66 table.getResource(resid, &val, false /*mayBeBag*/, 0u /*density*/, &flags, &selected_config), in TEST()
68 EXPECT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
69 EXPECT_EQ(900u, val.data); in TEST()
111 Res_value val; in TEST() local
113 ssize_t index = theme.getAttribute(basic::R::attr::attr1, &val, &specFlags); in TEST()
115 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
116 ASSERT_EQ(uint32_t(100), val.data); in TEST()
118 index = theme.getAttribute(basic::R::attr::attr2, &val, &specFlags); in TEST()
120 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
121 ASSERT_EQ(basic::R::integer::number1, val.data); in TEST()
135 Res_value val; in TEST() local
137 ssize_t index = theme.getAttribute(basic::R::attr::attr1, &val, &specFlags); in TEST()
139 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
140 ASSERT_EQ(uint32_t(300), val.data); in TEST()
142 index = theme.getAttribute(basic::R::attr::attr2, &val, &specFlags); in TEST()
144 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
145 ASSERT_EQ(basic::R::integer::number1, val.data); in TEST()
159 Res_value val; in TEST() local
161 ssize_t index = theme.getAttribute(lib::R::attr::attr1, &val, &specFlags); in TEST()
163 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
164 ASSERT_EQ(uint32_t(700), val.data); in TEST()
166 index = theme.getAttribute(lib::R::attr::attr2, &val, &specFlags); in TEST()
168 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
169 ASSERT_EQ(uint32_t(700), val.data); in TEST()
180 Res_value val; in TEST() local
182 table.getResource(basic::R::integer::number2, &val, MAY_NOT_BE_BAG); in TEST()
184 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
185 ASSERT_EQ(basic::R::array::integerArray1, val.data); in TEST()
187 ssize_t newBlock = table.resolveReference(&val, block); in TEST()
189 EXPECT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
190 EXPECT_EQ(basic::R::array::integerArray1, val.data); in TEST()
201 Res_value val; in TEST() local
203 table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
205 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
217 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
219 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
234 Res_value val; in TEST() local
236 table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
238 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
239 ASSERT_EQ(uint32_t(200), val.data); in TEST()
249 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
251 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
252 ASSERT_EQ(uint32_t(400), val.data); in TEST()
267 Res_value val; in TEST() local
268 ASSERT_LT(table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG), in TEST()
364 Res_value val; in TEST() local
366 sharedTable.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
368 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
369 ASSERT_EQ(uint32_t(600), val.data); in TEST()
384 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
386 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
387 ASSERT_EQ(uint32_t(400), val.data); in TEST()
391 sharedTable.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
393 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
394 ASSERT_EQ(uint32_t(600), val.data); in TEST()
435 Res_value val; in TEST() local
436 ssize_t block = table.getResource(0x7f010001, &val, MAY_NOT_BE_BAG); in TEST()
438 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
442 ASSERT_LT(val.data, pool->size()); in TEST()
446 const char* target_str8 = pool->string8At(val.data, &str_len); in TEST()
451 const char16_t* target_str16 = pool->stringAt(val.data, &str_len); in TEST()