Home
last modified time | relevance | path

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

12

/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/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/core/java/android/hardware/usb/
DUsbRequest.java155 int bytesRead; in dequeue() local
157 bytesRead = native_dequeue_direct(); in dequeue()
159 bytesRead = native_dequeue_array(mBuffer.array(), mLength, out); in dequeue()
161 if (bytesRead >= 0) { in dequeue()
162 mBuffer.position(Math.min(bytesRead, mLength)); in dequeue()
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp72 ssize_t bytesRead = mStream->read(mStream, buffer, count * mFrameSize); in read() local
73 if (bytesRead > 0) { in read()
74 size_t framesRead = bytesRead / mFrameSize; in read()
78 return bytesRead; in read()
/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/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/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/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/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/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/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/core/java/android/util/jar/
DStrictJarFile.java349 private long bytesRead = 0; field in StrictJarFile.ZipInflaterInputStream
362 + bytesRead, e); in read()
365 if (entry.getSize() != bytesRead) { in read()
366 throw new IOException("Size mismatch on inflated file: " + bytesRead + " vs " in read()
370 bytesRead += i; in read()
382 return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead); in available()
/frameworks/support/v8/renderscript/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/base/libs/androidfw/
DStreamingZipInflater.cpp138 size_t bytesRead = 0; in read() local
148 bytesRead += deliverable; in read()
204 return bytesRead; in read()
DBackupHelpers.cpp89 int bytesRead = 0; in read_snapshot_file() local
97 bytesRead += amt; in read_snapshot_file()
110 … ALOGW("read_snapshot_file FileState truncated/error with read at %d bytes\n", bytesRead); in read_snapshot_file()
113 bytesRead += amt; in read_snapshot_file()
124 bytesRead += amt; in read_snapshot_file()
129 ALOGW("read_snapshot_file filename truncated/error with read at %d bytes\n", bytesRead); in read_snapshot_file()
134 if (header.totalSize != bytesRead) { in read_snapshot_file()
136 header.totalSize, bytesRead); in read_snapshot_file()
/frameworks/av/media/libstagefright/httplive/
DHTTPDownloader.cpp141 ssize_t bytesRead = 0; in fetchBlock() local
200 bytesRead += n; in fetchBlock()
211 return bytesRead; in fetchBlock()
DPlaylistFetcher.cpp1261 ssize_t bytesRead; in onDownloadNext() local
1264 bytesRead = mHTTPDownloader->fetchBlock( in onDownloadNext()
1269 if (bytesRead == ERROR_NOT_CONNECTED) { in onDownloadNext()
1272 if (bytesRead < 0) { in onDownloadNext()
1273 status_t err = bytesRead; in onDownloadNext()
1282 if (!mStartup && mStopParams == NULL && bytesRead > 0 in onDownloadNext()
1286 mSession->addBandwidthMeasurement(bytesRead, delayUs); in onDownloadNext()
1289 bytesRead, (double)delayUs / 1.0e6); in onDownloadNext()
1299 buffer->setRange(size - bytesRead, bytesRead); in onDownloadNext()
1325 tsBuffer->setRange(tsBuffer->offset(), tsBuffer->size() + bytesRead); in onDownloadNext()
[all …]
/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/av/media/libstagefright/codecs/avc/enc/test/
Dh264_enc_test.cpp275 int32_t bytesRead; in main() local
276 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
277 if (bytesRead != frameSize) { in main()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DDiskBasedCache.java119 byte[] data = streamToBytes(cis, (int) (file.length() - cis.bytesRead)); in get()
449 private int bytesRead = 0; field in DiskBasedCache.CountingInputStream
459 bytesRead++; in read()
468 bytesRead += result; in read()
/frameworks/base/core/tests/coretests/src/android/print/
DBasePrintTest.java239 int bytesRead; in runShellCommand() local
242 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
243 stdout.append(new String(buf, 0, bytesRead)); in runShellCommand()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp685 ssize_t bytesRead = -1; local
699 bytesRead = onRead(uniqueId, decryptHandle, buffer, numBytes);
700 if (bytesRead < 0) {
708 return bytesRead;

12