Home
last modified time | relevance | path

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

/frameworks/ex/framesequence/jni/
DStream.cpp100 jint bytesRead = mEnv->CallIntMethod(mInputStream, in doRead() local
102 if (mEnv->ExceptionCheck() || bytesRead < 0) { in doRead()
106 mEnv->GetByteArrayRegion(mByteArray, 0, bytesRead, (jbyte*)dstBuffer); in doRead()
107 dstBuffer = (char*)dstBuffer + bytesRead; in doRead()
108 totalBytesRead += bytesRead; in doRead()
109 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/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptC.java91 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate() local
92 if (bytesRead <= 0) { in internalCreate()
95 pgmLength += bytesRead; in internalCreate()
/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.java110 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate() local
111 if (bytesRead <= 0) { in internalCreate()
114 pgmLength += bytesRead; in internalCreate()
DProgram.java263 int bytesRead = is.read(str, strLength, bytesLeft); in setShader() local
264 if (bytesRead <= 0) { in setShader()
267 strLength += bytesRead; in setShader()
/frameworks/base/libs/androidfw/
DStreamingZipInflater.cpp136 size_t bytesRead = 0; in read() local
146 bytesRead += deliverable; in read()
202 return bytesRead; in read()
DBackupHelpers.cpp92 int bytesRead = 0; in read_snapshot_file() local
100 bytesRead += amt; in read_snapshot_file()
113 … ALOGW("read_snapshot_file FileState truncated/error with read at %d bytes\n", bytesRead); in read_snapshot_file()
116 bytesRead += amt; in read_snapshot_file()
127 bytesRead += amt; in read_snapshot_file()
132 ALOGW("read_snapshot_file filename truncated/error with read at %d bytes\n", bytesRead); in read_snapshot_file()
137 if (header.totalSize != bytesRead) { in read_snapshot_file()
139 header.totalSize, bytesRead); in read_snapshot_file()
/frameworks/base/core/jni/android/graphics/
DCreateJavaOutputStreamAdaptor.cpp63 size_t bytesRead = 0; in doRead() local
104 bytesRead += n; in doRead()
109 return bytesRead; in doRead()
/frameworks/volley/src/com/android/volley/toolbox/
DDiskBasedCache.java117 byte[] data = streamToBytes(cis, (int) (file.length() - cis.bytesRead)); in get()
439 private int bytesRead = 0; field in DiskBasedCache.CountingInputStream
449 bytesRead++; in read()
458 bytesRead += result; in read()
/frameworks/base/core/java/android/os/
DFileUtils.java189 int bytesRead; in copyToFile() local
190 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()
191 out.write(buffer, 0, bytesRead); in copyToFile()
/frameworks/av/media/libmedia/
DAudioRecord.cpp742 size_t bytesRead = audioBuffer.size; in read() local
743 memcpy(buffer, audioBuffer.i8, bytesRead); in read()
744 buffer = ((char *) buffer) + bytesRead; in read()
745 userSize -= bytesRead; in read()
746 read += bytesRead; in read()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp675 ssize_t bytesRead = -1; local
689 bytesRead = onRead(uniqueId, decryptHandle, buffer, numBytes);
690 if (bytesRead < 0) {
698 return bytesRead;
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp916 ssize_t bytesRead; in onDownloadNext() local
918 bytesRead = mSession->fetchFile( in onDownloadNext()
921 if (bytesRead < 0) { in onDownloadNext()
922 status_t err = bytesRead; in onDownloadNext()
932 buffer->setRange(size - bytesRead, bytesRead); in onDownloadNext()
979 tsBuffer->setRange(tsBuffer->offset(), tsBuffer->size() + bytesRead); in onDownloadNext()
1002 } while (bytesRead != 0); in onDownloadNext()
DLiveSession.cpp877 ssize_t bytesRead = 0; in fetchFile() local
929 bytesRead += n; in fetchFile()
940 return bytesRead; in fetchFile()
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DMediaPlayerProxyTestCase.java555 int bytesRead; in copyBetweenStreams() local
556 while ((bytesRead = in.read(buffer)) != -1) { in copyBetweenStreams()
557 out.write(buffer, 0, bytesRead); in copyBetweenStreams()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp479 ssize_t bytesRead = mInput->read(rowBytes, rowFillAmt, rowSize); in writeToStream() local
480 if (bytesRead <= 0) { in writeToStream()
481 if (bytesRead == NOT_ENOUGH_DATA || bytesRead == 0) { in writeToStream()
483 __FUNCTION__, i, bytesRead); in writeToStream()
487 bytesRead = NOT_ENOUGH_DATA; in writeToStream()
494 return bytesRead; in writeToStream()
496 rowFillAmt += bytesRead; in writeToStream()
497 rowSize -= bytesRead; in writeToStream()
/frameworks/av/services/audioflinger/
DThreads.cpp5330 ssize_t bytesRead = mInput->stream->read(mInput->stream, in threadLoop() local
5332 if (bytesRead < 0) { in threadLoop()
5333 framesRead = bytesRead; in threadLoop()
5335 framesRead = bytesRead / mFrameSize; in threadLoop()