Home
last modified time | relevance | path

Searched refs:resValue (Results 1 – 4 of 4) sorted by relevance

/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java248 Pair<String, ResourceValue> resValue = getResourceValue(resources, id); in getColorStateList() local
250 if (resValue != null) { in getColorStateList()
251 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.second, in getColorStateList()
270 ResourceValue resValue = value.second; in getText() local
272 assert resValue != null; in getText()
273 if (resValue != null) { in getText()
274 String v = resValue.getValue(); in getText()
289 ResourceValue resValue = value.second; in getText() local
291 assert resValue != null; in getText()
292 if (resValue != null) { in getText()
[all …]
DBridgeTypedArray.java584 ResourceValue resValue = mResourceData[index]; in getResourceId() local
587 if (resValue == null) { in getResourceId()
592 if (resValue instanceof StyleResourceValue) { in getResourceId()
594 return mContext.getDynamicIdByStyle((StyleResourceValue)resValue); in getResourceId()
600 if (!(resValue instanceof UnresolvedResourceValue)) { in getResourceId()
601 return mContext.getResourceId(resValue.asReference(), defValue); in getResourceId()
605 String value = resValue.getValue(); in getResourceId()
614 ResourceNamespace contextNamespace = resValue.getNamespace(); in getResourceId()
615 Resolver namespaceResolver = resValue.getNamespaceResolver(); in getResourceId()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java548 ResourceValue resValue = mRenderResources.getResolvedResource(layout); in inflateView() local
550 if (resValue != null) { in inflateView()
551 String path = resValue.getValue(); in inflateView()
1124 ResourceValue resValue; in createStyleBasedTypedArray() local
1126 resValue = mRenderResources.findItemInStyle(style, attrHolder.asReference()); in createStyleBasedTypedArray()
1128 resValue = mRenderResources.findItemInTheme(attrHolder.asReference()); in createStyleBasedTypedArray()
1131 if (resValue != null) { in createStyleBasedTypedArray()
1132 defaultPropMap.put(attrHolder.asReference(), resValue); in createStyleBasedTypedArray() local
1134 resValue = mRenderResources.resolveResValue(resValue); in createStyleBasedTypedArray()
1138 resValue); in createStyleBasedTypedArray()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java190 private static ComplexColor getInternalComplexColor(@NonNull ResourceValue resValue, in getInternalComplexColor() argument
192 String value = resValue.getValue(); in getInternalComplexColor()
211 BridgeXmlBlockParser blockParser = getXmlBlockParser(context, resValue); in getInternalComplexColor()
268 public static ColorStateList getColorStateList(@NonNull ResourceValue resValue, in getColorStateList() argument
270 return (ColorStateList) getInternalComplexColor(resValue, context, in getColorStateList()
283 public static ComplexColor getComplexColor(@NonNull ResourceValue resValue, in getComplexColor() argument
285 return getInternalComplexColor(resValue, context, in getComplexColor()