Home | History | Annotate | Download | only in storagestatsapp

Lines Matching defs:MB_IN_BYTES

24 import static com.android.cts.storageapp.Utils.MB_IN_BYTES;
153 assertMostlyEquals(CODE_ALL * 2, as.getAppBytes(), 5 * MB_IN_BYTES);
154 assertMostlyEquals(CODE_ALL * 1, bs.getAppBytes(), 5 * MB_IN_BYTES);
156 assertMostlyEquals(CODE_ALL * 4, as.getAppBytes(), 5 * MB_IN_BYTES);
157 assertMostlyEquals(CODE_ALL * 2, bs.getAppBytes(), 5 * MB_IN_BYTES);
183 useWrite(image, 2 * MB_IN_BYTES);
184 useWrite(video, 3 * MB_IN_BYTES);
185 useWrite(audio, 5 * MB_IN_BYTES);
186 useWrite(internal, 7 * MB_IN_BYTES);
190 assertMostlyEquals(17 * MB_IN_BYTES, afterInit.getTotalBytes() - before.getTotalBytes());
191 assertMostlyEquals(5 * MB_IN_BYTES, afterInit.getAudioBytes() - before.getAudioBytes());
192 assertMostlyEquals(3 * MB_IN_BYTES, afterInit.getVideoBytes() - before.getVideoBytes());
193 assertMostlyEquals(2 * MB_IN_BYTES, afterInit.getImageBytes() - before.getImageBytes());
194 assertMostlyEquals(7 * MB_IN_BYTES, afterInit.getAppBytes() - before.getAppBytes());
201 assertMostlyEquals(17 * MB_IN_BYTES, afterRename.getTotalBytes() - before.getTotalBytes());
202 assertMostlyEquals(5 * MB_IN_BYTES, afterRename.getAudioBytes() - before.getAudioBytes());
203 assertMostlyEquals(0 * MB_IN_BYTES, afterRename.getVideoBytes() - before.getVideoBytes());
204 assertMostlyEquals(5 * MB_IN_BYTES, afterRename.getImageBytes() - before.getImageBytes());
205 assertMostlyEquals(7 * MB_IN_BYTES, afterRename.getAppBytes() - before.getAppBytes());
223 useWrite(makeUniqueFile(top), 5 * MB_IN_BYTES);
224 useWrite(makeUniqueFile(pics), 5 * MB_IN_BYTES);
225 useWrite(makeUniqueFile(pics), 5 * MB_IN_BYTES);
279 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES);
281 stats.getFreeBytes(filesUuid), 10 * MB_IN_BYTES);
284 sm.getAllocatableBytes(filesUuid), 10 * MB_IN_BYTES);
286 stats.getFreeBytes(filesUuid), 10 * MB_IN_BYTES);
289 filesDir.getUsableSpace(), 10 * MB_IN_BYTES);
305 assertMostlyEquals(targetB / 2, getCacheBytes(PKG_B, user), 2 * MB_IN_BYTES);
319 assertMostlyEquals(targetA / 2, getCacheBytes(PKG_A, user), 2 * MB_IN_BYTES);
320 assertMostlyEquals(targetA / 2, getCacheBytes(PKG_B, user), 2 * MB_IN_BYTES);
336 final long size = 2 * MB_IN_BYTES;
365 final long clear1 = group.getUsableSpace() + (8 * MB_IN_BYTES);