Home
last modified time | relevance | path

Searched refs:ResourceHelper (Results 1 – 15 of 15) 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;
306 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.java33 import com.android.layoutlib.bridge.impl.ResourceHelper;
321 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor()
336 return ResourceHelper.getColorStateList(mResourceData[index], mContext, mTheme); in getColorStateList()
345 return ResourceHelper.getComplexColor(mResourceData[index], mContext, mTheme); in getComplexColor()
394 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true)) { in getDimension()
514 if (ResourceHelper.parseFloatAttribute(mNames[index], s, mValue, true)) { in getDimension()
548 if (ResourceHelper.parseFloatAttribute(mNames[index], value, mValue, false)) { in getFraction()
696 return ResourceHelper.getDrawable(value, mContext, mTheme); in getDrawable()
722 return ResourceHelper.getFont(value, mContext, mTheme); in getFont()
807 ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false); in getValue()
[all …]
DResources_Delegate.java38 import com.android.layoutlib.bridge.impl.ResourceHelper;
187 ResourceHelper.getDrawable(value.getSecond(), getContext(resources), theme); in getDrawable()
216 return ResourceHelper.getColor(resourceValue.getValue()); in getColor()
251 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(), in getColorStateList()
370 values[i] = ResourceHelper.getColor(element); in getIntArray()
486 ResourceHelper.getXmlBlockParser(getContext(resources), value); in getLayout()
512 return ResourceHelper.getXmlBlockParser(getContext(resources), value); in getAnimation()
590 if (ResourceHelper.parseFloatAttribute( in getDimension()
618 if (ResourceHelper.parseFloatAttribute( in getDimensionPixelOffset()
647 if (ResourceHelper.parseFloatAttribute( in getDimensionPixelSize()
[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.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()
551 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.java180 ResourceHelper.getBooleanThemeFrameworkAttrValue(params.getResources(), in init()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java28 import com.android.layoutlib.bridge.impl.ResourceHelper;
172 return ResourceHelper.getColor(value); in getAttributeIntValue()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java33 import com.android.layoutlib.bridge.impl.ResourceHelper;
1044 ColorStateList stateList = ResourceHelper.getColorStateList( in testColorStateList()
1066 stateList = ResourceHelper.getColorStateList( in testColorStateList()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java35 import com.android.layoutlib.bridge.impl.ResourceHelper;
419 outValue.data = ResourceHelper.getColor(stringValue); in resolveThemeAttribute()