Home
last modified time | relevance | path

Searched refs:stateListDrawable (Results 1 – 3 of 3) sorted by relevance

/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteControllerDialog.java299 StateListDrawable stateListDrawable = (StateListDrawable) mMediaRouteButtonDrawable; in getIconDrawable() local
300 stateListDrawable.setState(mMediaRouteConnectingState); in getIconDrawable()
301 return stateListDrawable.getCurrent(); in getIconDrawable()
303 StateListDrawable stateListDrawable = (StateListDrawable) mMediaRouteButtonDrawable; in getIconDrawable() local
304 stateListDrawable.setState(mMediaRouteOnState); in getIconDrawable()
305 return stateListDrawable.getCurrent(); in getIconDrawable()
/aosp12/packages/apps/TV/src/com/android/tv/guide/
H A DProgramItemView.java547 private static int getStateCount(StateListDrawable stateListDrawable) { in getStateCount() argument
549 return stateListDrawable.getStateCount(); in getStateCount()
555 .invoke(stateListDrawable); in getStateCount()
566 private static Drawable getStateDrawable(StateListDrawable stateListDrawable, int index) { in getStateDrawable() argument
568 return stateListDrawable.getStateDrawable(index); in getStateDrawable()
574 .invoke(stateListDrawable, index); in getStateDrawable()
/aosp12/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
H A DThemeComponentOption.java353 StateListDrawable stateListDrawable = new StateListDrawable(); in bindThumbnailTile() local
354 stateListDrawable.addState(new int[] {android.R.attr.state_activated}, selectedOption); in bindThumbnailTile()
355 stateListDrawable.addState( in bindThumbnailTile()
358 ((ImageView) view.findViewById(R.id.option_tile)).setImageDrawable(stateListDrawable); in bindThumbnailTile()