Searched refs:roundStorageSize (Results 1 – 6 of 6) sorted by relevance
20 import static android.os.FileUtils.roundStorageSize;518 assertEquals(M256, roundStorageSize(M256 - 1)); in testRoundStorageSize()519 assertEquals(M256, roundStorageSize(M256)); in testRoundStorageSize()520 assertEquals(M512, roundStorageSize(M256 + 1)); in testRoundStorageSize()522 assertEquals(M512, roundStorageSize(M512)); in testRoundStorageSize()523 assertEquals(G1, roundStorageSize(M512 + 1)); in testRoundStorageSize()524 assertEquals(G1, roundStorageSize(G1)); in testRoundStorageSize()525 assertEquals(G2, roundStorageSize(G1 + 1)); in testRoundStorageSize()527 assertEquals(G32, roundStorageSize(G32 - 1)); in testRoundStorageSize()528 assertEquals(G32, roundStorageSize(G32)); in testRoundStorageSize()[all …]
272 final long totalBytesRounded = FileUtils.roundStorageSize(totalBytes); in getTotalBytes()286 return FileUtils.roundStorageSize(vol.disk.size); in getTotalBytes()
1363 return FileUtils.roundStorageSize(getTotalMemory()); in getAdvertisedMem()
1308 public static long roundStorageSize(long size) { in roundStorageSize() method in FileUtils
1351 FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace() in getPrimaryStoragePathAndSize()1357 return FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace() in getPrimaryStorageSize()
36026 Landroid/os/FileUtils;->roundStorageSize(J)J