/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | ColorStateListTest.java | 45 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/ |
D | QSCarrier.java | 78 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/ |
D | ColorStateListDrawable.java | 45 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()
|
D | GradientDrawable.java | 337 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/ |
D | BridgeTypedArray.java | 301 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/ |
D | ColorStateList.java | 279 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/ |
D | ContrastColorUtil.java | 218 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/ |
D | CarSetupWizardCompatLayoutTest.java | 550 ColorStateList colorStateList = ReflectionHelpers.getField(state, "mColor"); in getDrawbleDefaultColor() local 551 return colorStateList.getDefaultColor(); in getDrawbleDefaultColor()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViews.java | 1064 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/ |
D | Notification.java | 4898 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()
|