Searched refs:styleData (Results 1 – 5 of 5) sorted by relevance
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/ |
D | StyleDataTest.java | 19 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/ |
D | StyleResourceLoaderTest.java | 29 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()
|
D | ResourceTestUtil.java | 50 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/ |
D | StaxStyleLoader.java | 57 …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()
|
D | StyleResolver.java | 16 …yleResolver(ResourceTable appResourceTable, ResourceTable systemResourceTable, StyleData styleData, in StyleResolver() argument 23 styles.add(styleData); in StyleResolver()
|