/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A D | UsbDescriptor.java | 179 int bytesRead = stream.getReadCount(); in postParse() local 180 if (bytesRead < mLength) { in postParse() 182 stream.advance(mLength - bytesRead); in postParse() 184 mOverUnderRunCount = mLength - bytesRead; in postParse() 186 + " r: " + bytesRead + " < l: " + mLength); in postParse() 187 } else if (bytesRead > mLength) { in postParse() 189 stream.reverse(bytesRead - mLength); in postParse() 191 mOverUnderRunCount = bytesRead - mLength; in postParse() 193 + " r: " + bytesRead + " > l: " + mLength); in postParse()
|
/aosp14/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
H A D | InputStreamSource.java | 70 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
H A D | DigestUtils.java | 47 int bytesRead; in getSha256Hash() local 49 while ((bytesRead = stream.read(buf)) >= 0) { in getSha256Hash() 50 digester.update(buf, 0, bytesRead); in getSha256Hash()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | ExifInterfaceUtils.java | 59 int bytesRead = in.read(buffer, 0, bytesToRead); in copy() local 60 if (bytesRead != bytesToRead) { in copy() 64 remainder -= bytesRead; in copy() 65 out.write(buffer, 0, bytesRead); in copy()
|
H A D | ExifInterface.java | 2855 ++bytesRead; in getJpegAttributes() 2859 ++bytesRead; in getJpegAttributes() 2865 ++bytesRead; in getJpegAttributes() 2870 ++bytesRead; in getJpegAttributes() 2878 bytesRead += 2; in getJpegAttributes() 3372 int bytesRead = 0; in getPngAttributes() local 3391 bytesRead += 4; in getPngAttributes() 3461 int bytesRead = 8; in getWebpAttributes() local 3480 bytesRead += 4; in getWebpAttributes() 3482 bytesRead += 4; in getWebpAttributes() [all …]
|
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
H A D | GraphReader.java | 47 int bytesRead; in readGraphResource() local 48 while ((bytesRead = reader.read(buffer, 0, 1024)) > 0) { in readGraphResource() 49 writer.write(buffer, 0, bytesRead); in readGraphResource()
|
/aosp14/frameworks/base/services/core/java/com/android/server/powerstats/ |
H A D | PowerStatsDataStorage.java | 79 int bytesRead = in.read(lengthBytes); in DataElement() local 82 if (bytesRead == LENGTH_FIELD_WIDTH) { in DataElement() 87 bytesRead = in.read(mData); in DataElement() 89 if (bytesRead != length) { in DataElement() 91 + ", actual: " + bytesRead); in DataElement() 97 throw new IOException("Did not read " + LENGTH_FIELD_WIDTH + " bytes (" + bytesRead in DataElement()
|
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
H A D | InstallTask.java | 139 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()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | Base64InputStream.java | 139 int bytesRead = in.read(inputBuffer); in refill() local 141 if (bytesRead == -1) { in refill() 145 success = coder.process(inputBuffer, 0, bytesRead, false); in refill()
|
/aosp14/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptC.java | 108 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate() local 109 if (bytesRead <= 0) { in internalCreate() 112 pgmLength += bytesRead; in internalCreate()
|
H A D | Program.java | 280 int bytesRead = is.read(str, strLength, bytesLeft); in setShader() local 281 if (bytesRead <= 0) { in setShader() 284 strLength += bytesRead; in setShader()
|
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | ShellHelper.java | 92 int bytesRead; in runShellCommandRaw() local 95 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommandRaw() 96 stdout.append(new String(buf, 0, bytesRead)); in runShellCommandRaw()
|
H A D | WindowPerfTestBase.java | 122 int bytesRead; in executeShellCommand() local 124 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand() 125 bytes.write(buf, 0, bytesRead); in executeShellCommand()
|
/aosp14/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/ |
H A D | FakeBlobData.java | 233 long bytesRead = 0; in createSha256Digest() local 234 while (bytesRead < lengthBytes) { in createSha256Digest() 235 int toRead = (bytesRead + buffer.length <= lengthBytes) in createSha256Digest() 236 ? buffer.length : (int) (lengthBytes - bytesRead); in createSha256Digest() 239 bytesRead += toRead; in createSha256Digest()
|
/aosp14/frameworks/base/cmds/incidentd/src/ |
H A D | PrivacyFilter.cpp | 102 size_t currentAt = in->bytesRead(); in strip_field() 108 size_t start = in->bytesRead(); in strip_field() 110 while (in->bytesRead() - start != msgSize) { in strip_field() 115 msgSize, in->bytesRead() - start); in strip_field() 212 if (mData->bytesRead() != mData->size()) { in strip() 214 mData->bytesRead()); in strip()
|
/aosp14/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/ |
H A D | MusicRecognitionManagerPerUserService.java | 269 int bytesRead = 0; in streamAudio() local 274 while (bytesRead >= 0 && totalBytesRead in streamAudio() 277 bytesRead = audioRecord.read(byteBuffer, 0, byteBuffer.length); in streamAudio() 278 if (bytesRead > 0) { in streamAudio() 279 totalBytesRead += bytesRead; in streamAudio() 282 ignoreBytes -= bytesRead; in streamAudio() 286 outputStream.write(byteBuffer, bytesRead + ignoreBytes, -ignoreBytes); in streamAudio()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | CreateJavaOutputStreamAdaptor.cpp | 95 size_t bytesRead = 0; in doRead() local 111 return bytesRead; in doRead() 123 return bytesRead; in doRead() 127 bytesRead += n; in doRead() 132 return bytesRead; in doRead()
|
H A D | ByteBufferStreamAdaptor.cpp | 68 size_t bytesRead = 0; in read() local 78 return bytesRead; in read() 87 return bytesRead; in read() 92 bytesRead += requested; in read() 95 return bytesRead; in read()
|
/aosp14/frameworks/base/core/java/android/util/jar/ |
H A D | StrictJarFile.java | 392 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()
|
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
H A D | HotwordAudioStreamCopier.java | 322 int bytesRead = fis.read(buffer); in call() local 323 if (bytesRead < 0) { in call() 327 if (bytesRead > 0) { in call() 330 Slog.d(TAG, mStreamTaskId + ": Copied " + bytesRead in call() 334 fos.write(buffer, 0, bytesRead); in call() 335 mTotalCopiedBytes += bytesRead; in call()
|
/aosp14/frameworks/base/libs/protoutil/tests/ |
H A D | EncodedBuffer_test.cpp | 128 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()
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | StreamingZipInflater.cpp | 138 size_t bytesRead = 0; in read() local 148 bytesRead += deliverable; in read() 204 return bytesRead; in read()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | BytesReadListener.java | 27 void onBytesRead(long bytesRead); in onBytesRead() argument
|
/aosp14/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
H A D | BackgroundDexOptServiceIntegrationTests.java | 154 int bytesRead; in runShellCommand() local 157 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand() 158 stdout.append(new String(buf, 0, bytesRead)); in runShellCommand()
|
/aosp14/frameworks/base/libs/protoutil/include/android/util/ |
H A D | ProtoReader.h | 41 virtual size_t bytesRead() const = 0;
|