Home
last modified time | relevance | path

Searched refs:typedResource (Results 1 – 10 of 10) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DConverter.java82 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 …]
DShadowLegacyAssetManager.java345 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 …]
DShadowLegacyResourcesImpl.java66 …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()
DShadowArscResourcesImpl.java91 …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()
DShadowResources.java110 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/
DResourceTestUtil.java36 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()
DStyleResourceLoaderTest.java28 …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/
DPackageResourceTable.java90 TypedResource typedResource = resources.get(resName, config); in getFileResource() local
91 if (!(typedResource instanceof FileTypedResource)) { in getFileResource()
94 return (FileTypedResource) typedResource; in getFileResource()
DStyleResolver.java92 TypedResource typedResource = resourceProvider.getValue(styleRef, config); in getParent() local
94 if (typedResource == null) { in getParent()
102 Object data = typedResource.getData(); in getParent()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DResourceManager11.cpp82 auto *typedResource = static_cast<GetD3D11Type<ResourceT> *>(genericResource); in ComputeGenericMemoryUsage() local
84 typedResource->GetDesc(&desc); in ComputeGenericMemoryUsage()