Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileColorPicker.java50 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/
DCellTileView.java40 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()
DQSPanel.java20 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/
DTileColorPickerTest.java48 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/
DContextCompatTest.java145 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/
DColorStateListTest.java46 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/
DResourcesCompatTest.java90 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/
DRoundRectDrawable.java66 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()
DRoundRectDrawableWithShadow.java109 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/
DTextAppearanceSpan.java233 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/
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.java425 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/
DAppCompatResourcesTestCase.java66 assertEquals(expectedDisabled, result.getColorForState( in testGetColorStateListWithThemedAttributes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java17 import static com.android.systemui.qs.tileimpl.QSTileImpl.getColorForState;
159 return getColorForState(getContext(), state); in getColor()
DQSTileView.java115 int color = QSTileImpl.getColorForState(getContext(), state.state); in handleStateChanged()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DThemeUtils.java86 return csl.getColorForState(DISABLED_STATE_SET, csl.getDefaultColor()); in getDisabledThemeAttrColor()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java253 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/
DBatterySaverTile.java114 new BatterySaverDrawable(context, QSTileImpl.getColorForState(context, mState)); in getDrawable()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DNavigationBarButton.java154 final int color = mTintList.getColorForState(getState(), 0); in updateState()
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java60 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java812 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/
DAppCompatTextViewTest.java182 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/
DGradientDrawable.java377 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/
DWrappedDrawableApi14.java302 final int color = tintList.getColorForState(state, tintList.getDefaultColor()); in updateTint()

12