Searched defs:remainingBytes (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp31 size_t remainingBytes = byteCount; local
32 while (remainingBytes > 0) {
33 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes);
42 remainingBytes -= writtenByteCount;
50 size_t remainingBytes = byteCount; local
51 while (remainingBytes > 0) {
52 ssize_t readByteCount = read(fd, readBuffer, remainingBytes);
54 remainingBytes -= readByteCount;
64 } else if (readByteCount == 0 && remainingBytes > 0) {
66 "File closed before all bytes were read. %zu/%zu remaining", remainingBytes,
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp249 ssize_t remainingBytes = 0; local
259 if (remainingBytes < 4) {
263 memcpy(buf, tmp, remainingBytes);
264 bytesToRead = kMaxReadBytes - remainingBytes;
271 totalBytesRead = sourceReadAt(fp, pos + remainingBytes,
272 buf + remainingBytes, bytesToRead);
278 remainingBytes += totalBytesRead;
289 --remainingBytes;
300 --remainingBytes;
345 --remainingBytes;
[all...]
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfEditor.cpp138 size_t remainingBytes = byteCount; local
139 while (remainingBytes > 0) {
140 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes);
149 remainingBytes -= writtenByteCount;
/frameworks/av/media/libstagefright/
H A DMP3Extractor.cpp101 ssize_t remainingBytes = 0; local
112 if (remainingBytes < 4) {
116 memcpy(buf, tmp, remainingBytes);
117 bytesToRead = kMaxReadBytes - remainingBytes;
124 totalBytesRead = source->readAt(pos + remainingBytes,
125 buf + remainingBytes,
131 totalBytesRead += remainingBytes;
132 remainingBytes = totalBytesRead;
143 --remainingBytes;
154 --remainingBytes;
[all...]

Completed in 153 milliseconds