Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java631 assertEquals(0L, FileUtils.parseSize("0MB")); in testParseSize()
632 assertEquals(1_024L, FileUtils.parseSize("1024b")); in testParseSize()
633 assertEquals(-1L, FileUtils.parseSize(" -1 b ")); in testParseSize()
634 assertEquals(0L, FileUtils.parseSize(" -0 gib ")); in testParseSize()
635 assertEquals(1_000L, FileUtils.parseSize("1K")); in testParseSize()
636 assertEquals(1_000L, FileUtils.parseSize("1KB")); in testParseSize()
637 assertEquals(10_000L, FileUtils.parseSize("10KB")); in testParseSize()
638 assertEquals(100_000L, FileUtils.parseSize("100KB")); in testParseSize()
639 assertEquals(1_000_000L, FileUtils.parseSize("1000KB")); in testParseSize()
640 assertEquals(1_024_000L, FileUtils.parseSize("1000KiB")); in testParseSize()
[all …]
/frameworks/base/media/java/android/media/
DUtils.java224 static Size parseSize(Object o, Size fallback) {
229 return Size.parseSize((String) o);
326 Size.parseSize(s.substring(0, ix)),
327 Size.parseSize(s.substring(ix + 1)));
329 Size value = Size.parseSize(s);
DMediaCodecInfo.java2683 Size size = Utils.parseSize(sizeStr, null); in getPerformancePoints()
2735 Size size = Utils.parseSize(sizeStr, null);
2766 Size blockSize = Utils.parseSize(map.get("block-size"), new Size(8, 8));
2825 blockSize = Utils.parseSize(map.get("block-size"), blockSize);
2826 alignment = Utils.parseSize(map.get("alignment"), alignment);
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationFrameSizePrefs.java68 return Size.parseSize(mWindowMagnificationSizePreferences.getString(getKey(), null)); in getSizeForCurrentDensity()
/frameworks/base/core/java/android/util/
DSize.java123 public static Size parseSize(String string) in parseSize() method in Size
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipDisplayLayoutState.java69 ? Size.parseSize(screenEdgeInsetsDpString) in reloadResources()
/frameworks/base/core/java/android/os/
DProcess.java1534 long memSize = FileUtils.parseSize(formatSize); in getAdvertisedMem()
DFileUtils.java1475 public static long parseSize(@Nullable String fmtSize) { in parseSize() method in FileUtils
/frameworks/base/boot/
Dboot-image-profile.txt11123 HSPLandroid/media/Utils;->parseSize(Ljava/lang/Object;Landroid/util/Size;)Landroid/util/Size;
15689 HSPLandroid/util/Size;->parseSize(Ljava/lang/String;)Landroid/util/Size;
/frameworks/base/config/
Dboot-image-profile.txt11126 HSPLandroid/media/Utils;->parseSize(Ljava/lang/Object;Landroid/util/Size;)Landroid/util/Size;
15753 HSPLandroid/util/Size;->parseSize(Ljava/lang/String;)Landroid/util/Size;
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt31783 …method public static android.util.Size parseSize(java.lang.String) throws java.lang.NumberFormatEx…
/frameworks/base/core/api/
Dcurrent.txt50257 method public static android.util.Size parseSize(String) throws java.lang.NumberFormatException;