Home
last modified time | relevance | path

Searched refs:ResourceHelper (Results 1 – 14 of 14) sorted by relevance

/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
H A DResourceHelperTest.java34 assertNumberFormatException(() -> ResourceHelper.getColor("")); in testGetColor()
36 assertNumberFormatException(() -> ResourceHelper.getColor("AAA")); in testGetColor()
39 assertNumberFormatException(() -> ResourceHelper.getColor("#JAAA")); in testGetColor()
42 assertEquals(0xffaaaaaa, ResourceHelper.getColor("#AAA")); in testGetColor()
43 assertEquals(0xffaaaaaa, ResourceHelper.getColor(" #AAA")); in testGetColor()
44 assertEquals(0xffaaaaaa, ResourceHelper.getColor("#AAA ")); in testGetColor()
45 assertEquals(0xffaaaaaa, ResourceHelper.getColor(" #AAA ")); in testGetColor()
46 assertEquals(0xaaaaaa, ResourceHelper.getColor("#0AAA")); in testGetColor()
47 assertEquals(0xffaabbcc, ResourceHelper.getColor("#AABBCC")); in testGetColor()
48 assertEquals(0x12aabbcc, ResourceHelper.getColor("#12AABBCC")); in testGetColor()
[all …]
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java26 import com.android.layoutlib.bridge.impl.ResourceHelper;
166 Drawable d = ResourceHelper.getDrawable(backgroundValue, bridgeContext); in setStyle()
187 if (ResourceHelper.parseFloatAttribute("textSize", textSize.getValue(), out, in setStyle()
199 ResourceHelper.getColorStateList(textColor, bridgeContext, null); in setStyle()
230 boolean translucent = ResourceHelper.getBooleanThemeFrameworkAttrValue(renderResources, in getBarColor()
236 boolean transparent = ResourceHelper.getBooleanThemeFrameworkAttrValue(renderResources, in getBarColor()
256 return ResourceHelper.getColor(resource.getValue()); in getColor()
H A DFrameworkActionBar.java25 import com.android.layoutlib.bridge.impl.ResourceHelper;
231 TypedValue typedValue = ResourceHelper.getValue(null, value, false /*requireUnit*/); in getPixelValue()
247 TypedValue typedValue = ResourceHelper.getValue("actionBarSize", value.getValue(), in getActionBarHeight()
H A DAppCompatActionBar.java27 import com.android.layoutlib.bridge.impl.ResourceHelper;
306 return ResourceHelper.getDrawable(value, mBridgeContext); in getDrawable()
H A DFrameworkActionBarWrapper.java31 import com.android.layoutlib.bridge.impl.ResourceHelper;
362 return ResourceHelper.getDrawable(value, mContext); in getDrawable()
/aosp12/frameworks/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java34 import com.android.layoutlib.bridge.impl.ResourceHelper;
326 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor()
350 return ResourceHelper.getComplexColor(mResourceData[index], mContext, mTheme); in getComplexColor()
397 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true)) { in getDimension()
458 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true)) { in getDimensionPixelSize()
499 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true)) { in getLayoutDimension()
546 if (ResourceHelper.parseFloatAttribute(mNames[index], value, mValue, false)) { in getFraction()
694 return ResourceHelper.getDrawable(value, mContext, mTheme); in getDrawable()
720 return ResourceHelper.getFont(value, mContext, mTheme); in getFont()
973 return ResourceHelper.getColor(charSeq) * sign; in convertValueToInt()
[all …]
H A DResources_Delegate.java38 import com.android.layoutlib.bridge.impl.ResourceHelper;
215 return ResourceHelper.getColor(resourceValue.getValue()); in getColor()
369 values[i] = ResourceHelper.getColor(element); in getIntArray()
485 ResourceHelper.getXmlBlockParser(getContext(resources), value); in getLayout()
511 return ResourceHelper.getXmlBlockParser(getContext(resources), value); in getAnimation()
589 if (ResourceHelper.parseFloatAttribute( in getDimension()
617 if (ResourceHelper.parseFloatAttribute( in getDimensionPixelOffset()
646 if (ResourceHelper.parseFloatAttribute( in getDimensionPixelSize()
877 return ResourceHelper.getFont(resVal, getContext(resources), null); in getFont()
899 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue, in getResourceValue()
[all …]
/aosp12/frameworks/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java20 import com.android.layoutlib.bridge.impl.ResourceHelper;
47 private static final int START_COLOR = ResourceHelper.getColor("#37000000");
48 private static final int END_COLOR = ResourceHelper.getColor("#03000000");
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DLayout.java57 import static com.android.layoutlib.bridge.impl.ResourceHelper.getBooleanThemeFrameworkAttrValue;
58 import static com.android.layoutlib.bridge.impl.ResourceHelper.getBooleanThemeValue;
151 Drawable d = ResourceHelper.getDrawable(builder.mWindowBackground, builder.mContext); in Layout()
550 TypedValue typedValue = ResourceHelper.getValue(attrRef.getName(), value.getValue(), in getDimension()
H A DRenderDrawable.java81 Drawable d = ResourceHelper.getDrawable(drawableResource, context); in render()
H A DResourceHelper.java77 public final class ResourceHelper { class
/aosp12/frameworks/layoutlib/bridge/src/android/util/
H A DBridgeXmlPullAttributes.java28 import com.android.layoutlib.bridge.impl.ResourceHelper;
172 return ResourceHelper.getColor(value); in getAttributeIntValue()
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DRenderTests.java33 import com.android.layoutlib.bridge.impl.ResourceHelper;
1044 ColorStateList stateList = ResourceHelper.getColorStateList( in testColorStateList()
1066 stateList = ResourceHelper.getColorStateList( in testColorStateList()
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java34 import com.android.layoutlib.bridge.impl.ResourceHelper;
426 outValue.data = ResourceHelper.getColor(stringValue); in resolveThemeAttribute()