Searched refs:remainingBytes (Results 1 – 5 of 5) sorted by relevance
/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/libstagefright/ |
D | MP3Extractor.cpp | 101 ssize_t remainingBytes = 0; in Resync() local 112 if (remainingBytes < 4) { in Resync() 116 memcpy(buf, tmp, remainingBytes); in Resync() 117 bytesToRead = kMaxReadBytes - remainingBytes; in Resync() 124 totalBytesRead = source->readAt(pos + remainingBytes, in Resync() 125 buf + remainingBytes, in Resync() 131 totalBytesRead += remainingBytes; in Resync() 132 remainingBytes = totalBytesRead; in Resync() 143 --remainingBytes; in Resync() 154 --remainingBytes; in Resync() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ImageUtils.java | 155 int remainingBytes = srcBuffer.remaining() - srcOffset; in imageCopy() local 156 if (srcByteCount > remainingBytes) { in imageCopy() 157 srcByteCount = remainingBytes; in imageCopy()
|
/frameworks/base/core/jni/android/graphics/pdf/ |
D | PdfEditor.cpp | 138 size_t remainingBytes = byteCount; in writeAllBytes() local 139 while (remainingBytes > 0) { in writeAllBytes() 140 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes); in writeAllBytes() 149 remainingBytes -= writtenByteCount; in writeAllBytes()
|