Home
last modified time | relevance | path

Searched refs:pxFromDp (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DResourceUtils.java41 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName()
62 public static int pxFromDp(float size, DisplayMetrics metrics) { in pxFromDp() method in ResourceUtils
63 return pxFromDp(size, metrics, 1f); in pxFromDp()
66 public static int pxFromDp(float size, DisplayMetrics metrics, float scale) { in pxFromDp() method in ResourceUtils
DDeviceProfile.java22 import static com.android.launcher3.ResourceUtils.pxFromDp;
287 setCellLayoutBorderSpacing(pxFromDp(inv.borderSpacing, mMetrics, 1f)); in DeviceProfile()
342 updateHotseatIconSize(pxFromDp(inv.iconSize, mMetrics, 1f)); in DeviceProfile()
576 iconSizePx = Math.max(1, pxFromDp(invIconSizeDp, mMetrics, iconScale));
584 cellWidthPx = pxFromDp(inv.minCellWidth, mMetrics, scale);
585 cellHeightPx = pxFromDp(inv.minCellHeight, mMetrics, scale);
608 allAppsIconSizePx = pxFromDp(inv.allAppsIconSize, mMetrics);
675 folderChildIconSizePx = Math.max(1, pxFromDp(invIconSizeDp, mMetrics, scale)); in updateFolderCellSize()
DInvariantDeviceProfile.java295 iconBitmapSize = ResourceUtils.pxFromDp(iconSize, metrics); in initGrid()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DSysUiScrim.java130 mMaskHeight = ResourceUtils.pxFromDp(ALPHA_MASK_BITMAP_DP, in SysUiScrim()
262 int width = ResourceUtils.pxFromDp(ALPHA_MASK_WIDTH_DP, dm); in createDitheredAlphaMask()
263 int gradientHeight = ResourceUtils.pxFromDp(ALPHA_MASK_HEIGHT_DP, dm); in createDitheredAlphaMask()