Home
last modified time | relevance | path

Searched refs:typedResource (Results 1 – 19 of 19) 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/framework/src/main/java/org/robolectric/shadows/
DConverter.java83 public CharSequence asCharSequence(TypedResource typedResource) { in asCharSequence() argument
84 return typedResource.asString(); in asCharSequence()
87 public int asInt(TypedResource typedResource) { in asInt() argument
91 public List<TypedResource> getItems(TypedResource typedResource) { in getItems() argument
105 public CharSequence asCharSequence(TypedResource typedResource) { in asCharSequence() argument
106 return typedResource.asString(); in asCharSequence()
118 public CharSequence asCharSequence(TypedResource typedResource) { in asCharSequence() argument
119 return typedResource.asString().trim(); in asCharSequence()
123 public int asInt(TypedResource typedResource) { in asInt() argument
124 return convertInt(typedResource.asString().trim()); in asInt()
[all …]
DShadowLegacyAssetManager.java341 TypedResource typedResource = resolve(items.get(i), config, resId); in getResourceTextArray() local
342 charSequences[i] = getConverter(typedResource).asCharSequence(typedResource); in getResourceTextArray()
468 final FileTypedResource typedResource = in openNonAsset() local
471 if (typedResource == null) { in openNonAsset()
477 stream = Fs.getInputStream(typedResource.getPath()); in openNonAsset()
479 stream = new ByteArrayInputStream(Fs.getBytes(typedResource.getPath())); in openNonAsset()
483 Asset asset = Asset.newFileAsset(typedResource); in openNonAsset()
769 TypedResource typedResource = resolve(items.get(i), config, resId); in getArrayIntResource() local
770 ints[i] = getConverter(typedResource).asInt(typedResource); in getArrayIntResource()
811 TypedResource typedResource = typedResources.get(i); in getTypedArray() local
[all …]
DShadowArscResourcesImpl.java87 …TypedResource typedResource = shadowAssetManager.getResourceTable().getValue(resId, shadowAssetMan… in getQuantityString() local
88 if (typedResource != null && typedResource instanceof PluralRules) { in getQuantityString()
89 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString()
DShadowLegacyResourcesImpl.java68 …TypedResource typedResource = shadowAssetManager.getResourceTable().getValue(resId, shadowAssetMan… in getQuantityString() local
69 if (typedResource != null && typedResource instanceof PluralRules) { in getQuantityString()
70 PluralRules pluralRules = (PluralRules) typedResource; in getQuantityString()
DShadowResources.java119 TypedResource typedResource = in getQuantityString() local
121 if (typedResource != null && typedResource instanceof PluralRules) { in getQuantityString()
122 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/robolectric/src/test/java/org/robolectric/res/
DResourceTestUtil.java37 for (TypedResource typedResource : map.get(key)) { in stringify()
38 Object data = typedResource.getData(); in stringify()
65 buf.append(" ").append(data).append(" {").append(typedResource.getResType()) in stringify()
66 .append("/").append(typedResource.getConfig()).append(": ") in stringify()
67 .append(shortContext(typedResource)).append("}").append("\n"); in stringify()
73 static String shortContext(TypedResource<?> typedResource) { in shortContext() argument
74 return typedResource in shortContext()
DStyleResourceLoaderTest.java28 TypedResource typedResource = in testStyleDataIsLoadedCorrectly() local
31 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/robolectric/resources/src/main/java/org/robolectric/res/
DPackageResourceTable.java91 TypedResource typedResource = resources.get(resName, config); in getFileResource() local
92 if (!(typedResource instanceof FileTypedResource)) { in getFileResource()
95 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()