Searched refs:roundPxValueFromFloat (Results 1 – 3 of 3) sorted by relevance
78 return size < 0 ? INVALID_RESOURCE_HANDLE : roundPxValueFromFloat(value); in pxFromDp()89 public static int roundPxValueFromFloat(float value) { in roundPxValueFromFloat() method in ResourceUtils
31 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 …]
510 return ResourceUtils.roundPxValueFromFloat(value); in pxFromSp()