Searched refs:remainingBytes (Results 1 – 9 of 9) 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 = 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()
|
/frameworks/av/media/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/libs/hwui/jni/pdf/ |
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()
|
/frameworks/base/media/java/android/media/ |
D | ImageUtils.java | 197 int remainingBytes = srcBuffer.remaining() - srcOffset; in imageCopy() local 198 if (srcByteCount > remainingBytes) { in imageCopy() 199 srcByteCount = remainingBytes; in imageCopy()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
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()
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/audio/ |
D | VtsHalMediaC2V1_0TargetAudioEncTest.cpp | 341 uint32_t remainingBytes = (uint32_t)eleStream.tellg() - currPos; in encodeNFrames() local 344 nFrames = std::min(nFrames, remainingBytes / bytesCount); in encodeNFrames()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 2312 final long remainingBytes = limitBytes - totalBytes; 2317 quotaBytes = Math.max(0, (long) ((remainingBytes / remainingDays) * quotaLimited));
|