Lines Matching refs:table

66     ResTable table;  in TEST()  local
67 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
74 ResTable table; in TEST() local
75 table.setParameters(&frenchConfig); in TEST()
77 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
84 … ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); in TEST()
99 ResTable table; in TEST() local
100 table.setParameters(&expectedConfig); in TEST()
102 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
103 ASSERT_EQ(NO_ERROR, table.add(split_de_fr_arsc, split_de_fr_arsc_len)); in TEST()
107 … ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); in TEST()
120 ResTable table; in TEST() local
121 table.setParameters(&expectedConfig); in TEST()
123 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
126 EXPECT_TRUE(table.getResourceName(base::R::string::test1, false, &baseName)); in TEST()
128 ASSERT_EQ(NO_ERROR, table.add(split_de_fr_arsc, split_de_fr_arsc_len)); in TEST()
131 EXPECT_TRUE(table.getResourceName(base::R::string::test1, false, &frName)); in TEST()
150 ResTable table; in TEST() local
151 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
155 …ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &specFlags, NUL… in TEST()
160 ASSERT_EQ(NO_ERROR, table.add(split_de_fr_arsc, split_de_fr_arsc_len)); in TEST()
163 block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &frSpecFlags, NULL); in TEST()
175 ResTable table; in TEST() local
176 table.setParameters(&baseConfig); in TEST()
177 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
178 ASSERT_EQ(NO_ERROR, table.add(split_hdpi_v4_arsc, split_hdpi_v4_arsc_len)); in TEST()
180 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "hdpi")); in TEST()
182 ASSERT_EQ(NO_ERROR, table.add(split_xhdpi_v4_arsc, split_xhdpi_v4_arsc_len)); in TEST()
184 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "xhdpi")); in TEST()
186 ASSERT_EQ(NO_ERROR, table.add(split_xxhdpi_v4_arsc, split_xxhdpi_v4_arsc_len)); in TEST()
188 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "xhdpi")); in TEST()
191 table.setParameters(&baseConfig); in TEST()
193 EXPECT_TRUE(IsStringEqual(table, base::R::string::density, "xxhdpi")); in TEST()
197 ResTable table; in TEST() local
198 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
201 ssize_t block = table.getResource(base::R::string::test3, &val, MAY_NOT_BE_BAG); in TEST()
204 ASSERT_EQ(NO_ERROR, table.add(feature_arsc, feature_arsc_len)); in TEST()
206 block = table.getResource(base::R::string::test3, &val, MAY_NOT_BE_BAG); in TEST()
213 ResTable table; in TEST() local
214 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
217 EXPECT_FALSE(table.getResourceName(base::R::string::test3, false, &name)); in TEST()
219 ASSERT_EQ(NO_ERROR, table.add(feature_arsc, feature_arsc_len)); in TEST()
221 ASSERT_TRUE(table.getResourceName(base::R::string::test3, false, &name)); in TEST()
234 ResTable table; in TEST() local
235 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST()
236 ASSERT_EQ(NO_ERROR, table.add(feature_arsc, feature_arsc_len)); in TEST()
241 ASSERT_EQ(base::R::string::test3, table.identifierForName(name.string(), name.size(), in TEST()