Home
last modified time | relevance | path

Searched refs:colorStateList (Results 1 – 16 of 16) 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/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()
243 public void setColorStateList(@NonNull ColorStateList colorStateList) { in setColorStateList() argument
244 mState.mColor = colorStateList; in setColorStateList()
DGradientDrawable.java352 public void setStroke(int width, ColorStateList colorStateList) { in setStroke() argument
353 setStroke(width, colorStateList, 0, 0); in setStroke()
393 int width, ColorStateList colorStateList, float dashWidth, float dashGap) { in setStroke() argument
394 mGradientState.setStroke(width, colorStateList, dashWidth, dashGap); in setStroke()
396 if (colorStateList == null) { in setStroke()
400 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
1103 public void setColor(@Nullable ColorStateList colorStateList) {
1104 if (colorStateList == null) {
1108 final int color = colorStateList.getColorForState(stateSet, 0);
1109 mGradientState.setSolidColors(colorStateList);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/carrier/
DQSCarrier.java97 ColorStateList colorStateList = Utils.getColorAttr(mContext, in updateState() local
99 mMobileRoaming.setImageTintList(colorStateList); in updateState()
100 mMobileSignal.setImageTintList(colorStateList); in updateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DBouncerShowMessageModel.kt22 data class BouncerShowMessageModel(val message: String?, val colorStateList: ColorStateList?) constant in com.android.systemui.keyguard.shared.model.BouncerShowMessageModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttReceiverRippleController.kt134 var colorStateList = in <lambda>() variable
138 return colorStateList.withLStar(TONE_PERCENT).defaultColor in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAlphaTintDrawableWrapper.java141 ColorStateList colorStateList in AlphaTintState() argument
146 mColorStateList = colorStateList; in AlphaTintState()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java329 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor() local
331 if (colorStateList != null) { in getColor()
332 return colorStateList.getDefaultColor(); in getColor()
798 ColorStateList colorStateList = getColorStateList(index); in getValue() local
799 if (colorStateList == null) { in getValue()
802 outValue.data = colorStateList.getDefaultColor(); in getValue()
/frameworks/base/core/java/android/content/res/
DColorStateList.java295 final ColorStateList colorStateList = new ColorStateList(); in createFromXmlInner() local
296 colorStateList.inflate(r, parser, attrs, theme); in createFromXmlInner()
297 return colorStateList; in createFromXmlInner()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DPrimaryBouncerInteractor.kt258 fun showMessage(message: String?, colorStateList: ColorStateList?) { in <lambda>()
259 repository.setShowMessage(BouncerShowMessageModel(message, colorStateList)) in <lambda>()
/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/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DKeyguardBouncerViewBinder.kt194 securityContainerController.showMessage(it.message, it.colorStateList) in <lambda>()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DCarSetupWizardBaseLayout.java773 ColorStateList colorStateList = in setButtonTextColor() local
775 if (colorStateList != null) { in setButtonTextColor()
776 button.setTextColor(colorStateList); in setButtonTextColor()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DCarSetupWizardCompatLayoutTest.java689 ColorStateList colorStateList = ReflectionHelpers.getField(state, "mColor"); in getDrawableDefaultColor() local
690 return colorStateList.getDefaultColor(); in getDrawableDefaultColor()
/frameworks/base/core/java/android/widget/
DRemoteViews.java1506 SetRippleDrawableColor(@IdRes int id, ColorStateList colorStateList) { in SetRippleDrawableColor() argument
1508 this.mColorStateList = colorStateList; in SetRippleDrawableColor()
4538 public void setRippleDrawableColor(@IdRes int viewId, ColorStateList colorStateList) {
4539 addAction(new SetRippleDrawableColor(viewId, colorStateList));