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
34 import static com.android.launcher3.testing.shared.ResourceUtils.roundPxValueFromFloat;1540 folderCellWidthPx = roundPxValueFromFloat(getCellSize().x * scale);1541 folderCellHeightPx = roundPxValueFromFloat(getCellSize().y * scale);1543 folderCellWidthPx = roundPxValueFromFloat(folderCellWidthPx * scale);1544 folderCellHeightPx = roundPxValueFromFloat(folderCellHeightPx * scale);1558 folderContentPaddingTop = roundPxValueFromFloat(folderContentPaddingTop * scale);1560 roundPxValueFromFloat(folderCellLayoutBorderSpacePx.x * scale),1561 roundPxValueFromFloat(folderCellLayoutBorderSpacePx.y * scale)1563 folderFooterHeightPx = roundPxValueFromFloat(folderFooterHeightPx * scale);1573 folderContentPaddingTop = roundPxValueFromFloat(folderContentPaddingTop * scale);[all …]
473 return ResourceUtils.roundPxValueFromFloat(value); in pxFromSp()