Searched refs:stateList (Results 1 – 7 of 7) sorted by relevance
92 StateListDrawable stateList = (StateListDrawable) d; in render() local93 for (int i = 0; i < stateList.getStateCount(); i++) { in render()94 Drawable stateDrawable = stateList.getStateDrawable(i); in render()
85 verify(iv).setImageTintList(argThat(stateList -> stateList.getColors()[0] == desiredColor)); in testNoFirstFade()
198 ColorStateList stateList = in setStyle() local200 if (stateList != null) { in setStyle()201 textView.setTextColor(stateList); in setStyle()
983 ColorStateList stateList = ResourceHelper.getColorStateList( in testColorStateList() local991 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()
251 ColorStateList stateList = null; in getColorAttr() local253 stateList = ta.getColorStateList(0); in getColorAttr()257 return stateList; in getColorAttr()
562 StateListDrawable stateList = (StateListDrawable) mBackground; in setBackgroundDrawable() local565 int aboveAnchorStateIndex = stateList.findStateDrawableIndex(ABOVE_ANCHOR_STATE_SET); in setBackgroundDrawable()569 int count = stateList.getStateCount(); in setBackgroundDrawable()581 mAboveAnchorBackgroundDrawable = stateList.getStateDrawable(aboveAnchorStateIndex); in setBackgroundDrawable()582 mBelowAnchorBackgroundDrawable = stateList.getStateDrawable(belowAnchorStateIndex); in setBackgroundDrawable()
250 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.getSecond(), in getColorStateList() local252 if (stateList != null) { in getColorStateList()253 return stateList; in getColorStateList()