/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileColorPicker.java | 50 return mColorStateList.getColorForState(DISABLE_STATE_SET, defaultColor); in getColor() 52 return mColorStateList.getColorForState(INACTIVE_STATE_SET, defaultColor); in getColor() 54 return mColorStateList.getColorForState(ENABLE_STATE_SET, defaultColor); in getColor() 56 return mColorStateList.getColorForState(ENABLE_STATE_SET, defaultColor); in getColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | CellTileView.java | 40 mSignalDrawable.setColors(QSTileImpl.getColorForState(context, Tile.STATE_UNAVAILABLE), in CellTileView() 41 QSTileImpl.getColorForState(context, Tile.STATE_ACTIVE)); in CellTileView() 73 d.setColors(QSTileImpl.getColorForState(context, Tile.STATE_UNAVAILABLE), in getDrawable() 74 QSTileImpl.getColorForState(context, Tile.STATE_ACTIVE)); in getDrawable()
|
D | QSPanel.java | 20 import static com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState; 132 getColorForState(mContext, Tile.STATE_ACTIVE))); in addDivider()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileColorPickerTest.java | 48 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateUnavailable_ReturnUnavailableColor() 57 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateInactive_ReturnInactiveColor() 66 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateActive_ReturnActiveColor()
|
/frameworks/support/compat/src/androidTest/java/androidx/core/content/ |
D | ContextCompatTest.java | 145 unthemedColorStateList.getColorForState( in testGetColorStateList() 148 unthemedColorStateList.getColorForState( in testGetColorStateList() 159 themedYellowColorStateList.getColorForState( in testGetColorStateList() 162 themedYellowColorStateList.getColorForState( in testGetColorStateList()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | ColorStateListTest.java | 46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testStateIsInList() 54 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor); in testEmptyState()
|
/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/ |
D | ResourcesCompatTest.java | 90 unthemedColorStateList.getColorForState( in testGetColorStateList() 93 unthemedColorStateList.getColorForState( in testGetColorStateList() 107 themedYellowColorStateList.getColorForState( in testGetColorStateList() 110 themedYellowColorStateList.getColorForState( in testGetColorStateList() 121 themedLilacColorStateList.getColorForState( in testGetColorStateList() 124 themedLilacColorStateList.getColorForState( in testGetColorStateList()
|
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/ |
D | RoundRectDrawable.java | 66 mPaint.setColor(mBackground.getColorForState(getState(), mBackground.getDefaultColor())); in setBackground() 183 final int newColor = mBackground.getColorForState(stateSet, mBackground.getDefaultColor()); in onStateChange() 209 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in createTintFilter()
|
D | RoundRectDrawableWithShadow.java | 109 mPaint.setColor(mBackground.getColorForState(getState(), mBackground.getDefaultColor())); in setBackground() 198 final int newColor = mBackground.getColorForState(stateSet, mBackground.getDefaultColor()); in onStateChange()
|
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 233 ds.setColor(mTextColor.getColorForState(ds.drawableState, 0)); in updateDrawState() 237 ds.linkColor = mTextColorLink.getColorForState(ds.drawableState, 0); in updateDrawState()
|
/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 | 425 selectorActivatedColor = selectorColors.getColorForState( in applyAttributes() 437 mSelectorDotColor = mTextColor[HOURS].getColorForState(stateSetActivated, 0); in applyAttributes() 911 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/res/content/ |
D | AppCompatResourcesTestCase.java | 66 assertEquals(expectedDisabled, result.getColorForState( in testGetColorStateListWithThemedAttributes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImpl.java | 17 import static com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState; 159 return getColorForState(getContext(), state); in getColor()
|
D | QSTileView.java | 115 int color = QSTileImpl.getColorForState(getContext(), state.state); in handleStateChanged()
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
D | ThemeUtils.java | 86 return csl.getColorForState(DISABLED_STATE_SET, csl.getDefaultColor()); in getDisabledThemeAttrColor()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
D | UserIconDrawable.java | 253 int color = mTintColor.getColorForState(getState(), mTintColor.getDefaultColor()); in draw() 337 mFramePaint.setColor(mFrameColor.getColorForState(getState(), Color.TRANSPARENT)); in rebake()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTile.java | 114 new BatterySaverDrawable(context, QSTileImpl.getColorForState(context, mState)); in getDrawable()
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/ |
D | NavigationBarButton.java | 154 final int color = mTintList.getColorForState(getState(), 0); in updateState()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NumericTextView.java | 60 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | RenderTests.java | 812 assertEquals(Color.parseColor("#ffffffff"), stateList.getColorForState( in testColorStateList() 816 assertEquals(Color.parseColor("#ff303030"), stateList.getColorForState( in testColorStateList() 834 assertEquals(Color.parseColor("#ff000000"), stateList.getColorForState( in testColorStateList() 838 assertEquals(Color.parseColor("#fffafafa"), stateList.getColorForState( in testColorStateList()
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
D | AppCompatTextViewTest.java | 182 linkColorStateList.getColorForState(new int[] { android.R.attr.state_enabled}, 0)); in verifyTextLinkColor() 184 linkColorStateList.getColorForState(new int[] { -android.R.attr.state_enabled}, 0)); in verifyTextLinkColor()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | GradientDrawable.java | 377 color = colorStateList.getColorForState(stateSet, 0); in setStroke() 939 color = colorStateList.getColorForState(stateSet, 0); 966 final int newColor = solidColors.getColorForState(stateSet, 0); 978 final int newColor = strokeColors.getColorForState(stateSet, 0); 2140 final int stateColor = state.mSolidColors.getColorForState(currentState, 0); 2161 final int strokeStateColor = state.mStrokeColors.getColorForState(
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/ |
D | WrappedDrawableApi14.java | 302 final int color = tintList.getColorForState(state, tintList.getDefaultColor()); in updateTint()
|