/frameworks/av/media/module/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/module/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/base/core/tests/fuzzers/ParcelFuzzer/ |
D | FuzzUtils.java | 42 provider.consumeInt(0, provider.remainingBytes())); 64 int maxParcelBytes = provider.remainingBytes() / 3; 72 while (provider.remainingBytes() > 0) {
|
/frameworks/av/media/module/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 | 68 size_t remainingBytes = byteCount; in writeAllBytes() local 69 while (remainingBytes > 0) { in writeAllBytes() 70 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes); in writeAllBytes() 78 remainingBytes -= writtenByteCount; in writeAllBytes()
|
/frameworks/base/media/java/android/media/ |
D | ImageUtils.java | 201 int remainingBytes = srcBuffer.remaining() - srcOffset; in imageCopy() local 202 if (srcByteCount > remainingBytes) { in imageCopy() 203 srcByteCount = remainingBytes; in imageCopy()
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/ |
D | random_parcel_seeds.cpp | 218 size_t remainingBytes = totalWrittenBytes + fillParcelBuffer.size() - meta.position; in regenerateParcel() local 221 impl::writeReversedBuffer(remReversedBytes, static_cast<size_t>(0), remainingBytes, in regenerateParcel()
|
/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/hal/hidl/1.0/vts/functional/audio/ |
D | VtsHalMediaC2V1_0TargetAudioEncTest.cpp | 343 uint32_t remainingBytes = (uint32_t)eleStream.tellg() - currPos; in encodeNFrames() local 346 nFrames = std::min(nFrames, remainingBytes / bytesCount); in encodeNFrames()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 2533 final long remainingBytes = limitBytes - totalBytes; 2538 quotaBytes = Math.max(0, (long) ((remainingBytes / remainingDays) * quotaLimited));
|