Home
last modified time | relevance | path

Searched refs:getColorForState (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileColorPicker.java52 return mColorStateList.getColorForState(DISABLE_STATE_SET, defaultColor); in getColor()
54 return mColorStateList.getColorForState(INACTIVE_STATE_SET, defaultColor); in getColor()
56 return mColorStateList.getColorForState(ENABLE_STATE_SET, defaultColor); in getColor()
58 return mColorStateList.getColorForState(ENABLE_STATE_SET, defaultColor); in getColor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileColorPickerTest.java51 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateUnavailable_ReturnUnavailableColor()
60 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateInactive_ReturnInactiveColor()
69 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateActive_ReturnActiveColor()
/frameworks/base/core/tests/coretests/src/android/graphics/
DColorStateListTest.java47 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testStateIsInList()
55 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor); in testEmptyState()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java225 final int enabledColor = textColor.getColorForState(ENABLED_STATE_SET, 0); in applyTextAppearance()
306 final int enabledColor = monthTextColor.getColorForState(ENABLED_STATE_SET, 0); in setMonthTextColor()
312 final int enabledColor = dayOfWeekTextColor.getColorForState(ENABLED_STATE_SET, 0); in setDayOfWeekTextColor()
323 final int activatedColor = dayBackgroundColor.getColorForState( in setDaySelectorColor()
332 final int pressedColor = dayHighlightColor.getColorForState( in setDayHighlightColor()
716 dayTextColor = mDayTextColor.getColorForState(stateSet, 0); in drawDays()
DDatePickerCalendarDelegate.java202 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
204 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
DRadialTimePickerView.java427 selectorActivatedColor = selectorColors.getColorForState( in applyAttributes()
439 mSelectorDotColor = mTextColor[HOURS].getColorForState(stateSetActivated, 0); in applyAttributes()
913 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
DTimePickerClockDelegate.java366 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
368 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
DSwitch.java1429 mTextPaint.setColor(mTextColors.getColorForState(drawableState, 0)); in onDraw()
DNumberPicker.java795 int color = colors.getColorForState(ENABLED_STATE_SET, Color.WHITE); in NumberPicker()
DTextView.java5903 int color = mTextColor.getColorForState(drawableState, 0); in updateTextColors()
5909 color = mLinkTextColor.getColorForState(drawableState, 0); in updateTextColors()
5916 color = mHintTextColor.getColorForState(drawableState, 0); in updateTextColors()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java450 ds.setColor(mTextColor.getColorForState(ds.drawableState, 0)); in updateDrawState()
454 ds.linkColor = mTextColorLink.getColorForState(ds.drawableState, 0); in updateDrawState()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DNavigationBarButton.java170 final int color = tintList.getColorForState(getState(), 0); in updateState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java256 int color = mTintColor.getColorForState(getState(), mTintColor.getDefaultColor()); in draw()
349 mFramePaint.setColor(mFrameColor.getColorForState(getState(), Color.TRANSPARENT)); in rebake()
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java63 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
/frameworks/base/graphics/java/android/graphics/drawable/
DColorStateListDrawable.java154 int color = mState.mColor.getColorForState(state, mState.mColor.getDefaultColor()); in onStateChange()
DGradientDrawable.java400 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
1099 final int color = colorStateList.getColorForState(stateSet, 0);
1127 final int newColor = solidColors.getColorForState(stateSet, 0);
1139 final int newColor = strokeColors.getColorForState(stateSet, 0);
2344 final int stateColor = state.mSolidColors.getColorForState(currentState, 0);
2365 final int strokeStateColor = state.mStrokeColors.getColorForState(
DRippleDrawable.java974 ? mState.mColor.getColorForState(getState(), Color.BLACK) in createAnimationProperties()
976 final int effectColor = mState.mEffectColor.getColorForState(getState(), Color.MAGENTA); in createAnimationProperties()
1221 final int color = clampAlpha(mState.mColor.getColorForState(getState(), Color.BLACK)); in getRipplePaint()
DDrawable.java1587 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateTintFilter()
1602 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateBlendModeFilter()
DVectorDrawable.java1948 ((ColorStateList) mStrokeColors).getColorForState(stateSet, oldStrokeColor); in onStateChange()
1957 … final int newFillColor = ((ColorStateList) mFillColors).getColorForState(stateSet, oldFillColor); in onStateChange()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java1053 assertEquals(Color.parseColor("#ffffffff"), stateList.getColorForState( in testColorStateList()
1057 assertEquals(Color.parseColor("#ff303030"), stateList.getColorForState( in testColorStateList()
1075 assertEquals(Color.parseColor("#ff000000"), stateList.getColorForState( in testColorStateList()
1079 assertEquals(Color.parseColor("#fffafafa"), stateList.getColorForState( in testColorStateList()
/frameworks/base/core/java/android/content/res/
DColorStateList.java610 public int getColorForState(@Nullable int[] stateSet, int defaultColor) { in getColorForState() method in ColorStateList
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlViewHolder.kt323 it.getColorForState(state, it.getDefaultColor()) in animateBackgroundChange()
/frameworks/base/boot/
Dboot-image-profile.txt5377 HSPLandroid/content/res/ColorStateList;->getColorForState([II)I
/frameworks/base/core/api/
Dcurrent.txt13219 method public int getColorForState(@Nullable int[], int);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt9078 method public int getColorForState(int[], int);

12