Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
DResourceHelperTest.java34 assertNumberFormatException(() -> ResourceHelper.getColor("")); in testGetColor()
35 assertNumberFormatException(() -> ResourceHelper.getColor("AFAFAF")); in testGetColor()
36 assertNumberFormatException(() -> ResourceHelper.getColor("AAA")); in testGetColor()
37 assertNumberFormatException(() -> ResourceHelper.getColor("#JFAFAF")); in testGetColor()
38 assertNumberFormatException(() -> ResourceHelper.getColor("#AABBCCDDEE")); in testGetColor()
39 assertNumberFormatException(() -> ResourceHelper.getColor("#JAAA")); in testGetColor()
40 assertNumberFormatException(() -> ResourceHelper.getColor("#AA BBCC")); 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()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
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()
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()
DAppCompatActionBar.java27 import com.android.layoutlib.bridge.impl.ResourceHelper;
290 return ResourceHelper.getDrawable(value, mBridgeContext); in getDrawable()
DFrameworkActionBarWrapper.java31 import com.android.layoutlib.bridge.impl.ResourceHelper;
362 return ResourceHelper.getDrawable(value, mContext); in getDrawable()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java32 import com.android.layoutlib.bridge.impl.ResourceHelper;
301 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor()
316 return ResourceHelper.getColorStateList(mResourceData[index], mContext, mTheme); in getColorStateList()
325 return ResourceHelper.getComplexColor(mResourceData[index], mContext, mTheme); in getComplexColor()
374 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true)) { in getDimension()
492 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true)) { in getDimension()
526 if (ResourceHelper.parseFloatAttribute(mNames[index], value, mValue, false)) { in getFraction()
673 return ResourceHelper.getDrawable(value, mContext, mTheme); in getDrawable()
699 return ResourceHelper.getFont(value, mContext, mTheme); in getFont()
784 ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false); in getValue()
[all …]
DResources_Delegate.java38 import com.android.layoutlib.bridge.impl.ResourceHelper;
186 ResourceHelper.getDrawable(value.getSecond(), getContext(resources), theme); in getDrawable()
215 return ResourceHelper.getColor(resourceValue.getValue()); in getColor()
250 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(), in getColorStateList()
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()
863 return ResourceHelper.getFont(value.getSecond(), getContext(resources), null); in getFont()
[all …]
/frameworks/layoutlib/bridge/src/android/view/
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");
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java56 import static com.android.layoutlib.bridge.impl.ResourceHelper.getBooleanThemeFrameworkAttrValue;
57 import static com.android.layoutlib.bridge.impl.ResourceHelper.getBooleanThemeValue;
150 Drawable d = ResourceHelper.getDrawable(builder.mWindowBackground, builder.mContext); in Layout()
549 TypedValue typedValue = ResourceHelper.getValue(attrRef.getName(), value.getValue(), in getDimension()
DRenderDrawable.java81 Drawable d = ResourceHelper.getDrawable(drawableResource, context); in render()
DResourceHelper.java77 public final class ResourceHelper { class
DRenderSessionImpl.java174 ResourceHelper.getBooleanThemeFrameworkAttrValue(params.getResources(), in init()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java28 import com.android.layoutlib.bridge.impl.ResourceHelper;
176 return ResourceHelper.getColor(value); in getAttributeIntValue()