Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java100 private static final float DEFAULT_VIEW_PORT_SCALE = 1f / (1 + 2 * EXTRA_INSET_PERCENTAGE); field in AdaptiveIconDrawable
322 int insetWidth = (int) (bounds.width() / (DEFAULT_VIEW_PORT_SCALE * 2)); in updateLayerBoundsInternal()
323 int insetHeight = (int) (bounds.height() / (DEFAULT_VIEW_PORT_SCALE * 2)); in updateLayerBoundsInternal()
807 return (int)(getMaxIntrinsicWidth() * DEFAULT_VIEW_PORT_SCALE); in getIntrinsicWidth()
827 return (int)(getMaxIntrinsicHeight() * DEFAULT_VIEW_PORT_SCALE); in getIntrinsicHeight()
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
DIconCompat.java100 private static final float DEFAULT_VIEW_PORT_SCALE = 1 / (1 + 2 * ADAPTIVE_ICON_INSET_FACTOR); field in IconCompat
790 int size = (int) (DEFAULT_VIEW_PORT_SCALE * Math.min(adaptiveIconBitmap.getWidth(), in createLegacyIconFromAdaptiveIcon()