Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/os/
H A DFileUtils.java1369 public static long parseSize(@Nullable String fmtSize) { in parseSize() argument
1370 if (fmtSize == null || fmtSize.isBlank()) { in parseSize()
1375 fmtSize = fmtSize.trim(); in parseSize()
1376 char first = fmtSize.charAt(0); in parseSize()
1382 fmtSize = fmtSize.substring(1); in parseSize()
1387 while (index < fmtSize.length() && Character.isDigit(fmtSize.charAt(index))) { in parseSize()
1392 if (index == 0 || index == fmtSize.length()) { in parseSize()
1396 long value = sign * Long.valueOf(fmtSize.substring(0, index)); in parseSize()
1397 String unit = fmtSize.substring(index).trim(); in parseSize()