Searched refs:roundStorageSize (Results 1 – 6 of 6) sorted by relevance
20 import static android.os.FileUtils.roundStorageSize;611 assertEquals(M256, roundStorageSize(M256 - 1)); in testRoundStorageSize()612 assertEquals(M256, roundStorageSize(M256)); in testRoundStorageSize()613 assertEquals(M512, roundStorageSize(M256 + 1)); in testRoundStorageSize()614 assertEquals(M512, roundStorageSize(M512 - 1)); in testRoundStorageSize()615 assertEquals(M512, roundStorageSize(M512)); in testRoundStorageSize()616 assertEquals(G1, roundStorageSize(M512 + 1)); in testRoundStorageSize()617 assertEquals(G1, roundStorageSize(G1)); in testRoundStorageSize()618 assertEquals(G2, roundStorageSize(G1 + 1)); in testRoundStorageSize()620 assertEquals(G32, roundStorageSize(G32 - 1)); in testRoundStorageSize()[all …]
278 final long totalBytesRounded = FileUtils.roundStorageSize(totalBytes); in getTotalBytes()292 return FileUtils.roundStorageSize(vol.disk.size); in getTotalBytes()
1537 return FileUtils.roundStorageSize(getTotalMemory()); in getAdvertisedMem()
1414 public static long roundStorageSize(long size) { in roundStorageSize() method in FileUtils
1355 FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace() in getPrimaryStoragePathAndSize()1361 return FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace() in getPrimaryStorageSize()
35383 Landroid/os/FileUtils;->roundStorageSize(J)J