Lines Matching refs:table

40   ResTable table;  in TEST()  local
41 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
49 ResTable table; in TEST() local
50 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
55 table.setParameters(&config); in TEST()
60 table.identifierForName(name.string(), name.size(), nullptr, 0, nullptr, 0, &flags); in TEST()
66 table.getResource(resid, &val, false /*mayBeBag*/, 0u /*density*/, &flags, &selected_config), in TEST()
77 ResTable table; in TEST() local
78 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
80 EXPECT_TRUE(IsStringEqual(table, basic::R::string::test1, "test1")); in TEST()
88 ResTable table; in TEST() local
89 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
94 table.identifierForName(testName.string(), testName.size(), 0, 0, in TEST()
105 ResTable table; in TEST() local
106 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
108 ResTable::Theme theme(table); in TEST()
129 ResTable table; in TEST() local
130 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
132 ResTable::Theme theme(table); in TEST()
153 ResTable table; in TEST() local
154 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
156 ResTable::Theme theme(table); in TEST()
177 ResTable table; in TEST() local
178 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
182 table.getResource(basic::R::integer::number2, &val, MAY_NOT_BE_BAG); in TEST()
187 ssize_t newBlock = table.resolveReference(&val, block); in TEST()
198 ResTable table; in TEST() local
199 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
203 table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
208 ssize_t count = table.lockBag(basic::R::array::integerArray1, &entry); in TEST()
210 table.unlockBag(entry); in TEST()
215 table.setParameters(&param); in TEST()
217 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
221 count = table.lockBag(basic::R::array::integerArray1, &entry); in TEST()
223 table.unlockBag(entry); in TEST()
231 ResTable table; in TEST() local
232 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
236 table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
247 table.setParameters(&param); in TEST()
249 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
258 ResTable table; in TEST() local
259 ASSERT_EQ(NO_ERROR, table.addEmpty(assetCookie)); in TEST()
262 ASSERT_EQ(uint32_t(1), table.getTableCount()); in TEST()
265 ASSERT_EQ(uint32_t(0), table.getBasePackageCount()); in TEST()
268 ASSERT_LT(table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG), in TEST()
372 ResTable table; in TEST() local
373 ASSERT_EQ(NO_ERROR, table.add(&sharedTable, false)); in TEST()
381 table.setParameters(&param); in TEST()
384 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
406 ResTable table; in TEST() local
408 table.add(system_contents.data(), system_contents.size())); in TEST()
409 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
417 table.getConfigurations(&configs); in TEST()
422 table.getLocales(&locales); in TEST()