Searched refs:remainingBytes (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/packages/PrintSpooler/jni/ |
H A D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 31 size_t remainingBytes = byteCount; in writeAllBytes() local 32 while (remainingBytes > 0) { in writeAllBytes() 33 ssize_t writtenByteCount = TEMP_FAILURE_RETRY(write(fd, writeBuffer, remainingBytes)); in writeAllBytes() 39 remainingBytes -= writtenByteCount; in writeAllBytes() 47 size_t remainingBytes = byteCount; in readAllBytes() local 48 while (remainingBytes > 0) { in readAllBytes() 49 ssize_t readByteCount = TEMP_FAILURE_RETRY(read(fd, readBuffer, remainingBytes)); in readAllBytes() 56 remainingBytes -= readByteCount; in readAllBytes() 59 if (readByteCount == 0 && remainingBytes > 0) { in readAllBytes() 61 "File closed before all bytes were read. %zu/%zu remaining", remainingBytes, in readAllBytes()
|
/aosp14/frameworks/base/core/tests/fuzzers/ParcelFuzzer/ |
H A D | FuzzUtils.java | 42 provider.consumeInt(0, provider.remainingBytes())); 64 int maxParcelBytes = provider.remainingBytes() / 3; 72 while (provider.remainingBytes() > 0) {
|
/aosp14/frameworks/base/libs/hwui/jni/pdf/ |
H A D | PdfEditor.cpp | 71 size_t remainingBytes = byteCount; in writeAllBytes() local 72 while (remainingBytes > 0) { in writeAllBytes() 73 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes); in writeAllBytes() 81 remainingBytes -= writtenByteCount; in writeAllBytes()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | ImageUtils.java | 201 int remainingBytes = srcBuffer.remaining() - srcOffset; in imageCopy() local 202 if (srcByteCount > remainingBytes) { in imageCopy() 203 srcByteCount = remainingBytes; in imageCopy()
|
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | MultipathPolicyTracker.java | 296 final long remainingBytes = totalBytes == -1 ? 0 : Math.max(0, limitBytes - totalBytes); in getRemainingDailyBudget() local 302 return remainingBytes / Math.max(1, remainingDays); in getRemainingDailyBudget()
|
/aosp14/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkPolicyManagerService.java | 2305 final long remainingBytes = limitBytes - totalBytes; 2310 quotaBytes = Math.max(0, (long) ((remainingBytes / remainingDays) * quotaLimited));
|