Home
last modified time | relevance | path

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

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testStateIsInList()
54 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor); in testEmptyState()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java194 final int enabledColor = textColor.getColorForState(ENABLED_STATE_SET, 0); in applyTextAppearance()
279 final int enabledColor = monthTextColor.getColorForState(ENABLED_STATE_SET, 0); in setMonthTextColor()
285 final int enabledColor = dayOfWeekTextColor.getColorForState(ENABLED_STATE_SET, 0); in setDayOfWeekTextColor()
296 final int activatedColor = dayBackgroundColor.getColorForState( in setDaySelectorColor()
303 final int pressedColor = dayHighlightColor.getColorForState( in setDayHighlightColor()
456 dayTextColor = mDayTextColor.getColorForState(stateSet, 0); in drawDays()
DDatePickerCalendarDelegate.java206 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
208 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
DRadialTimePickerView.java338 final int selectorActivatedColor = selectorColors.getColorForState( in RadialTimePickerView()
348 mSelectorDotColor = mTextColor[HOURS].getColorForState(activatedStateSet, 0); in RadialTimePickerView()
837 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
DTimePickerClockDelegate.java251 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
253 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
DSwitch.java1249 mTextPaint.setColor(mTextColors.getColorForState(drawableState, 0)); in onDraw()
DNumberPicker.java757 int color = colors.getColorForState(ENABLED_STATE_SET, Color.WHITE); in NumberPicker()
DTextView.java3930 int color = mTextColor.getColorForState(getDrawableState(), 0); in updateTextColors()
3936 color = mLinkTextColor.getColorForState(getDrawableState(), 0); in updateTextColors()
3943 color = mHintTextColor.getColorForState(getDrawableState(), 0); in updateTextColors()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java219 ds.setColor(mTextColor.getColorForState(ds.drawableState, 0)); in updateDrawState()
223 ds.linkColor = mTextColorLink.getColorForState(ds.drawableState, 0); in updateDrawState()
/frameworks/support/design/lollipop/android/support/design/widget/
DCircularBorderDrawableLollipop.java82 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateTintFilter()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DThemeUtils.java89 return csl.getColorForState(DISABLED_STATE_SET, csl.getDefaultColor()); in getDisabledThemeAttrColor()
DTintManager.java432 colors[i] = thumbColor.getColorForState(states[i], 0);
589 final int color = tint.getColorForState(state, Color.TRANSPARENT);
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DDrawableWrapperDonut.java209 final int color = mTintList.getColorForState(state, mTintList.getDefaultColor()); in updateTint()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java320 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
746 color = colorStateList.getColorForState(stateSet, 0);
759 final int newColor = solidColors.getColorForState(stateSet, 0);
771 final int newColor = strokeColors.getColorForState(stateSet, 0);
1804 final int stateColor = state.mSolidColors.getColorForState(currentState, 0);
1825 final int strokeStateColor = state.mStrokeColors.getColorForState(
DDrawable.java1386 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateTintFilter()
DRippleDrawable.java865 final int color = mState.mColor.getColorForState(getState(), Color.BLACK); in drawBackgroundAndRipples()
/frameworks/support/design/src/android/support/design/widget/
DNavigationView.java389 baseColor.getColorForState(DISABLED_STATE_SET, defaultColor), in createDefaultColorStateList()
/frameworks/base/core/java/android/content/res/
DColorStateList.java489 public int getColorForState(@Nullable int[] stateSet, int defaultColor) { in getColorForState() method in ColorStateList
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java964 mTextPaint.setColor(mTextColors.getColorForState(drawableState, 0)); in onDraw()
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DVectorDrawableCompat.java312 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateTintFilter()
/frameworks/base/api/
Dcurrent.txt9616 method public int getColorForState(int[], int);
Dsystem-current.txt9953 method public int getColorForState(int[], int);