Home
last modified time | relevance | path

Searched refs:attrResourceLoader (Results 1 – 6 of 6) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
DAttrResourceLoaderTest.java17 private AttrResourceLoader attrResourceLoader; field in AttrResourceLoaderTest
24 attrResourceLoader = new AttrResourceLoader(resourceExtractor); in setUp()
25 new DocumentLoader(attrResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in setUp()
26 … new DocumentLoader(attrResourceLoader).loadSystemResourceXmlDir(getSystemResourceDir("values")); in setUp()
31 …assertThat(attrResourceLoader.convertValueToEnum(CustomView.class, "xxx", "itemType", "integer"), … in testAttributesAreResolved()
32 …assertThat(attrResourceLoader.hasAttributeFor(CustomView.class, "xxx", "itemType"), equalTo(true)); in testAttributesAreResolved()
34 …assertThat(attrResourceLoader.convertValueToEnum(CustomView.class, "xxx", "itemType", "string"), e… in testAttributesAreResolved()
35 …assertThat(attrResourceLoader.hasAttributeFor(CustomView.class, "xxx", "otherItemType"), equalTo(f… in testAttributesAreResolved()
41 …assertThat(attrResourceLoader.convertValueToEnum(ImageView.class, "android", "scaleType", "fitCent… in testAttributesAreResolvedForSystemAttrs()
42 …assertThat(attrResourceLoader.hasAttributeFor(ImageView.class, "android", "scaleType"), equalTo(tr… in testAttributesAreResolvedForSystemAttrs()
[all …]
DTestAttributeSetTest.java135 AttrResourceLoader attrResourceLoader = new AttrResourceLoader(resourceExtractor); in getAttributeIntValue_shouldReturnEnumValuesForEnumAttributes() local
136 new DocumentLoader(attrResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in getAttributeIntValue_shouldReturnEnumValuesForEnumAttributes()
137 …ibuteSet testAttributeSet = new TestAttributeSet(attributes, null, attrResourceLoader, CustomView.… in getAttributeIntValue_shouldReturnEnumValuesForEnumAttributes()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/
DTestAttributeSet.java14 private AttrResourceLoader attrResourceLoader; field in TestAttributeSet
33 … AttrResourceLoader attrResourceLoader, Class<? extends View> viewClass, boolean isSystem) { in TestAttributeSet() argument
36 this.attrResourceLoader = attrResourceLoader; in TestAttributeSet()
44 this.attrResourceLoader = new AttrResourceLoader(this.resourceExtractor); in TestAttributeSet()
68 if (attrResourceLoader.hasAttributeFor(viewClass, "xxx", attribute)) { in getAttributeIntValue()
69 value = attrResourceLoader.convertValueToEnum(viewClass, "xxx", attribute, value); in getAttributeIntValue()
114 if (attrResourceLoader.hasAttributeFor(viewClass, "xxx", attribute)) { in getAttributeFloatValue()
115 value = attrResourceLoader.convertValueToEnum(viewClass, "xxx", attribute, value); in getAttributeFloatValue()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DMenuLoader.java25 private AttrResourceLoader attrResourceLoader; field in MenuLoader
27 public MenuLoader(ResourceExtractor resourceExtractor, AttrResourceLoader attrResourceLoader) { in MenuLoader() argument
29 this.attrResourceLoader = attrResourceLoader; in MenuLoader()
138 resourceExtractor, attrResourceLoader, null, false); in MenuNode()
DViewLoader.java30 private AttrResourceLoader attrResourceLoader; field in ViewLoader
33 public ViewLoader(ResourceExtractor resourceExtractor, AttrResourceLoader attrResourceLoader) { in ViewLoader() argument
35 this.attrResourceLoader = attrResourceLoader; in ViewLoader()
208 …attributeSet = new TestAttributeSet(attributes, resourceExtractor, attrResourceLoader, View.class,… in constructFragment()
245 …attributeSet = new TestAttributeSet(attributes, resourceExtractor, attrResourceLoader, clazz, isSy… in constructView()
DResourceLoader.java65 private final AttrResourceLoader attrResourceLoader; field in ResourceLoader
97 attrResourceLoader = new AttrResourceLoader( resourceExtractor ); in ResourceLoader()
130 viewLoader = new ViewLoader( resourceExtractor, attrResourceLoader ); in init()
131 menuLoader = new MenuLoader( resourceExtractor, attrResourceLoader ); in init()
183 attrResourceLoader ); in loadValueResources()
376 attrResourceLoader = null; in ResourceLoader()