Home
last modified time | relevance | path

Searched refs:getSafeIcon (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtilsTest.java44 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_smallerThanLimit()
59 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_largerThanLimit()
74 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_noChangeForVectorDrawable()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBuilderUtils.java237 final IconCompat icon = getSafeIcon(context, sliceData); in buildToggleSlice()
265 final IconCompat icon = getSafeIcon(context, sliceData); in buildIntentSlice()
295 final IconCompat icon = getSafeIcon(context, sliceData); in buildSliderSlice()
335 final IconCompat icon = getSafeIcon(context, sliceData); in buildCopyableSlice()
430 final IconCompat icon = getSafeIcon(context, data); in buildUnavailableSlice()
450 static IconCompat getSafeIcon(Context context, SliceData data) { in getSafeIcon() method in SliceBuilderUtils
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java32 public static Drawable getSafeIcon(Drawable icon, int maxDimension) { in getSafeIcon() method in DefaultAppUtils
DDefaultAppEntryBasePreferenceController.java57 preference.setIcon(DefaultAppUtils.getSafeIcon(getDefaultAppIcon(), in updateState()
DDefaultAppsPickerBasePreferenceController.java123 preference.setIcon(DefaultAppUtils.getSafeIcon(info.loadIcon(), in createOption()
/packages/apps/Settings/src/com/android/settings/dream/
DCurrentDreamPreferenceController.java91 gearPref.setIcon(Utils.getSafeIcon(mBackend.getActiveIcon())); in setActiveDreamIcon()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultAppPreferenceController.java73 preference.setIcon(Utils.getSafeIcon(getDefaultAppIcon())); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java437 final IconCompat actualIcon = SliceBuilderUtils.getSafeIcon(mContext, data); in getSafeIcon_replacesEmptyIconWithSettingsIcon()
451 final IconCompat actualIcon = SliceBuilderUtils.getSafeIcon(mContext, data); in getSafeIcon_invalidResource_shouldFallbackToSettingsIcon()
/packages/apps/Settings/src/com/android/settings/applications/autofill/
DPasswordsPreferenceController.java130 pref.setIcon(Utils.getSafeIcon(icon)); in addPasswordPreferences()
/packages/apps/Settings/src/com/android/settings/widget/
DRadioButtonPickerFragment.java208 pref.setIcon(Utils.getSafeIcon(info.loadIcon())); in bindPreference()
/packages/apps/Settings/src/com/android/settings/
DUtils.java998 Drawable adaptiveIcon = getSafeIcon(icon); in getAdaptiveIcon()
1012 public static Drawable getSafeIcon(Drawable icon) { in getSafeIcon() method in Utils