Home
last modified time | relevance | path

Searched refs:maxDimension (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java36 public static void setSafeIcon(Preference pref, Drawable icon, int maxDimension) { in setSafeIcon() argument
39 safeIcon = getSafeDrawable(icon, maxDimension); in setSafeIcon()
50 private static Drawable getSafeDrawable(Drawable original, int maxDimension) { in getSafeDrawable() argument
54 if (actualWidth <= maxDimension && actualHeight <= maxDimension) { in getSafeDrawable()
58 float scaleWidth = ((float) maxDimension) / actualWidth; in getSafeDrawable()
59 float scaleHeight = ((float) maxDimension) / actualHeight; in getSafeDrawable()
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetConfigure.java56 int maxDimension = Math.max(display.heightPixels, display.widthPixels); in onCreate() local
57 maxDimension /= 2; in onCreate()
65 intent.putExtra("outputX", maxDimension); in onCreate()
66 intent.putExtra("outputY", maxDimension); in onCreate()