Home
last modified time | relevance | path

Searched refs:MB_IN_BYTES (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtils.java49 public static final long MB_IN_BYTES = KB_IN_BYTES * 1000; field in Utils
50 public static final long GB_IN_BYTES = MB_IN_BYTES * 1000;
52 public static final long DATA_INT = (2 + 3 + 5 + 13 + 17 + 19 + 23) * MB_IN_BYTES;
53 public static final long DATA_EXT = (7 + 11) * MB_IN_BYTES;
56 public static final long CACHE_INT = (3 + 5 + 17 + 19 + 23) * MB_IN_BYTES;
57 public static final long CACHE_EXT = (11) * MB_IN_BYTES;
60 public static final long CODE_ALL = 29 * MB_IN_BYTES;
65 useWrite(makeUniqueFile(c.getFilesDir()), 2 * MB_IN_BYTES); in useSpace() local
66 useWrite(makeUniqueFile(c.getCodeCacheDir()), 3 * MB_IN_BYTES); in useSpace() local
67 useWrite(makeUniqueFile(c.getCacheDir()), 5 * MB_IN_BYTES); in useSpace() local
[all …]
DStorageTest.java26 import static com.android.cts.storageapp.Utils.MB_IN_BYTES;
182 assertTrue("Apps must have at least 10MB quota", cacheSize > 10 * MB_IN_BYTES); in testVerifyQuotaApi()
195 sm.getAllocatableBytes(filesUuid) > 10 * MB_IN_BYTES); in testVerifyAllocateApi()
197 sm.getAllocatableBytes(extUuid) > 10 * MB_IN_BYTES); in testVerifyAllocateApi()
200 sm.allocateBytes(filesUuid, 1 * MB_IN_BYTES); in testVerifyAllocateApi()
207 sm.allocateBytes(pfd.getFileDescriptor(), 1 * MB_IN_BYTES); in testVerifyAllocateApi() local
209 assertEquals(1 * MB_IN_BYTES, filesFile.length()); in testVerifyAllocateApi()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java24 import static com.android.cts.storageapp.Utils.MB_IN_BYTES;
153 assertMostlyEquals(CODE_ALL * 2, as.getAppBytes(), 5 * MB_IN_BYTES); in testVerifyStatsMultiple()
154 assertMostlyEquals(CODE_ALL * 1, bs.getAppBytes(), 5 * MB_IN_BYTES); in testVerifyStatsMultiple()
156 assertMostlyEquals(CODE_ALL * 4, as.getAppBytes(), 5 * MB_IN_BYTES); in testVerifyStatsMultiple()
157 assertMostlyEquals(CODE_ALL * 2, bs.getAppBytes(), 5 * MB_IN_BYTES); in testVerifyStatsMultiple()
183 useWrite(image, 2 * MB_IN_BYTES); in testVerifyStatsExternal()
184 useWrite(video, 3 * MB_IN_BYTES); in testVerifyStatsExternal()
185 useWrite(audio, 5 * MB_IN_BYTES); in testVerifyStatsExternal()
186 useWrite(internal, 7 * MB_IN_BYTES); in testVerifyStatsExternal()
190 assertMostlyEquals(17 * MB_IN_BYTES, afterInit.getTotalBytes() - before.getTotalBytes()); in testVerifyStatsExternal()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java70 private static final long MB_IN_BYTES = 1 * 1024 * 1024; field in SplitAppTest
517 if (totalDelta > MB_IN_BYTES || freeDelta > MB_IN_BYTES) { in testPrimaryOnSameVolume()