Home
last modified time | relevance | path

Searched refs:colorStateList (Results 1 – 13 of 13) 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/carrier/
DQSCarrier.java91 ColorStateList colorStateList = ColorStateList.valueOf( in updateState() local
93 mMobileRoaming.setImageTintList(colorStateList); in updateState()
94 mMobileSignal.setImageTintList(colorStateList); in updateState()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DPartnerConfigHelperTest.java133 ColorStateList colorStateList = helper.getColorStateList( in getColorStateList_shouldReturnExpectedColorStateList() local
135 assertThat(colorStateList) in getColorStateList_shouldReturnExpectedColorStateList()
156 ColorStateList colorStateList = helper.getColorStateList( in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList() local
158 assertThat(colorStateList) in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList()
/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.java348 public void setStroke(int width, ColorStateList colorStateList) { in setStroke() argument
349 setStroke(width, colorStateList, 0, 0); in setStroke()
389 int width, ColorStateList colorStateList, float dashWidth, float dashGap) { in setStroke() argument
390 mGradientState.setStroke(width, colorStateList, dashWidth, dashGap); in setStroke()
392 if (colorStateList == null) { in setStroke()
396 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
1090 public void setColor(@Nullable ColorStateList colorStateList) {
1091 if (colorStateList == null) {
1095 final int color = colorStateList.getColorForState(stateSet, 0);
1096 mGradientState.setSolidColors(colorStateList);
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java321 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor() local
323 if (colorStateList != null) { in getColor()
324 return colorStateList.getDefaultColor(); in getColor()
797 ColorStateList colorStateList = getColorStateList(index); in getValue() local
798 if (colorStateList == null) { in getValue()
801 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/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DCarSetupWizardBaseLayout.java580 ColorStateList colorStateList = in setButtonTextColor() local
582 if (colorStateList != null) { in setButtonTextColor()
583 button.setTextColor(colorStateList); in setButtonTextColor()
/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.java1073 SetRippleDrawableColor(int id, ColorStateList colorStateList) { in SetRippleDrawableColor() argument
1075 this.mColorStateList = colorStateList; in SetRippleDrawableColor()
2893 public void setRippleDrawableColor(int viewId, ColorStateList colorStateList) {
2894 addAction(new SetRippleDrawableColor(viewId, colorStateList));
/frameworks/base/core/java/android/app/
DNotification.java5028 ColorStateList colorStateList = ColorStateList.valueOf(color); in handleProgressBar() local
5029 contentView.setProgressTintList(R.id.progress, colorStateList); in handleProgressBar()
5030 contentView.setProgressIndeterminateTintList(R.id.progress, colorStateList); in handleProgressBar()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...