Home
last modified time | relevance | path

Searched refs:colorStateList (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/
DColorStateListTest.java45 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList() local
47 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testStateIsInList()
53 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState() local
55 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor); in testEmptyState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSCarrier.java78 ColorStateList colorStateList = ColorStateList.valueOf( in updateState() local
80 mMobileRoaming.setImageTintList(colorStateList); in updateState()
82 mMobileSignal.setImageTintList(colorStateList); in updateState()
/frameworks/base/graphics/java/android/graphics/drawable/
DColorStateListDrawable.java45 public ColorStateListDrawable(@NonNull ColorStateList colorStateList) { in ColorStateListDrawable() argument
48 setColorStateList(colorStateList); in ColorStateListDrawable()
237 public void setColorStateList(@NonNull ColorStateList colorStateList) { in setColorStateList() argument
238 mState.mColor = colorStateList; in setColorStateList()
DGradientDrawable.java337 public void setStroke(int width, ColorStateList colorStateList) { in setStroke() argument
338 setStroke(width, colorStateList, 0, 0); in setStroke()
378 int width, ColorStateList colorStateList, float dashWidth, float dashGap) { in setStroke() argument
379 mGradientState.setStroke(width, colorStateList, dashWidth, dashGap); in setStroke()
381 if (colorStateList == null) { in setStroke()
385 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
1079 public void setColor(@Nullable ColorStateList colorStateList) {
1080 if (colorStateList == null) {
1084 final int color = colorStateList.getColorForState(stateSet, 0);
1085 mGradientState.setSolidColors(colorStateList);
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java301 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor() local
303 if (colorStateList != null) { in getColor()
304 return colorStateList.getDefaultColor(); in getColor()
774 ColorStateList colorStateList = getColorStateList(index); in getValue() local
775 if (colorStateList == null) { in getValue()
778 outValue.data = colorStateList.getDefaultColor(); in getValue()
/frameworks/base/core/java/android/content/res/
DColorStateList.java279 final ColorStateList colorStateList = new ColorStateList(); in createFromXmlInner() local
280 colorStateList.inflate(r, parser, attrs, theme); in createFromXmlInner()
281 return colorStateList; in createFromXmlInner()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java218 ColorStateList colorStateList = span.getTextColor(); in processTextAppearanceSpan() local
219 if (colorStateList != null) { in processTextAppearanceSpan()
220 int[] colors = colorStateList.getColors(); in processTextAppearanceSpan()
237 new ColorStateList(colorStateList.getStates(), colors), in processTextAppearanceSpan()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DCarSetupWizardCompatLayoutTest.java550 ColorStateList colorStateList = ReflectionHelpers.getField(state, "mColor"); in getDrawbleDefaultColor() local
551 return colorStateList.getDefaultColor(); in getDrawbleDefaultColor()
/frameworks/base/core/java/android/widget/
DRemoteViews.java1064 SetRippleDrawableColor(int id, ColorStateList colorStateList) { in SetRippleDrawableColor() argument
1066 this.mColorStateList = colorStateList; in SetRippleDrawableColor()
2884 public void setRippleDrawableColor(int viewId, ColorStateList colorStateList) {
2885 addAction(new SetRippleDrawableColor(viewId, colorStateList));
/frameworks/base/core/java/android/app/
DNotification.java4898 ColorStateList colorStateList = ColorStateList.valueOf(color); in handleProgressBar() local
4899 contentView.setProgressTintList(R.id.progress, colorStateList); in handleProgressBar()
4900 contentView.setProgressIndeterminateTintList(R.id.progress, colorStateList); in handleProgressBar()