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
272 while (remainingBytes != 0) { in writeToFos()
278 int writeBytes = Math.toIntExact(Math.min(totalFreeMemory, remainingBytes)); in writeToFos()
[all …]
/cts/hostsidetests/car/src/android/car/cts/
DCarWatchdogHostTest.java412 long remainingBytes = readForegroundBytesFromActivityDump(packageName); in overuseDiskIo() local
414 sendBytesToKillApp(remainingBytes, packageName, userId); in overuseDiskIo()
416 remainingBytes = readForegroundBytesFromActivityDump(packageName); in overuseDiskIo()
419 .that(remainingBytes).isEqualTo(0); in overuseDiskIo()
489 private void sendBytesToKillApp(long remainingBytes, String appPkg, int userId) in sendBytesToKillApp() argument
494 userId, appPkg, ACTIVITY_CLASS, remainingBytes); in sendBytesToKillApp()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java3186 int remainingBytes = srcBuffer.remaining(); in imageCopy() local
3187 if (srcRowByteCount > remainingBytes) { in imageCopy()
3188 srcRowByteCount = remainingBytes; in imageCopy()
3190 remainingBytes = dstBuffer.remaining(); in imageCopy()
3191 if (dstRowByteCount > remainingBytes) { in imageCopy()
3192 dstRowByteCount = remainingBytes; in imageCopy()