Home
last modified time | relevance | path

Searched refs:stateList (Results 1 – 6 of 6) 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.java1044 ColorStateList stateList = ResourceHelper.getColorStateList( in testColorStateList() local
1052 assertNotNull(stateList); in testColorStateList()
1053 assertEquals(Color.parseColor("#ffffffff"), stateList.getColorForState( in testColorStateList()
1057 assertEquals(Color.parseColor("#ff303030"), stateList.getColorForState( in testColorStateList()
1061 assertEquals(Color.parseColor("#AA000000"), stateList.getDefaultColor()); in testColorStateList()
1066 stateList = ResourceHelper.getColorStateList( in testColorStateList()
1074 assertNotNull(stateList); in testColorStateList()
1075 assertEquals(Color.parseColor("#ff000000"), stateList.getColorForState( in testColorStateList()
1079 assertEquals(Color.parseColor("#fffafafa"), stateList.getColorForState( in testColorStateList()
1083 assertEquals(Color.parseColor("#AA000000"), stateList.getDefaultColor()); in testColorStateList()
/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.java251 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(), in getColorStateList() local
253 if (stateList != null) { in getColorStateList()
254 return stateList; in getColorStateList()