Home
last modified time | relevance | path

Searched refs:stateList (Results 1 – 7 of 7) sorted by relevance

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java92 StateListDrawable stateList = (StateListDrawable) d; in render() local
93 for (int i = 0; i < stateList.getStateCount(); i++) { in render()
94 Drawable stateDrawable = stateList.getStateDrawable(i); in render()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java85 verify(iv).setImageTintList(argThat(stateList -> stateList.getColors()[0] == desiredColor)); in testNoFirstFade()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java198 ColorStateList stateList = in setStyle() local
200 if (stateList != null) { in setStyle()
201 textView.setTextColor(stateList); in setStyle()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java983 ColorStateList stateList = ResourceHelper.getColorStateList( in testColorStateList() local
991 assertNotNull(stateList); in testColorStateList()
992 assertEquals(Color.parseColor("#ffffffff"), stateList.getColorForState( in testColorStateList()
996 assertEquals(Color.parseColor("#ff303030"), stateList.getColorForState( in testColorStateList()
1000 assertEquals(Color.parseColor("#AA000000"), stateList.getDefaultColor()); in testColorStateList()
1005 stateList = ResourceHelper.getColorStateList( in testColorStateList()
1013 assertNotNull(stateList); in testColorStateList()
1014 assertEquals(Color.parseColor("#ff000000"), stateList.getColorForState( in testColorStateList()
1018 assertEquals(Color.parseColor("#fffafafa"), stateList.getColorForState( in testColorStateList()
1022 assertEquals(Color.parseColor("#AA000000"), stateList.getDefaultColor()); in testColorStateList()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java251 ColorStateList stateList = null; in getColorAttr() local
253 stateList = ta.getColorStateList(0); in getColorAttr()
257 return stateList; in getColorAttr()
/frameworks/base/core/java/android/widget/
DPopupWindow.java561 StateListDrawable stateList = (StateListDrawable) mBackground; in setBackgroundDrawable() local
564 int aboveAnchorStateIndex = stateList.findStateDrawableIndex(ABOVE_ANCHOR_STATE_SET); in setBackgroundDrawable()
568 int count = stateList.getStateCount(); in setBackgroundDrawable()
580 mAboveAnchorBackgroundDrawable = stateList.getStateDrawable(aboveAnchorStateIndex); in setBackgroundDrawable()
581 mBelowAnchorBackgroundDrawable = stateList.getStateDrawable(belowAnchorStateIndex); in setBackgroundDrawable()
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java250 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(), in getColorStateList() local
252 if (stateList != null) { in getColorStateList()
253 return stateList; in getColorStateList()