Searched refs:typedResource (Results 1 – 9 of 9) sorted by relevance
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | Converter.java | 82 public CharSequence asCharSequence(TypedResource typedResource) { in asCharSequence() argument 83 return typedResource.asString(); in asCharSequence() 86 public int asInt(TypedResource typedResource) { in asInt() argument 90 public List<TypedResource> getItems(TypedResource typedResource) { in getItems() argument 104 public CharSequence asCharSequence(TypedResource typedResource) { in asCharSequence() argument 105 return typedResource.asString(); in asCharSequence() 117 public CharSequence asCharSequence(TypedResource typedResource) { in asCharSequence() argument 118 return typedResource.asString().trim(); in asCharSequence() 122 public int asInt(TypedResource typedResource) { in asInt() argument 123 return convertInt(typedResource.asString().trim()); in asInt() [all …]
|
D | ShadowLegacyAssetManager.java | 345 TypedResource typedResource = resolve(items.get(i), config, resId); in getResourceTextArray() local 346 charSequences[i] = getConverter(typedResource).asCharSequence(typedResource); in getResourceTextArray() 485 final FileTypedResource typedResource = in openNonAsset() local 488 if (typedResource == null) { in openNonAsset() 494 stream = typedResource.getFsFile().getInputStream(); in openNonAsset() 496 stream = new ByteArrayInputStream(typedResource.getFsFile().getBytes()); in openNonAsset() 500 Asset asset = Asset.newFileAsset(typedResource); in openNonAsset() 736 TypedResource typedResource = resolve(items.get(i), config, resId); in getArrayIntResource() local 737 ints[i] = getConverter(typedResource).asInt(typedResource); in getArrayIntResource() 778 TypedResource typedResource = typedResources.get(i); in getTypedArray() local [all …]
|
D | ShadowArscResourcesImpl.java | 91 …TypedResource typedResource = shadowAssetManager.getResourceTable().getValue(resId, shadowAssetMan… in getQuantityString() local 92 if (typedResource != null && typedResource instanceof PluralRules) { in getQuantityString() 93 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString()
|
D | ShadowLegacyResourcesImpl.java | 66 …TypedResource typedResource = shadowAssetManager.getResourceTable().getValue(resId, shadowAssetMan… in getQuantityString() local 67 if (typedResource != null && typedResource instanceof PluralRules) { in getQuantityString() 68 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString()
|
D | ShadowResources.java | 110 TypedResource typedResource = shadowAssetManager.getResourceTable() in getQuantityString() local 112 if (typedResource != null && typedResource instanceof PluralRules) { in getQuantityString() 113 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/ |
D | ResourceTestUtil.java | 36 for (TypedResource typedResource : map.get(key)) { in stringify() 37 Object data = typedResource.getData(); in stringify() 60 buf.append(" ").append(data).append(" {").append(typedResource.getResType()) in stringify() 61 .append("/").append(typedResource.getConfig()).append(": ") in stringify() 62 .append(shortContext(typedResource)).append("}").append("\n"); in stringify() 68 static String shortContext(TypedResource typedResource) { in shortContext() argument 69 …return typedResource.getXmlContext().toString().replaceAll("jar:/usr/local/google/home/.*\\.jar\\!… in shortContext()
|
D | StyleResourceLoaderTest.java | 28 …TypedResource typedResource = resourceTable.getValue(new ResName("android", "style", "Theme_Holo")… in testStyleDataIsLoadedCorrectly() local 29 StyleData styleData = (StyleData) typedResource.getData(); in testStyleDataIsLoadedCorrectly()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | PackageResourceTable.java | 90 TypedResource typedResource = resources.get(resName, config); in getFileResource() local 91 if (!(typedResource instanceof FileTypedResource)) { in getFileResource() 94 return (FileTypedResource) typedResource; in getFileResource()
|
D | StyleResolver.java | 92 TypedResource typedResource = resourceProvider.getValue(styleRef, config); in getParent() local 94 if (typedResource == null) { in getParent() 102 Object data = typedResource.getData(); in getParent()
|