Home
last modified time | relevance | path

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

123

/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptor.java180 int bytesRead = stream.getReadCount(); in postParse() local
181 if (bytesRead < mLength) { in postParse()
183 stream.advance(mLength - bytesRead); in postParse()
185 mOverUnderRunCount = mLength - bytesRead; in postParse()
187 + " r: " + bytesRead + " < l: " + mLength); in postParse()
188 } else if (bytesRead > mLength) { in postParse()
190 stream.reverse(bytesRead - mLength); in postParse()
192 mOverUnderRunCount = bytesRead - mLength; in postParse()
194 + " 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()
111 bytesRead = fread(&mode, 1, 1, fpInput); in main()
112 if (bytesRead != 1) break; in main()
124 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main()
125 if (bytesRead != frameSize) break; in main()
DAmrnbDecoderTest.cpp75 int32_t bytesRead = fread(&mode, 1, 1, mFpInput); in DecodeFrames() local
76 if (bytesRead != 1) break; in DecodeFrames()
85 bytesRead = fread(inputBuf, 1, frameSize, mFpInput); in DecodeFrames()
86 if (bytesRead != frameSize) break; in DecodeFrames()
/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()
DAmrwbDecoderTest.cpp80 int32_t bytesRead = fread(&modeByte, 1, 1, mFpInput); in DecodeFrames() local
81 if (bytesRead != 1) break; in DecodeFrames()
96 bytesRead = fread(inputBuf, 1, frameSize, mFpInput); in DecodeFrames()
97 if (bytesRead != frameSize) break; in DecodeFrames()
/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/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/services/core/java/com/android/server/net/watchlist/
DDigestUtils.java47 int bytesRead; in getSha256Hash() local
49 while ((bytesRead = stream.read(buf)) >= 0) { in getSha256Hash()
50 digester.update(buf, 0, bytesRead); in getSha256Hash()
/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/base/apct-tests/perftests/utils/src/android/perftests/utils/
DShellHelper.java51 int bytesRead; in runShellCommandRaw() local
54 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommandRaw()
55 stdout.append(new String(buf, 0, bytesRead)); in runShellCommandRaw()
/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/libs/net/common/device/android/net/util/
DFdEventsReader.java222 final int bytesRead; in handleInput() local
225 bytesRead = readPacket(mFd, mBuffer); in handleInput()
226 if (bytesRead < 1) { in handleInput()
247 handlePacket(mBuffer, bytesRead); in handleInput()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java139 int bytesRead; in writeToOutputStreamFromAsset() local
142 while ((bytesRead = inputStream.read(inputBuf)) > -1) { in writeToOutputStreamFromAsset()
143 if (bytesRead > 0) { in writeToOutputStreamFromAsset()
144 outputStream.write(inputBuf, 0, bytesRead); in writeToOutputStreamFromAsset()
/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/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()
/frameworks/base/cmds/incidentd/src/
DPrivacyFilter.cpp105 size_t currentAt = in->bytesRead(); in strip_field()
111 size_t start = in->bytesRead(); in strip_field()
113 while (in->bytesRead() - start != msgSize) { in strip_field()
118 msgSize, in->bytesRead() - start); in strip_field()
206 if (mData->bytesRead() != mData->size()) { in strip()
208 mData->bytesRead()); in strip()
/frameworks/rs/support/java/src/androidx/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/tests/benchmark/src/native/decoder/
DDecoder.cpp63 ssize_t bytesRead = 0; in onInputAvailable() local
66 tie(bytesRead, flag, presentationTimeUs) = in onInputAvailable()
77 bytesRead, presentationTimeUs, mSawInputEOS ? "TRUE" : "FALSE"); in onInputAvailable()
80 bytesRead, presentationTimeUs, flag); in onInputAvailable()
87 mStats->addFrameSize(bytesRead); in onInputAvailable()
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java392 private long bytesRead = 0; field in StrictJarFile.ZipInflaterInputStream
406 + bytesRead, e); in read()
409 if (entry.getSize() != bytesRead) { in read()
410 throw new IOException("Size mismatch on inflated file: " + bytesRead + " vs " in read()
414 bytesRead += i; in read()
426 return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead); in available()
/frameworks/base/core/jni/android/graphics/
DCreateJavaOutputStreamAdaptor.cpp94 size_t bytesRead = 0; in doRead() local
110 return bytesRead; in doRead()
122 return bytesRead; in doRead()
126 bytesRead += n; in doRead()
131 return bytesRead; in doRead()
/frameworks/base/libs/protoutil/tests/
DEncodedBuffer_test.cpp128 EXPECT_EQ(reader1->bytesRead(), 0); in TEST()
133 EXPECT_EQ(reader1->bytesRead(), TEST_CHUNK_3X_SIZE); in TEST()
141 EXPECT_EQ(reader2->bytesRead(), TEST_CHUNK_3X_SIZE); in TEST()
142 EXPECT_EQ(reader1->bytesRead(), TEST_CHUNK_3X_SIZE); in TEST()

123