Home
last modified time | relevance | path

Searched refs:getColorForState (Results 1 – 25 of 29) 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.java224 final int enabledColor = textColor.getColorForState(ENABLED_STATE_SET, 0); in applyTextAppearance()
305 final int enabledColor = monthTextColor.getColorForState(ENABLED_STATE_SET, 0); in setMonthTextColor()
311 final int enabledColor = dayOfWeekTextColor.getColorForState(ENABLED_STATE_SET, 0); in setDayOfWeekTextColor()
322 final int activatedColor = dayBackgroundColor.getColorForState( in setDaySelectorColor()
331 final int pressedColor = dayHighlightColor.getColorForState( in setDayHighlightColor()
714 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.java1345 mTextPaint.setColor(mTextColors.getColorForState(drawableState, 0)); in onDraw()
DNumberPicker.java796 int color = colors.getColorForState(ENABLED_STATE_SET, Color.WHITE); in NumberPicker()
DTextView.java5778 int color = mTextColor.getColorForState(drawableState, 0); in updateTextColors()
5784 color = mLinkTextColor.getColorForState(drawableState, 0); in updateTextColors()
5791 color = mHintTextColor.getColorForState(drawableState, 0); in updateTextColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java17 import static com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState;
172 return getColorForState(getContext(), state); in getColor()
DQSTileImpl.java411 public static int getColorForState(Context context, int state) { in getColorForState() method in QSTileImpl
/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/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/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DNavigationBarButton.java170 final int color = tintList.getColorForState(getState(), 0); in updateState()
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java62 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java385 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
1084 final int color = colorStateList.getColorForState(stateSet, 0);
1112 final int newColor = solidColors.getColorForState(stateSet, 0);
1124 final int newColor = strokeColors.getColorForState(stateSet, 0);
2370 final int stateColor = state.mSolidColors.getColorForState(currentState, 0); in updateLocalState()
2391 final int strokeStateColor = state.mStrokeColors.getColorForState( in updateLocalState()
DColorStateListDrawable.java148 int color = mState.mColor.getColorForState(state, mState.mColor.getDefaultColor()); in onStateChange()
DDrawable.java1590 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateTintFilter()
1605 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateBlendModeFilter()
DRippleDrawable.java885 int color = mState.mColor.getColorForState(getState(), Color.BLACK); in getRipplePaint()
DVectorDrawable.java1944 ((ColorStateList) mStrokeColors).getColorForState(stateSet, oldStrokeColor); in onStateChange()
1953 … final int newFillColor = ((ColorStateList) mFillColors).getColorForState(stateSet, oldFillColor); in onStateChange()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java992 assertEquals(Color.parseColor("#ffffffff"), stateList.getColorForState( in testColorStateList()
996 assertEquals(Color.parseColor("#ff303030"), stateList.getColorForState( in testColorStateList()
1014 assertEquals(Color.parseColor("#ff000000"), stateList.getColorForState( in testColorStateList()
1018 assertEquals(Color.parseColor("#fffafafa"), stateList.getColorForState( in testColorStateList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSPanel.java19 import static com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState;
144 getColorForState(mContext, Tile.STATE_ACTIVE))); in addDivider()
/frameworks/base/core/java/android/content/res/
DColorStateList.java561 public int getColorForState(@Nullable int[] stateSet, int defaultColor) { in getColorForState() method in ColorStateList
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DGarbageMonitor.java281 paint.setColor(QSTileImpl.getColorForState(context, STATE_ACTIVE)); in MemoryIconDrawable()

12