Lines Matching refs:table
36 ResourceTable table; in TEST() local
38 EXPECT_FALSE(table.AddResource( in TEST()
43 EXPECT_FALSE(table.AddResource( in TEST()
50 ResourceTable table; in TEST() local
52 EXPECT_TRUE(table.AddResourceMangled( in TEST()
58 ResourceTable table; in TEST() local
60 EXPECT_TRUE(table.AddResource( in TEST()
65 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/id"), NotNull()); in TEST()
69 ResourceTable table; in TEST() local
75 EXPECT_TRUE(table.AddResource( in TEST()
80 EXPECT_TRUE(table.AddResource( in TEST()
85 EXPECT_TRUE(table.AddResource( in TEST()
90 EXPECT_TRUE(table.AddResource( in TEST()
97 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/layout_width"), NotNull()); in TEST()
98 EXPECT_THAT(test::GetValue<Id>(&table, "android:attr/id"), NotNull()); in TEST()
99 EXPECT_THAT(test::GetValue<Id>(&table, "android:string/ok"), NotNull()); in TEST()
100 …EXPECT_THAT(test::GetValueForConfig<BinaryPrimitive>(&table, "android:string/ok", language_config)… in TEST()
104 ResourceTable table; in TEST() local
106 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
110 Attribute* attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
114 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
117 attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
123 ResourceTable table; in TEST() local
131 ASSERT_TRUE(table.AddResource(name, ConfigDescription{}, "", in TEST()
133 ASSERT_TRUE(table.AddResource(name, ConfigDescription{}, "", in TEST()
138 ResourceTable table; in TEST() local
140 EXPECT_TRUE(table.AddResource(test::ParseNameOrDie("android:string/foo"), in TEST()
144 EXPECT_TRUE(table.AddResource(test::ParseNameOrDie("android:string/foo"), in TEST()
149 …EXPECT_THAT(test::GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOr… in TEST()
150 …EXPECT_THAT(test::GetValueForConfigAndProduct<Id>(&table, "android:string/foo",test::ParseConfigOr… in TEST()
153 table.FindResource(test::ParseNameOrDie("android:string/foo")); in TEST()
173 static ::testing::AssertionResult VisibilityOfResource(const ResourceTable& table, in VisibilityOfResource() argument
177 Maybe<ResourceTable::SearchResult> result = table.FindResource(name); in VisibilityOfResource()
198 ResourceTable table; in TEST() local
204 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
205 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPrivate, "private")); in TEST()
209 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
210 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPrivate, "private")); in TEST()
214 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
215 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPublic, "public")); in TEST()
219 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
220 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPublic, "public")); in TEST()
224 ResourceTable table; in TEST() local
231 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
232 result = table.FindResource(name); in TEST()
238 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
239 result = table.FindResource(name); in TEST()
246 ResourceTable table; in TEST() local
256 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
257 Maybe<ResourceTable::SearchResult> search_result = table.FindResource(name); in TEST()
275 ResourceTable table; in TEST() local
281 ASSERT_TRUE(table.SetOverlayable(foo, overlayable, test::GetDiagnostics())); in TEST()
286 ASSERT_TRUE(table.SetOverlayable(bar, overlayable2, test::GetDiagnostics())); in TEST()
291 ASSERT_TRUE(table.SetOverlayable(baz, overlayable3, test::GetDiagnostics())); in TEST()
295 ResourceTable table; in TEST() local
300 ASSERT_TRUE(table.SetOverlayable(foo, overlayable_item, test::GetDiagnostics())); in TEST()
305 ASSERT_TRUE(table.SetOverlayable(bar, overlayable_item2, test::GetDiagnostics())); in TEST()
309 ResourceTable table; in TEST() local
314 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
317 ASSERT_FALSE(table.SetOverlayable(name, overlayable_item2, test::GetDiagnostics())); in TEST()
321 ResourceTable table; in TEST() local
326 ASSERT_TRUE(table.SetOverlayable(name, overlayable_item, test::GetDiagnostics())); in TEST()
330 ASSERT_FALSE(table.SetOverlayable(name, overlayable_item2, test::GetDiagnostics())); in TEST()
334 ResourceTable table(/* validate_resources */ false); in TEST() local
337 ASSERT_TRUE(table.AddResourceWithId(foo_name, ResourceId(0x7f0100ff), ConfigDescription{} , "", in TEST()
340 ASSERT_TRUE(table.AddResourceWithId(foo_name, ResourceId(0x7f010100), ConfigDescription{} , "", in TEST()
344 ASSERT_TRUE(table.SetVisibilityWithId(foo_name, Visibility{Visibility::Level::kPublic}, in TEST()
346 ASSERT_TRUE(table.SetVisibilityWithId(foo_name, Visibility{Visibility::Level::kPrivate}, in TEST()
349 auto package = table.FindPackageById(0x7f); in TEST()