Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/lights/
DSystemLightsManager.java166 List<LightState> stateList = request.getLightStates(); in requestLights() local
171 LightState[] states = new LightState[stateList.size()]; in requestLights()
172 for (int i = 0; i < stateList.size(); i++) { in requestLights()
173 states[i] = stateList.get(i); in requestLights()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java93 StateListDrawable stateList = (StateListDrawable) d; in render() local
94 for (int i = 0; i < stateList.getStateCount(); i++) { in render()
95 Drawable stateDrawable = stateList.getStateDrawable(i); in render()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationSettings.java152 ArrayMap<String, DomainVerificationPkgState> stateList = result.restored; in restoreSettings() local
153 stateList.putAll(result.active); in restoreSettings()
156 for (int stateIndex = 0; stateIndex < stateList.size(); stateIndex++) { in restoreSettings()
157 DomainVerificationPkgState newState = stateList.valueAt(stateIndex); in restoreSettings()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java162 ColorStateList stateList = in setStyle() local
164 if (stateList != null) { in setStyle()
165 textView.setTextColor(stateList); in setStyle()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java106 verify(iv).setImageTintList(argThat(stateList -> stateList.getColors()[0] == desiredColor)); in testNoFirstFade()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java1035 ColorStateList stateList = ResourceHelper.getColorStateList( in testColorStateList() local
1043 assertNotNull(stateList); in testColorStateList()
1044 assertEquals(Color.parseColor("#ffffffff"), stateList.getColorForState( in testColorStateList()
1048 assertEquals(Color.parseColor("#ff303030"), stateList.getColorForState( in testColorStateList()
1052 assertEquals(Color.parseColor("#AA000000"), stateList.getDefaultColor()); in testColorStateList()
1057 stateList = ResourceHelper.getColorStateList( in testColorStateList()
1065 assertNotNull(stateList); in testColorStateList()
1066 assertEquals(Color.parseColor("#ff000000"), stateList.getColorForState( in testColorStateList()
1070 assertEquals(Color.parseColor("#fffafafa"), stateList.getColorForState( in testColorStateList()
1074 assertEquals(Color.parseColor("#AA000000"), stateList.getDefaultColor()); in testColorStateList()
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java225 ColorStateList stateList = ResourceHelper.getColorStateList(resourceValue, in getColor()
227 if (stateList != null) { in getColor()
228 return stateList.getDefaultColor(); in getColor()
251 ColorStateList stateList = ResourceHelper.getColorStateList(resValue.second, in getColorStateList() local
253 if (stateList != null) { in getColorStateList()
254 return stateList; in getColorStateList()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java384 ColorStateList stateList = null; in getColorAttr() local
386 stateList = ta.getColorStateList(0); in getColorAttr()
390 return stateList; in getColorAttr()
/frameworks/base/core/java/android/widget/
DPopupWindow.java565 StateListDrawable stateList = (StateListDrawable) mBackground; in setBackgroundDrawable() local
568 int aboveAnchorStateIndex = stateList.findStateDrawableIndex(ABOVE_ANCHOR_STATE_SET); in setBackgroundDrawable()
572 int count = stateList.getStateCount(); in setBackgroundDrawable()
584 mAboveAnchorBackgroundDrawable = stateList.getStateDrawable(aboveAnchorStateIndex); in setBackgroundDrawable()
585 mBelowAnchorBackgroundDrawable = stateList.getStateDrawable(belowAnchorStateIndex); in setBackgroundDrawable()