/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileColorPicker.java | 52 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/ |
D | TileColorPickerTest.java | 51 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/ |
D | ColorStateListTest.java | 47 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/ |
D | SimpleMonthView.java | 224 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()
|
D | DatePickerCalendarDelegate.java | 202 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 204 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
|
D | RadialTimePickerView.java | 427 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()
|
D | TimePickerClockDelegate.java | 366 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 368 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
|
D | Switch.java | 1345 mTextPaint.setColor(mTextColors.getColorForState(drawableState, 0)); in onDraw()
|
D | NumberPicker.java | 796 int color = colors.getColorForState(ENABLED_STATE_SET, Color.WHITE); in NumberPicker()
|
D | TextView.java | 5778 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/ |
D | QSIconViewImpl.java | 17 import static com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState; 172 return getColorForState(getContext(), state); in getColor()
|
D | QSTileImpl.java | 411 public static int getColorForState(Context context, int state) { in getColorForState() method in QSTileImpl
|
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 450 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/ |
D | UserIconDrawable.java | 256 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/ |
D | NavigationBarButton.java | 170 final int color = tintList.getColorForState(getState(), 0); in updateState()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NumericTextView.java | 62 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | GradientDrawable.java | 385 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()
|
D | ColorStateListDrawable.java | 148 int color = mState.mColor.getColorForState(state, mState.mColor.getDefaultColor()); in onStateChange()
|
D | Drawable.java | 1590 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateTintFilter() 1605 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateBlendModeFilter()
|
D | RippleDrawable.java | 885 int color = mState.mColor.getColorForState(getState(), Color.BLACK); in getRipplePaint()
|
D | VectorDrawable.java | 1944 ((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/ |
D | RenderTests.java | 992 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/ |
D | QSPanel.java | 19 import static com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState; 144 getColorForState(mContext, Tile.STATE_ACTIVE))); in addDivider()
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 561 public int getColorForState(@Nullable int[] stateSet, int defaultColor) { in getColorForState() method in ColorStateList
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | GarbageMonitor.java | 281 paint.setColor(QSTileImpl.getColorForState(context, STATE_ACTIVE)); in MemoryIconDrawable()
|