Home
last modified time | relevance | path

Searched refs:remainingBytes (Results 1 – 3 of 3) sorted by relevance

/cts/hostsidetests/car/app/src/android/car/cts/app/
DCarWatchdogTestActivity.java89 long remainingBytes = fetchRemainingBytes(TEN_MEGABYTES); in onCreate() local
90 if (remainingBytes == 0) { in onCreate()
108 (long) Math.ceil(remainingBytes in onCreate()
139 long remainingBytes = extras.getLong(BYTES_TO_KILL); in onNewIntent() local
140 Log.d(TAG, "Bytes to kill: " + remainingBytes); in onNewIntent()
141 if (remainingBytes == 0) { in onNewIntent()
157 writeToDisk(remainingBytes); in onNewIntent()
269 private long writeToFos(FileOutputStream fos, long remainingBytes) { in writeToFos() argument
271 while (remainingBytes != 0) { in writeToFos()
274 Math.min(Runtime.getRuntime().freeMemory(), remainingBytes)); in writeToFos()
[all …]
/cts/hostsidetests/car/src/android/car/cts/
DCarWatchdogHostTest.java258 long remainingBytes = readForegroundBytesFromActivityDump(packageName); in overuseDiskIo() local
260 sendBytesToKillApp(remainingBytes, packageName); in overuseDiskIo()
262 remainingBytes = readForegroundBytesFromActivityDump(packageName); in overuseDiskIo()
265 .that(remainingBytes).isEqualTo(0); in overuseDiskIo()
326 private void sendBytesToKillApp(long remainingBytes, String appPkg) throws Exception { in sendBytesToKillApp() argument
329 appPkg, ACTIVITY_CLASS, remainingBytes); in sendBytesToKillApp()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2786 int remainingBytes = srcBuffer.remaining(); in imageCopy() local
2787 if (srcRowByteCount > remainingBytes) { in imageCopy()
2788 srcRowByteCount = remainingBytes; in imageCopy()
2790 remainingBytes = dstBuffer.remaining(); in imageCopy()
2791 if (dstRowByteCount > remainingBytes) { in imageCopy()
2792 dstRowByteCount = remainingBytes; in imageCopy()