Home
last modified time | relevance | path

Searched refs:BridgeTypedArray (Results 1 – 6 of 6) sorted by relevance

/aosp12/frameworks/layoutlib/bridge/tests/src/android/content/res/
H A DBridgeTypedArrayTest.java40 assertEquals(TYPE_NULL, BridgeTypedArray.getType(null)); in getType()
43 assertEquals(TYPE_INT_BOOLEAN, BridgeTypedArray.getType("true")); in getType()
44 assertEquals(TYPE_STRING, BridgeTypedArray.getType("False")); in getType()
45 assertEquals(TYPE_INT_HEX, BridgeTypedArray.getType("0xffa39d")); in getType()
46 assertEquals(TYPE_STRING, BridgeTypedArray.getType("0xnothex")); in getType()
51 assertEquals(TYPE_STRING, BridgeTypedArray.getType("#notacolor")); in getType()
52 assertEquals(TYPE_DIMENSION, BridgeTypedArray.getType("16dp")); in getType()
53 assertEquals(TYPE_STRING, BridgeTypedArray.getType("16notaunit")); in getType()
54 assertEquals(TYPE_INT_DEC, BridgeTypedArray.getType("98543")); in getType()
55 assertEquals(TYPE_FLOAT, BridgeTypedArray.getType("43.364")); in getType()
[all …]
/aosp12/frameworks/layoutlib/bridge/src/android/content/res/
H A DResources_Theme_Delegate.java59 BridgeTypedArray ta = RenderSessionImpl.getCurrentContext().internalObtainStyledAttributes( in obtainStyledAttributes()
72 BridgeTypedArray ta = RenderSessionImpl.getCurrentContext().internalObtainStyledAttributes( in obtainStyledAttributes()
84BridgeTypedArray ta = RenderSessionImpl.getCurrentContext().internalObtainStyledAttributes(set, in obtainStyledAttributes()
H A DTypedArray_Delegate.java33 return BridgeTypedArray.obtain(res, len); in obtain()
H A DBridgeTypedArray.java76 public final class BridgeTypedArray extends TypedArray { class
93 public BridgeTypedArray(Resources resources, BridgeContext context, int len) { in BridgeTypedArray() method in BridgeTypedArray
1052 return new BridgeTypedArray(res, null, len); in obtain()
H A DResources_Delegate.java127 public static BridgeTypedArray newTypeArray(Resources resources, int numEntries) { in newTypeArray()
128 return new BridgeTypedArray(resources, getContext(resources), numEntries); in newTypeArray()
551 BridgeTypedArray typedArray = newTypeArray(resources, length); in obtainTypedArray()
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java63 import android.content.res.BridgeTypedArray;
685 public final BridgeTypedArray internalObtainStyledAttributes(int resId, int[] attrs) in internalObtainStyledAttributes()
713 Pair<BridgeTypedArray, Map<ResourceReference, ResourceValue>> typeArrayAndPropertiesPair = in internalObtainStyledAttributes()
742 public BridgeTypedArray internalObtainStyledAttributes(@Nullable AttributeSet set, int[] attrs, in internalObtainStyledAttributes()
781 BridgeTypedArray ta = in internalObtainStyledAttributes()
1040 BridgeTypedArray ta = in createStyleBasedTypedArray()
2213 Map<Integer, Pair<BridgeTypedArray,
2220 public Pair<BridgeTypedArray, Map<ResourceReference, ResourceValue>> get(int[] attrs, in get()
2222 Map<List<StyleResourceValue>, Map<Integer, Pair<BridgeTypedArray, Map<ResourceReference, in get()
2236 Pair<BridgeTypedArray, Map<ResourceReference, ResourceValue>> value) { in put() argument
[all …]