Home
last modified time | relevance | path

Searched refs:typedValue (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DConverter2.java40 public boolean fillTypedValue(T data, TypedValue typedValue, boolean throwOnFailure) { in fillTypedValue() argument
47 public boolean fillTypedValue(String data, TypedValue typedValue, boolean throwOnFailure) { in fillTypedValue() argument
48 typedValue.type = TypedValue.TYPE_STRING; in fillTypedValue()
49 typedValue.data = 0; in fillTypedValue()
50 typedValue.assetCookie = getNextStringCookie(); in fillTypedValue()
51 typedValue.string = data; in fillTypedValue()
58 public boolean fillTypedValue(String data, TypedValue typedValue, boolean throwOnFailure) { in fillTypedValue() argument
60 typedValue.type = ResourceHelper.getColorType(data); in fillTypedValue()
61 typedValue.data = ResourceHelper.getColor(data); in fillTypedValue()
62 typedValue.assetCookie = 0; in fillTypedValue()
[all …]
DConverter.java94 public boolean fillTypedValue(T data, TypedValue typedValue) { in fillTypedValue() argument
109 public boolean fillTypedValue(AttrData data, TypedValue typedValue) { in fillTypedValue() argument
110 typedValue.type = TypedValue.TYPE_STRING; in fillTypedValue()
127 public boolean fillTypedValue(String data, TypedValue typedValue) { in fillTypedValue() argument
128 typedValue.type = TypedValue.TYPE_STRING; in fillTypedValue()
129 typedValue.data = 0; in fillTypedValue()
130 typedValue.assetCookie = getNextStringCookie(); in fillTypedValue()
131 typedValue.string = data; in fillTypedValue()
138 public boolean fillTypedValue(String data, TypedValue typedValue) { in fillTypedValue() argument
140 typedValue.type = ResourceHelper.getColorType(data); in fillTypedValue()
[all …]
DShadowLegacyAssetManager.java787 final TypedValue typedValue = new TypedValue(); in getTypedArray() local
793 typedValue.resourceId = resourceTable.getResourceId(refResName); in getTypedArray()
794 typedValue.data = typedValue.resourceId; in getTypedArray()
795 typedResource = resolve(typedResource, config, typedValue.resourceId); in getTypedArray()
813 typedValue.data = resourceTable.getResourceId(attrResName); in getTypedArray()
817 getConverter(typedResource).fillTypedValue(typedResource.getData(), typedValue); in getTypedArray() local
821 data[offset + STYLE_RESOURCE_ID] = typedValue.resourceId; in getTypedArray()
822 data[offset + STYLE_DATA] = typedValue.data; in getTypedArray()
823 data[offset + STYLE_ASSET_COOKIE] = typedValue.assetCookie; in getTypedArray()
824 data[offset + STYLE_CHANGING_CONFIGURATIONS] = typedValue.changingConfigurations; in getTypedArray()
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResXMLParser.java327 int type = attr.typedValue.dataType; in getAttributeDataType()
350 if (attr.typedValue.dataType != DataType.DYNAMIC_REFERENCE.code() || in getAttributeData()
352 return dtohl(attr.typedValue.data); in getAttributeData()
355 final Ref<Integer> data = new Ref<>(dtohl(attr.typedValue.data)); in getAttributeData()
374 outValue.set(attr.typedValue); in getAttributeValue()
DResourceTypes.java951 final Res_value typedValue; field in ResourceTypes.ResXMLTree_attribute
957 this.typedValue = new Res_value(buf, offset + 12); in ResXMLTree_attribute()