Searched refs:pxFromDp (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ResourceUtils.java | 38 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName() 43 public static int pxFromDp(float size, DisplayMetrics metrics) { in pxFromDp() method in ResourceUtils
|
D | DeviceProfile.java | 208 hotseatBarSizePx = ResourceUtils.pxFromDp(inv.iconSize, dm) + (isVerticalBarLayout() in DeviceProfile() 314 iconSizePx = Math.max(1, (int) (ResourceUtils.pxFromDp(invIconSizePx, dm) * scale)); in updateIconSize() 394 folderChildIconSizePx = (int) (ResourceUtils.pxFromDp(inv.iconSize, dm) * scale); in updateFolderCellSize()
|
D | InvariantDeviceProfile.java | 213 iconBitmapSize = ResourceUtils.pxFromDp(iconSize, dm); in initGrid()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | WorkspaceAndHotseatScrim.java | 151 mMaskHeight = ResourceUtils.pxFromDp(ALPHA_MASK_BITMAP_DP, in WorkspaceAndHotseatScrim() 300 int width = ResourceUtils.pxFromDp(ALPHA_MASK_WIDTH_DP, dm); in createDitheredAlphaMask() 301 int gradientHeight = ResourceUtils.pxFromDp(ALPHA_MASK_HEIGHT_DP, dm); in createDitheredAlphaMask()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetsBottomSheet.java | 129 leftPaddingView.getLayoutParams().width = ResourceUtils.pxFromDp( in onWidgetsBound()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderAnimationManager.java | 172 float finalRadius = ResourceUtils.pxFromDp(2, mContext.getResources().getDisplayMetrics()); in getAnimator()
|