Home
last modified time | relevance | path

Searched refs:styleData (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DStyleDataTest.java19 StyleData styleData = new StyleData("library.resource", "Theme_MyApp", "Theme_Material", asList( in getAttrValue_willFindLibraryResourcesWithSameName() local
23 assertThat(styleData.getAttrValue(myAppSearchViewStyle).value).isEqualTo("lib_value"); in getAttrValue_willFindLibraryResourcesWithSameName()
24 assertThat(styleData.getAttrValue(myLibSearchViewStyle).value).isEqualTo("lib_value"); in getAttrValue_willFindLibraryResourcesWithSameName()
26 assertThat(styleData.getAttrValue(androidSearchViewStyle)).isNull(); in getAttrValue_willFindLibraryResourcesWithSameName()
31 StyleData styleData = new StyleData("android", "Theme_Material", "Theme", asList( in getAttrValue_willNotFindFrameworkResourcesWithSameName() local
35 assertThat(styleData.getAttrValue(androidSearchViewStyle).value).isEqualTo("android_value"); in getAttrValue_willNotFindFrameworkResourcesWithSameName()
37 assertThat(styleData.getAttrValue(myAppSearchViewStyle)).isNull(); in getAttrValue_willNotFindFrameworkResourcesWithSameName()
38 assertThat(styleData.getAttrValue(myLibSearchViewStyle)).isNull(); in getAttrValue_willNotFindFrameworkResourcesWithSameName()
43 StyleData styleData = new StyleData("android", "Theme_Material", "Theme", asList( in getAttrValue_willChooseBetweenAmbiguousAttributes() local
48 assertThat(styleData.getAttrValue(androidSearchViewStyle).value).isEqualTo("android_value"); in getAttrValue_willChooseBetweenAmbiguousAttributes()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DStyleResourceLoaderTest.java29 StyleData styleData = (StyleData) typedResource.getData(); in testStyleDataIsLoadedCorrectly() local
30 assertThat(styleData.getName()).isEqualTo("Theme_Holo"); in testStyleDataIsLoadedCorrectly()
31 assertThat(styleData.getParent()).isEqualTo("Theme"); in testStyleDataIsLoadedCorrectly()
32 assertThat(styleData.getPackageName()).isEqualTo("android"); in testStyleDataIsLoadedCorrectly()
33 assertThat(styleData.getAttrValue(new ResName("android", "attr", "colorForeground")).value) in testStyleDataIsLoadedCorrectly()
DResourceTestUtil.java50 StyleData styleData = (StyleData) data; in stringify() local
52 styleData.visit(new StyleData.Visitor() { in stringify()
58 data = data.toString() + "^" + styleData.getParent() + " " + attrs; in stringify()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DStaxStyleLoader.java57 …StyleData styleData = new StyleData(xmlContext.getPackageName(), name, styleParent, attributeResou… in onEnd() local
59 …resourceTable.addResource("style", styleData.getName(), new TypedResource<>(styleData, resType, xm… in onEnd()
DStyleResolver.java16 …yleResolver(ResourceTable appResourceTable, ResourceTable systemResourceTable, StyleData styleData, in StyleResolver() argument
23 styles.add(styleData); in StyleResolver()