Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java19 import static android.os.FileUtils.roundStorageSize;
483 assertEquals(M128, roundStorageSize(M128)); in testRoundStorageSize()
484 assertEquals(M256, roundStorageSize(M128 + 1)); in testRoundStorageSize()
485 assertEquals(M256, roundStorageSize(M256 - 1)); in testRoundStorageSize()
486 assertEquals(M256, roundStorageSize(M256)); in testRoundStorageSize()
487 assertEquals(M512, roundStorageSize(M256 + 1)); in testRoundStorageSize()
488 assertEquals(M512, roundStorageSize(M512 - 1)); in testRoundStorageSize()
489 assertEquals(M512, roundStorageSize(M512)); in testRoundStorageSize()
490 assertEquals(G1, roundStorageSize(M512 + 1)); in testRoundStorageSize()
491 assertEquals(G1, roundStorageSize(G1)); in testRoundStorageSize()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java182 return FileUtils.roundStorageSize(mStorage.getPrimaryStorageSize()); in getTotalBytes()
189 return FileUtils.roundStorageSize(vol.disk.size); in getTotalBytes()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java1218 FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace() in getPrimaryStoragePathAndSize()
1224 return FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace() in getPrimaryStorageSize()
/frameworks/base/core/java/android/os/
DFileUtils.java1262 public static long roundStorageSize(long size) { in roundStorageSize() method in FileUtils
/frameworks/base/config/
Dboot-image-profile.txt11465 HPLandroid/os/FileUtils;->roundStorageSize(J)J
Dhiddenapi-greylist-max-o.txt53446 Landroid/os/FileUtils;->roundStorageSize(J)J