Searched refs:maxDimension (Results 1 – 2 of 2) sorted by relevance
36 public static void setSafeIcon(Preference pref, Drawable icon, int maxDimension) { in setSafeIcon() argument39 safeIcon = getSafeDrawable(icon, maxDimension); in setSafeIcon()50 private static Drawable getSafeDrawable(Drawable original, int maxDimension) { in getSafeDrawable() argument54 if (actualWidth <= maxDimension && actualHeight <= maxDimension) { in getSafeDrawable()58 float scaleWidth = ((float) maxDimension) / actualWidth; in getSafeDrawable()59 float scaleHeight = ((float) maxDimension) / actualHeight; in getSafeDrawable()
56 int maxDimension = Math.max(display.heightPixels, display.widthPixels); in onCreate() local57 maxDimension /= 2; in onCreate()65 intent.putExtra("outputX", maxDimension); in onCreate()66 intent.putExtra("outputY", maxDimension); in onCreate()