Home
last modified time | relevance | path

Searched refs:roundPxValueFromFloat (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Launcher3/shared/src/com/android/launcher3/testing/shared/
DResourceUtils.java78 return size < 0 ? INVALID_RESOURCE_HANDLE : roundPxValueFromFloat(value); in pxFromDp()
89 public static int roundPxValueFromFloat(float value) { in roundPxValueFromFloat() method in ResourceUtils
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java31 import static com.android.launcher3.testing.shared.ResourceUtils.roundPxValueFromFloat;
1631 folderCellWidthPx = roundPxValueFromFloat(getCellSize().x * scale);
1632 folderCellHeightPx = roundPxValueFromFloat(getCellSize().y * scale);
1634 folderCellWidthPx = roundPxValueFromFloat(folderCellWidthPx * scale);
1635 folderCellHeightPx = roundPxValueFromFloat(folderCellHeightPx * scale);
1649 folderContentPaddingTop = roundPxValueFromFloat(folderContentPaddingTop * scale);
1651 roundPxValueFromFloat(folderCellLayoutBorderSpacePx.x * scale),
1652 roundPxValueFromFloat(folderCellLayoutBorderSpacePx.y * scale)
1654 folderFooterHeightPx = roundPxValueFromFloat(folderFooterHeightPx * scale);
1664 folderContentPaddingTop = roundPxValueFromFloat(folderContentPaddingTop * scale);
[all …]
DUtilities.java510 return ResourceUtils.roundPxValueFromFloat(value); in pxFromSp()