Lines Matching refs:table

39   ResourceTable table;  in TEST()  local
42 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:id/hey,there")).Build(), in TEST()
46 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:id/hey:there")).Build(), in TEST()
51 ResourceTable table; in TEST() local
54 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:id/heythere ")) in TEST()
61 ResourceTable table; in TEST() local
63 EXPECT_TRUE(table.AddResource( in TEST()
69 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/id"), NotNull()); in TEST()
73 ResourceTable table; in TEST() local
78 EXPECT_TRUE(table.AddResource( in TEST()
84 EXPECT_TRUE(table.AddResource( in TEST()
90 EXPECT_TRUE(table.AddResource( in TEST()
97 table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:string/ok")) in TEST()
105 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/layout_width"), NotNull()); in TEST()
106 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/id"), NotNull()); in TEST()
107 EXPECT_THAT(test::GetValue<Id>(&table, "android:string/ok"), NotNull()); in TEST()
108 …EXPECT_THAT(test::GetValueForConfig<BinaryPrimitive>(&table, "android:string/ok", language_config)… in TEST()
112 ResourceTable table; in TEST() local
113 ASSERT_TRUE(table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:attr/foo")) in TEST()
118 Attribute* attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
122 ASSERT_TRUE(table.AddResource(NewResourceBuilder(test::ParseNameOrDie("android:attr/foo")) in TEST()
127 attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
133 ResourceTable table; in TEST() local
141 ASSERT_TRUE(table.AddResource( in TEST()
144 ASSERT_TRUE(table.AddResource( in TEST()
150 ResourceTable table; in TEST() local
151 ASSERT_TRUE(table.AddResource( in TEST()
157 ASSERT_TRUE(table.AddResource( in TEST()
163 …EXPECT_THAT(test::GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOr… in TEST()
164 …EXPECT_THAT(test::GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOr… in TEST()
167 table.FindResource(test::ParseNameOrDie("android:string/foo")); in TEST()
187 static ::testing::AssertionResult VisibilityOfResource(const ResourceTable& table, in VisibilityOfResource() argument
191 std::optional<ResourceTable::SearchResult> result = table.FindResource(name); in VisibilityOfResource()
212 ResourceTable table; in TEST() local
218 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetVisibility(visibility).Build(), in TEST()
220 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPrivate, "private")); in TEST()
224 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetVisibility(visibility).Build(), in TEST()
226 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPrivate, "private")); in TEST()
230 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetVisibility(visibility).Build(), in TEST()
232 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPublic, "public")); in TEST()
236 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetVisibility(visibility).Build(), in TEST()
238 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPublic, "public")); in TEST()
242 ResourceTable table; in TEST() local
249 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetAllowNew(allow_new).Build(), in TEST()
251 result = table.FindResource(name); in TEST()
257 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetAllowNew(allow_new).Build(), in TEST()
259 result = table.FindResource(name); in TEST()
266 ResourceTable table; in TEST() local
276 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetOverlayable(overlayable_item).Build(), in TEST()
278 std::optional<ResourceTable::SearchResult> search_result = table.FindResource(name); in TEST()
296 ResourceTable table; in TEST() local
302 ASSERT_TRUE(table.AddResource(NewResourceBuilder(foo).SetOverlayable(overlayable).Build(), in TEST()
308 ASSERT_TRUE(table.AddResource(NewResourceBuilder(bar).SetOverlayable(overlayable2).Build(), in TEST()
314 ASSERT_TRUE(table.AddResource(NewResourceBuilder(baz).SetOverlayable(overlayable3).Build(), in TEST()
319 ResourceTable table; in TEST() local
324 ASSERT_TRUE(table.AddResource(NewResourceBuilder(foo).SetOverlayable(overlayable_item).Build(), in TEST()
330 ASSERT_TRUE(table.AddResource(NewResourceBuilder(bar).SetOverlayable(overlayable_item2).Build(), in TEST()
335 ResourceTable table; in TEST() local
340 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetOverlayable(overlayable_item).Build(), in TEST()
344 ASSERT_FALSE(table.AddResource(NewResourceBuilder(name).SetOverlayable(overlayable_item2).Build(), in TEST()
349 ResourceTable table; in TEST() local
354 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetOverlayable(overlayable_item).Build(), in TEST()
359 ASSERT_FALSE(table.AddResource(NewResourceBuilder(name).SetOverlayable(overlayable_item2).Build(), in TEST()
364 ResourceTable table; in TEST() local
366 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetId(0x01010000).Build(), in TEST()
368 ASSERT_FALSE(table.AddResource(NewResourceBuilder(name).SetId(0x01010001).Build(), in TEST()
373 ResourceTable table; in TEST() local
375 ASSERT_TRUE(table.AddResource( in TEST()
378 ASSERT_TRUE(table.AddResource( in TEST()
383 ASSERT_TRUE(table.AddResource( in TEST()