Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp70 ssize_t numRead = in readAt() local
73 if (numRead < 0) { in readAt()
74 return numRead == ERROR_END_OF_STREAM && totalNumRead > 0 ? totalNumRead : numRead; in readAt()
77 if (numRead == 0) { in readAt()
80 if ((size_t)numRead > numToRead) { in readAt()
83 CHECK(numRead >= 0 && (size_t)numRead <= bufferSize); in readAt()
85 numRead); in readAt()
86 numLeft -= numRead; in readAt()
87 totalNumRead += numRead; in readAt()
159 const ssize_t numRead = mSource->readAt(offset, mCache, kCacheSize); in readAt() local
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_flowgraph.cpp128 int32_t numRead = sinkI16.read(output.data(), output.size()); in TEST() local
129 ASSERT_EQ(kNumSamples, numRead); in TEST()
130 for (int i = 0; i < numRead; i++) { in TEST()
202 int32_t numRead = sinkI32.read(output.data(), output.size()); in TEST() local
203 ASSERT_EQ(kNumSamples, numRead); in TEST()
204 for (int i = 0; i < numRead; i++) { in TEST()
221 int32_t numRead = sinkFloat.read(output, 8); in TEST() local
222 ASSERT_EQ(3, numRead); in TEST()
255 int32_t numRead = sinkFloat.read(output, numOutput); in TEST() local
257 ASSERT_EQ(numOutput, numRead); in TEST()
[all …]
Dtest_resampler.cpp89 int numRead = 0; in checkResampler() local
100 numRead++; in checkResampler()
108 numRead++; in checkResampler()
111 ASSERT_LE(numRead, kNumOutputSamples); in checkResampler()
114 EXPECT_GT(numRead, kNumOutputSamples - kMaxAlgorithmicFrameLoss); in checkResampler()
116 int sinkZeroCrossingCount = countZeroCrossingsWithHysteresis(outputBuffer.get(), numRead); in checkResampler()
124 for (int i = 0; i < numRead; i++) { in checkResampler()
138 fwrite(outputBuffer.get(), sizeof(float), numRead, fp ); in checkResampler()
/frameworks/base/media/java/android/media/
DAmrInputStream.java126 int numRead; in read() local
127 for (numRead = 0; numRead < SAMPLES_PER_FRAME * 2; ) { in read()
128 int n = mInputStream.read(mBuf, numRead, SAMPLES_PER_FRAME * 2 - numRead); in read()
133 numRead += n; in read()
136 buf.put(mBuf, 0, numRead); in read()
139 numRead, in read()
/frameworks/base/core/java/android/content/pm/
DMacAuthenticatedInputStream.java72 int numRead = super.read(buffer, offset, count); in read() local
73 if (numRead > 0) { in read()
74 mMac.update(buffer, offset, numRead); in read()
76 return numRead; in read()
DLimitedLengthInputStream.java85 final int numRead = super.read(buffer, offset, byteCount); in read() local
86 mOffset += numRead; in read()
88 return numRead; in read()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java113 int numRead = 0; in testString1Authenticate_ReadSingleByte_Success() local
115 numRead++; in testString1Authenticate_ReadSingleByte_Success()
117 if (numRead > TEST_STRING_1.length) { in testString1Authenticate_ReadSingleByte_Success()
121 assertEquals(TEST_STRING_1.length, numRead); in testString1Authenticate_ReadSingleByte_Success()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DSessionStager.kt63 val numRead = instream.read(buffer) in <lambda>() constant
64 if (numRead == -1) { in <lambda>()
68 out.write(buffer, 0, numRead) in <lambda>()
71 totalRead += numRead.toLong() in <lambda>()
/frameworks/base/core/java/com/android/internal/infra/
DRemoteStream.java128 int numRead = inputStream.read(buffer);
129 if (numRead == -1) {
132 combinedBuffer.write(buffer, 0, numRead);
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStaging.java324 int numRead = in.read(buffer); in doInBackground() local
326 if (numRead == -1) { in doInBackground()
335 out.write(buffer, 0, numRead); in doInBackground()
337 totalRead += numRead; in doInBackground()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java116 int numRead = is.read(buffer); in dumpAsync() local
117 if (numRead == -1) { in dumpAsync()
121 combinedBuffer.write(buffer, 0, numRead); in dumpAsync()
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java395 int numRead = input.read(buffer); in copyAndHashResource() local
396 if (numRead < 0) { in copyAndHashResource()
399 output.write(buffer, 0, numRead); in copyAndHashResource()
400 hasher.update(buffer, 0, numRead); in copyAndHashResource()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptor.java204 int numRead = stream.getReadCount(); in parseRawDescriptors() local
205 int dataLen = mLength - numRead; in parseRawDescriptors()
/frameworks/base/telecomm/java/android/telecom/
DCall.java1601 int numRead = mReceiveStream.read(mReadBuffer, 0, READ_BUFFER_SIZE); in read() local
1602 if (numRead < 0) { in read()
1605 return new String(mReadBuffer, 0, numRead); in read()
1620 int numRead = mReceiveStream.read(mReadBuffer, 0, READ_BUFFER_SIZE); in readImmediately() local
1621 if (numRead < 0) { in readImmediately()
1624 return new String(mReadBuffer, 0, numRead); in readImmediately()
DConnection.java1341 int numRead = mPipeFromInCall.read(mReadBuffer, 0, READ_BUFFER_SIZE); in read() local
1342 if (numRead < 0) { in read()
1345 return new String(mReadBuffer, 0, numRead); in read()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/frameworks/base/tests/UiBench/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/frameworks/multidex/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/frameworks/av/media/tests/SampleVideoEncoder/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/frameworks/base/startop/apps/ColorChanging/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/frameworks/base/tests/TouchLatency/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java5154 int numRead; in uploadCallComposerPicture() local
5156 numRead = pictureToUpload.read(buffer); in uploadCallComposerPicture()
5172 if (numRead < 0) { in uploadCallComposerPicture()
5176 totalBytesRead += numRead; in uploadCallComposerPicture()
5192 output.write(buffer, 0, numRead); in uploadCallComposerPicture()