Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java247 Pair<String, ResourceValue> resValue = getResourceValue(resources, id); in getColorStateList() local
249 if (resValue != null) { in getColorStateList()
250 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(), in getColorStateList()
269 ResourceValue resValue = value.getSecond(); in getText() local
271 assert resValue != null; in getText()
272 if (resValue != null) { in getText()
273 String v = resValue.getValue(); in getText()
288 ResourceValue resValue = value.getSecond(); in getText() local
290 assert resValue != null; in getText()
291 if (resValue != null) { in getText()
[all …]
DBridgeTypedArray.java560 ResourceValue resValue = mResourceData[index]; in getResourceId() local
563 if (resValue == null) { in getResourceId()
568 if (resValue instanceof StyleResourceValue) { in getResourceId()
570 return mContext.getDynamicIdByStyle((StyleResourceValue)resValue); in getResourceId()
576 if (!(resValue instanceof UnresolvedResourceValue)) { in getResourceId()
577 return mContext.getResourceId(resValue.asReference(), defValue); in getResourceId()
581 String value = resValue.getValue(); in getResourceId()
590 ResourceNamespace contextNamespace = resValue.getNamespace(); in getResourceId()
591 Resolver namespaceResolver = resValue.getNamespaceResolver(); in getResourceId()
/frameworks/base/cmds/idmap2/libidmap2/
DXml.cpp59 Res_value resValue; in FindTag() local
60 xml_.getAttributeValue(i, &resValue); in FindTag()
61 value = std::to_string(resValue.data); in FindTag()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java472 ResourceValue resValue = mRenderResources.getResolvedResource(layout); in inflateView() local
474 if (resValue != null) { in inflateView()
475 String path = resValue.getValue(); in inflateView()
991 ResourceValue resValue; in createStyleBasedTypedArray() local
993 resValue = mRenderResources.findItemInStyle(style, attrHolder.asReference()); in createStyleBasedTypedArray()
995 resValue = mRenderResources.findItemInTheme(attrHolder.asReference()); in createStyleBasedTypedArray()
998 if (resValue != null) { in createStyleBasedTypedArray()
999 defaultPropMap.put(attrHolder.asReference(), resValue); in createStyleBasedTypedArray() local
1001 resValue = mRenderResources.resolveResValue(resValue); in createStyleBasedTypedArray()
1005 resValue); in createStyleBasedTypedArray()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java156 private static ComplexColor getInternalComplexColor(@NonNull ResourceValue resValue, in getInternalComplexColor() argument
158 String value = resValue.getValue(); in getInternalComplexColor()
171 BridgeXmlBlockParser blockParser = getXmlBlockParser(context, resValue); in getInternalComplexColor()
228 public static ColorStateList getColorStateList(@NonNull ResourceValue resValue, in getColorStateList() argument
230 return (ColorStateList) getInternalComplexColor(resValue, context, in getColorStateList()
243 public static ComplexColor getComplexColor(@NonNull ResourceValue resValue, in getComplexColor() argument
245 return getInternalComplexColor(resValue, context, in getComplexColor()