Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptor.java177 int bytesRead = stream.getReadCount(); in postParse() local
178 if (bytesRead < mLength) { in postParse()
180 stream.advance(mLength - bytesRead); in postParse()
182 mOverUnderRunCount = mLength - bytesRead; in postParse()
184 + " r: " + bytesRead + " < l: " + mLength); in postParse()
185 } else if (bytesRead > mLength) { in postParse()
187 stream.reverse(bytesRead - mLength); in postParse()
189 mOverUnderRunCount = bytesRead - mLength; in postParse()
191 + " r: " + bytesRead + " > l: " + mLength); in postParse()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/
Damrnbdec_test.cpp67 int bytesRead = fread(header, 1, kFileHeaderSize, fpInput); in main() local
68 if (bytesRead != kFileHeaderSize || memcmp(header, "#!AMR\n", kFileHeaderSize)) { in main()
107 bytesRead = fread(&mode, 1, 1, fpInput); in main()
108 if (bytesRead != 1) break; in main()
120 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
121 if (bytesRead != frameSize) break; in main()
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp80 size_t bytesRead; in read() local
81 status_t result = mStream->read(buffer, count * mFrameSize, &bytesRead); in read()
82 if (result == OK && bytesRead > 0) { in read()
83 size_t framesRead = bytesRead / mFrameSize; in read()
88 return bytesRead; in read()
/frameworks/av/media/libstagefright/codecs/amrwb/test/
Damrwbdec_test.cpp68 int bytesRead = fread(header, 1, kFileHeaderSize, fpInput); in main() local
69 if ((bytesRead != kFileHeaderSize) || in main()
116 bytesRead = fread(&modeByte, 1, 1, fpInput); in main()
117 if (bytesRead != 1) break; in main()
133 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
134 if (bytesRead != frameSize) break; in main()
/frameworks/ex/framesequence/jni/
DStream.cpp128 jint bytesRead = mEnv->CallIntMethod(mInputStream, in doRead() local
130 if (mEnv->ExceptionCheck() || bytesRead < 0) { in doRead()
134 mEnv->GetByteArrayRegion(mByteArray, 0, bytesRead, (jbyte*)dstBuffer); in doRead()
135 dstBuffer = (char*)dstBuffer + bytesRead; in doRead()
136 totalBytesRead += bytesRead; in doRead()
137 size -= bytesRead; in doRead()
/frameworks/base/services/net/java/android/net/util/
DBlockingSocketReader.java122 final int bytesRead; in mainLoop() local
127 bytesRead = Os.read(mSocket, mPacket, 0, mPacket.length); in mainLoop()
128 if (bytesRead < 1) { in mainLoop()
145 handlePacket(mPacket, bytesRead); in mainLoop()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DInputStreamSource.java70 int bytesRead; in process() local
71 while ((bytesRead = mInputStream.read(buffer)) > 0) { in process()
72 byteStream.write(buffer, 0, bytesRead); in process()
73 fileSize += bytesRead; in process()
/frameworks/av/media/libaaudio/src/utility/
DFixedBlockReader.cpp53 int32_t bytesRead = readFromStorage(buffer, bytesLeft); in processVariableBlock() local
54 buffer += bytesRead; in processVariableBlock()
55 bytesLeft -= bytesRead; in processVariableBlock()
/frameworks/av/media/img_utils/src/
DFileInput.cpp54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp); in read() local
62 if (::feof(mFp) != 0 && bytesRead == 0) { in read()
66 return bytesRead; in read()
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DGraphReader.java47 int bytesRead; in readGraphResource() local
48 while ((bytesRead = reader.read(buffer, 0, 1024)) > 0) { in readGraphResource()
49 writer.write(buffer, 0, bytesRead); in readGraphResource()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp288 ssize_t bytesRead = mAudioRecord->read(buffer, numBytes, blocking); in read() local
289 if (bytesRead == WOULD_BLOCK) { in read()
291 } else if (bytesRead < 0) { in read()
294 if (bytesRead == DEAD_OBJECT) { in read()
298 return AAudioConvert_androidToAAudioResult(bytesRead); in read()
300 int32_t framesRead = (int32_t)(bytesRead / bytesPerFrame); in read()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/test/
Damrnb_enc_test.cpp107 int bytesRead; in encode() local
108 bytesRead = fread(inputBuf, 1, kInputSize, fSrc); in encode()
109 if (bytesRead != kInputSize && !feof(fSrc)) { in encode()
113 } else if (feof(fSrc) && bytesRead == 0) { in encode()
/frameworks/base/core/java/android/util/
DBase64InputStream.java139 int bytesRead = in.read(inputBuffer); in refill() local
141 if (bytesRead == -1) { in refill()
145 success = coder.process(inputBuffer, 0, bytesRead, false); in refill()
/frameworks/base/rs/java/android/renderscript/
DScriptC.java103 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate() local
104 if (bytesRead <= 0) { in internalCreate()
107 pgmLength += bytesRead; in internalCreate()
DProgram.java264 int bytesRead = is.read(str, strLength, bytesLeft); in setShader() local
265 if (bytesRead <= 0) { in setShader()
268 strLength += bytesRead; in setShader()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3dec_test.cpp100 uint32_t bytesRead; in main() local
101 bool success = mp3Reader.getFrame(inputBuf, &bytesRead); in main()
105 config.inputBufferCurrentLength = bytesRead; in main()
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DScriptC.java104 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate() local
105 if (bytesRead <= 0) { in internalCreate()
108 pgmLength += bytesRead; in internalCreate()
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp235 size_t bytesRead = mStream->read(mCache.get() + mCachedSize, bytesToRead); in readAt() local
236 if (bytesRead > bytesToRead || bytesRead == 0) { in readAt()
239 bytesRead = 0; in readAt()
240 } else if (bytesRead < bytesToRead) { in readAt()
244 mCachedSize += bytesRead; in readAt()
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java392 private long bytesRead = 0; field in StrictJarFile.ZipInflaterInputStream
405 + bytesRead, e); in read()
408 if (entry.getSize() != bytesRead) { in read()
409 throw new IOException("Size mismatch on inflated file: " + bytesRead + " vs " in read()
413 bytesRead += i; in read()
425 return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead); in available()
/frameworks/base/libs/androidfw/
DStreamingZipInflater.cpp138 size_t bytesRead = 0; in read() local
148 bytesRead += deliverable; in read()
204 return bytesRead; in read()
/frameworks/av/media/libstagefright/httplive/
DHTTPDownloader.cpp141 ssize_t bytesRead = 0; in fetchBlock() local
206 bytesRead += n; in fetchBlock()
217 return bytesRead; in fetchBlock()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
Dm4v_h263_enc_test.cpp204 int32_t bytesRead; in main() local
205 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
206 if (bytesRead != frameSize) { in main()
/frameworks/base/core/jni/android/graphics/
DCreateJavaOutputStreamAdaptor.cpp64 size_t bytesRead = 0; in doRead() local
105 bytesRead += n; in doRead()
110 return bytesRead; in doRead()
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
DBasePrintTest.java129 int bytesRead; in runShellCommand() local
132 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
133 stdout.append(new String(buf, 0, bytesRead)); in runShellCommand()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBytesReadListener.java27 void onBytesRead(long bytesRead); in onBytesRead() argument

12