Searched refs:pxFromDp (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ResourceUtils.java | 41 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
|
D | DeviceProfile.java | 22 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()
|
D | InvariantDeviceProfile.java | 295 iconBitmapSize = ResourceUtils.pxFromDp(iconSize, metrics); in initGrid()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | SysUiScrim.java | 130 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()
|