Searched refs:DEFAULT_VIEW_PORT_SCALE (Results 1 - 2 of 2) sorted by relevance

/frameworks/support/compat/java/android/support/v4/graphics/drawable/
H A DIconCompat.java45 private static final float DEFAULT_VIEW_PORT_SCALE = 1 / (1 + 2 * ADAPTIVE_ICON_INSET_FACTOR); field in class:IconCompat
232 int size = (int) (DEFAULT_VIEW_PORT_SCALE * Math.min(adaptiveIconBitmap.getWidth(),
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAdaptiveIconDrawable.java99 private static final float DEFAULT_VIEW_PORT_SCALE = 1f / (1 + 2 * EXTRA_INSET_PERCENTAGE); field in class:AdaptiveIconDrawable
305 * Set the child layer bounds bigger than the view port size by {@link #DEFAULT_VIEW_PORT_SCALE}
321 int insetWidth = (int) (bounds.width() / (DEFAULT_VIEW_PORT_SCALE * 2));
322 int insetHeight = (int) (bounds.height() / (DEFAULT_VIEW_PORT_SCALE * 2));
812 return (int)(getMaxIntrinsicWidth() * DEFAULT_VIEW_PORT_SCALE);
832 return (int)(getMaxIntrinsicHeight() * DEFAULT_VIEW_PORT_SCALE);

Completed in 71 milliseconds