/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/ |
D | ResourceHelperTest.java | 34 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/ |
D | CustomBar.java | 26 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()
|
D | FrameworkActionBar.java | 25 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()
|
D | AppCompatActionBar.java | 27 import com.android.layoutlib.bridge.impl.ResourceHelper; 306 return ResourceHelper.getDrawable(value, mBridgeContext); in getDrawable()
|
D | FrameworkActionBarWrapper.java | 31 import com.android.layoutlib.bridge.impl.ResourceHelper; 362 return ResourceHelper.getDrawable(value, mContext); in getDrawable()
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | BridgeTypedArray.java | 33 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 …]
|
D | Resources_Delegate.java | 38 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/ |
D | RectShadowPainter.java | 20 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/ |
D | Layout.java | 57 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()
|
D | RenderDrawable.java | 81 Drawable d = ResourceHelper.getDrawable(drawableResource, context); in render()
|
D | ResourceHelper.java | 77 public final class ResourceHelper { class
|
D | RenderSessionImpl.java | 180 ResourceHelper.getBooleanThemeFrameworkAttrValue(params.getResources(), in init()
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 28 import com.android.layoutlib.bridge.impl.ResourceHelper; 172 return ResourceHelper.getColor(value); in getAttributeIntValue()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | RenderTests.java | 33 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/ |
D | BridgeContext.java | 35 import com.android.layoutlib.bridge.impl.ResourceHelper; 419 outValue.data = ResourceHelper.getColor(stringValue); in resolveThemeAttribute()
|