Lines Matching refs:dm
154 DisplayMetrics dm = res.getDisplayMetrics(); in DeviceProfile() local
208 hotseatBarSizePx = ResourceUtils.pxFromDp(inv.iconSize, dm) + (isVerticalBarLayout() in DeviceProfile()
214 updateAvailableDimensions(dm, res); in DeviceProfile()
228 updateAvailableDimensions(dm, res); in DeviceProfile()
297 private void updateAvailableDimensions(DisplayMetrics dm, Resources res) { in updateAvailableDimensions() argument
298 updateIconSize(1f, res, dm); in updateAvailableDimensions()
305 updateIconSize(scale, res, dm); in updateAvailableDimensions()
307 updateAvailableFolderCellDimensions(dm, res); in updateAvailableDimensions()
310 private void updateIconSize(float scale, Resources res, DisplayMetrics dm) { in updateIconSize() argument
314 iconSizePx = Math.max(1, (int) (ResourceUtils.pxFromDp(invIconSizePx, dm) * scale)); in updateIconSize()
315 iconTextSizePx = (int) (Utilities.pxFromSp(inv.iconTextSize, dm) * scale); in updateIconSize()
366 private void updateAvailableFolderCellDimensions(DisplayMetrics dm, Resources res) { in updateAvailableFolderCellDimensions() argument
371 updateFolderCellSize(1f, dm, res); in updateAvailableFolderCellDimensions()
389 updateFolderCellSize(scale, dm, res); in updateAvailableFolderCellDimensions()
393 private void updateFolderCellSize(float scale, DisplayMetrics dm, Resources res) { in updateFolderCellSize() argument
394 folderChildIconSizePx = (int) (ResourceUtils.pxFromDp(inv.iconSize, dm) * scale); in updateFolderCellSize()