Searched refs:remainingBytes (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | HlsSampleDecryptor.cpp | 110 size_t remainingBytes = nalSize - VIDEO_CLEAR_LEAD; in processNal() local 116 while (remainingBytes > 0) { in processNal() 118 if (remainingBytes > AES_BLOCK_SIZE) { in processNal() 127 remainingBytes -= AES_BLOCK_SIZE; in processNal() 131 size_t clearBytes = std::min(remainingBytes, (size_t)(9 * AES_BLOCK_SIZE)); in processNal() 134 remainingBytes -= clearBytes; in processNal() 158 size_t remainingBytes = size - adtsHdrSize; in processAAC() local 160 bool isEncrypted = (remainingBytes >= AUDIO_CLEAR_LEAD + AES_BLOCK_SIZE); in processAAC() 174 if (remainingBytes >= AUDIO_CLEAR_LEAD) { in processAAC() 176 remainingBytes -= AUDIO_CLEAR_LEAD; in processAAC() [all …]
|
/frameworks/base/packages/PrintSpooler/jni/ |
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 = write(fd, writeBuffer, remainingBytes); in writeAllBytes() 42 remainingBytes -= writtenByteCount; in writeAllBytes() 50 size_t remainingBytes = byteCount; in readAllBytes() local 51 while (remainingBytes > 0) { in readAllBytes() 52 ssize_t readByteCount = read(fd, readBuffer, remainingBytes); in readAllBytes() 54 remainingBytes -= readByteCount; in readAllBytes() 64 } else if (readByteCount == 0 && remainingBytes > 0) { in readAllBytes() 66 "File closed before all bytes were read. %zu/%zu remaining", remainingBytes, in readAllBytes()
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | mp3reader.cpp | 249 ssize_t remainingBytes = 0; in resync() local 259 if (remainingBytes < 4) { in resync() 263 memcpy(buf, tmp, remainingBytes); in resync() 264 bytesToRead = kMaxReadBytes - remainingBytes; in resync() 271 totalBytesRead = sourceReadAt(fp, pos + remainingBytes, in resync() 272 buf + remainingBytes, bytesToRead); in resync() 278 remainingBytes += totalBytesRead; in resync() 289 --remainingBytes; in resync() 300 --remainingBytes; in resync() 345 --remainingBytes; in resync()
|
/frameworks/av/media/extractors/mp3/ |
D | MP3Extractor.cpp | 99 ssize_t remainingBytes = 0; in Resync() local 110 if (remainingBytes < 4) { in Resync() 114 memcpy(buf, tmp, remainingBytes); in Resync() 115 bytesToRead = kMaxReadBytes - remainingBytes; in Resync() 122 totalBytesRead = source->readAt(pos + remainingBytes, in Resync() 123 buf + remainingBytes, in Resync() 129 totalBytesRead += remainingBytes; in Resync() 130 remainingBytes = totalBytesRead; in Resync() 141 --remainingBytes; in Resync() 152 --remainingBytes; in Resync() [all …]
|
/frameworks/base/core/jni/android/graphics/pdf/ |
D | PdfEditor.cpp | 72 size_t remainingBytes = byteCount; in writeAllBytes() local 73 while (remainingBytes > 0) { in writeAllBytes() 74 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes); in writeAllBytes() 82 remainingBytes -= writtenByteCount; in writeAllBytes()
|
/frameworks/base/media/java/android/media/ |
D | ImageUtils.java | 162 int remainingBytes = srcBuffer.remaining() - srcOffset; in imageCopy() local 163 if (srcByteCount > remainingBytes) { in imageCopy() 164 srcByteCount = remainingBytes; in imageCopy()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 280 final long remainingBytes = totalBytes == -1 ? 0 : Math.max(0, limitBytes - totalBytes); in getRemainingDailyBudget() local 286 return remainingBytes / Math.max(1, remainingDays); in getRemainingDailyBudget()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 2015 final long remainingBytes = limitBytes - totalBytes; local 2020 quotaBytes = Math.max(0, (long) ((remainingBytes / remainingDays) * quotaLimited));
|