Home
last modified time | relevance | path

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

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList() local
46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testStateIsInList()
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState() local
54 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor); in testEmptyState()
/frameworks/base/core/java/android/content/res/
DColorStateList.java143 final ColorStateList colorStateList; in createFromXmlInner() local
146 colorStateList = new ColorStateList(); in createFromXmlInner()
152 colorStateList.inflate(r, parser, attrs); in createFromXmlInner()
153 return colorStateList; in createFromXmlInner()
351 ColorStateList colorStateList, int state, int color) { in addFirstIfMissing() argument
352 final int[][] inputStates = colorStateList.getStates(); in addFirstIfMissing()
357 return colorStateList; in addFirstIfMissing()
366 final int[] inputColors = colorStateList.getColors(); in addFirstIfMissing()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java178 ColorStateList colorStateList = span.getTextColor(); in processTextAppearanceSpan() local
179 if (colorStateList != null) { in processTextAppearanceSpan()
180 int[] colors = colorStateList.getColors(); in processTextAppearanceSpan()
197 new ColorStateList(colorStateList.getStates(), colors), in processTextAppearanceSpan()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java270 public void setStroke(int width, ColorStateList colorStateList) { in setStroke() argument
271 setStroke(width, colorStateList, 0, 0); in setStroke()
311 int width, ColorStateList colorStateList, float dashWidth, float dashGap) { in setStroke() argument
312 mGradientState.setStroke(width, colorStateList, dashWidth, dashGap); in setStroke()
314 if (colorStateList == null) { in setStroke()
318 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
735 public void setColor(ColorStateList colorStateList) {
736 mGradientState.setColorStateList(colorStateList);
738 if (colorStateList == null) {
742 color = colorStateList.getColorForState(stateSet, 0);
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java261 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor() local
263 if (colorStateList != null) { in getColor()
264 return colorStateList.getDefaultColor(); in getColor()
/frameworks/base/core/java/android/app/
DNotification.java2870 ColorStateList colorStateList = ColorStateList.valueOf(mColor);
2871 contentView.setProgressTintList(R.id.progress, colorStateList);
2872 contentView.setProgressIndeterminateTintList(R.id.progress, colorStateList);