Searched refs:pxFromDp (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Launcher3/tests/multivalentTests/shared/com/android/launcher3/testing/shared/ |
D | ResourceUtils.java | 51 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName() 72 public static int pxFromDp(float size, DisplayMetrics metrics) { in pxFromDp() method in ResourceUtils 73 return pxFromDp(size, metrics, 1f); in pxFromDp() 76 public static int pxFromDp(float size, DisplayMetrics metrics, float scale) { in pxFromDp() method in ResourceUtils
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 33 import static com.android.launcher3.testing.shared.ResourceUtils.pxFromDp; 391 int transientTaskbarIconSize = pxFromDp(inv.transientTaskbarIconSize[mTypeIndex], mMetrics); in DeviceProfile() 410 taskbarIconSize = pxFromDp(ResourcesCompat.getFloat(res, R.dimen.taskbar_icon_size), in DeviceProfile() 493 pxFromDp(inv.allAppsBorderSpaces[mTypeIndex].x, mMetrics), in DeviceProfile() 494 pxFromDp(inv.allAppsBorderSpaces[mTypeIndex].y, mMetrics)); in DeviceProfile() 589 hotseatQsbSpace = pxFromDp(inv.hotseatQsbSpace[mTypeIndex], mMetrics); in DeviceProfile() 590 hotseatBarBottomSpace = pxFromDp(inv.hotseatBarBottomSpace[mTypeIndex], mMetrics); in DeviceProfile() 626 updateHotseatSizes(pxFromDp(inv.iconSize[mTypeIndex], mMetrics)); in DeviceProfile() 845 ? pxFromDp(idp.horizontalMargin[mTypeIndex], mMetrics) in getHorizontalMarginPx() 980 horizontalSpacePx = pxFromDp(idp.borderSpaces[mTypeIndex].x, mMetrics, scale); in getCellLayoutBorderSpace() [all …]
|
D | InvariantDeviceProfile.java | 407 iconBitmapSize = ResourceUtils.pxFromDp(maxIconSize, metrics); in initGrid()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | SysUiScrim.java | 102 mTopMaskHeight = ResourceUtils.pxFromDp(TOP_MASK_HEIGHT_DP, dm); in SysUiScrim() 103 mBottomMaskHeight = ResourceUtils.pxFromDp(BOTTOM_MASK_HEIGHT_DP, dm); in SysUiScrim() 219 int width = ResourceUtils.pxFromDp(ALPHA_MASK_BITMAP_WIDTH_DP, dm); in createDitheredAlphaMask()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AbstractDeviceProfileTest.kt | 338 return ResourceUtils.pxFromDp(this, context!!.resources.displayMetrics).toFloat() in <lambda>() 342 return ResourceUtils.pxFromDp(this.toFloat(), context!!.resources.displayMetrics) in <lambda>()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LaunchedAppState.java | 311 int stashedTaskbarBottomEdge = ResourceUtils.pxFromDp(STASHED_TASKBAR_BOTTOM_EDGE_DP,
|