Searched refs:roundStorageSize (Results 1 – 4 of 4) sorted by relevance
19 import static android.os.FileUtils.roundStorageSize;325 assertEquals(M128, roundStorageSize(M128)); in testRoundStorageSize()326 assertEquals(M256, roundStorageSize(M128 + 1)); in testRoundStorageSize()327 assertEquals(M256, roundStorageSize(M256 - 1)); in testRoundStorageSize()328 assertEquals(M256, roundStorageSize(M256)); in testRoundStorageSize()329 assertEquals(M512, roundStorageSize(M256 + 1)); in testRoundStorageSize()330 assertEquals(M512, roundStorageSize(M512 - 1)); in testRoundStorageSize()331 assertEquals(M512, roundStorageSize(M512)); in testRoundStorageSize()332 assertEquals(G1, roundStorageSize(M512 + 1)); in testRoundStorageSize()333 assertEquals(G1, roundStorageSize(G1)); in testRoundStorageSize()[all …]
171 return FileUtils.roundStorageSize(mStorage.getPrimaryStorageSize()); in getTotalBytes()178 return FileUtils.roundStorageSize(vol.disk.size); in getTotalBytes()
779 public static long roundStorageSize(long size) { in roundStorageSize() method in FileUtils
1071 FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace())); in getPrimaryStoragePathAndSize()1076 return FileUtils.roundStorageSize(Environment.getDataDirectory().getTotalSpace()); in getPrimaryStorageSize()