Home
last modified time | relevance | path

Searched refs:numRead (Results 1 – 14 of 14) 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()
84 memcpy(((uint8_t*)data) + totalNumRead, mMemory->pointer(), numRead); in readAt()
85 numLeft -= numRead; in readAt()
86 totalNumRead += numRead; in readAt()
158 const ssize_t numRead = mSource->readAt(offset, mCache, kCacheSize); in readAt() local
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_flowgraph.cpp51 int32_t numRead = sinkI16.read(output, numOutputFrames); in TEST() local
52 ASSERT_EQ(numInputFrames, numRead); in TEST()
53 for (int i = 0; i < numRead; i++) { in TEST()
70 int32_t numRead = sinkFloat.read(output, 8); in TEST() local
71 ASSERT_EQ(3, numRead); in TEST()
94 int32_t numRead = sinkFloat.read(output, numOutput); in TEST() local
95 ASSERT_EQ(numOutput, numRead); in TEST()
123 int32_t numRead = sinkI24.read(output, sizeof(output) / kBytesPerI24Packed); in TEST() local
124 ASSERT_EQ(numInputFrames, numRead); in TEST()
151 int32_t numRead = sinkFloat.read(output, numOutputFrames); in TEST() local
[all …]
/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.java111 int numRead = 0; in testString1Authenticate_ReadSingleByte_Success() local
113 numRead++; in testString1Authenticate_ReadSingleByte_Success()
115 if (numRead > TEST_STRING_1.length) { in testString1Authenticate_ReadSingleByte_Success()
119 assertEquals(TEST_STRING_1.length, numRead); in testString1Authenticate_ReadSingleByte_Success()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallInstalling.java356 int numRead = in.read(buffer); in doInBackground() local
358 if (numRead == -1) { in doInBackground()
368 out.write(buffer, 0, numRead); in doInBackground()
370 float fraction = ((float) numRead / (float) sizeBytes); 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.java385 int numRead = input.read(buffer); in copyAndHashResource() local
386 if (numRead < 0) { in copyAndHashResource()
389 output.write(buffer, 0, numRead); in copyAndHashResource()
390 hasher.update(buffer, 0, numRead); in copyAndHashResource()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptor.java205 int numRead = stream.getReadCount(); in parseRawDescriptors() local
206 int dataLen = mLength - numRead; in parseRawDescriptors()
/frameworks/base/telecomm/java/android/telecom/
DCall.java1468 int numRead = mReceiveStream.read(mReadBuffer, 0, READ_BUFFER_SIZE); in read() local
1469 if (numRead < 0) { in read()
1472 return new String(mReadBuffer, 0, numRead); in read()
1487 int numRead = mReceiveStream.read(mReadBuffer, 0, READ_BUFFER_SIZE); in readImmediately() local
1488 if (numRead < 0) { in readImmediately()
1491 return new String(mReadBuffer, 0, numRead); in readImmediately()
DConnection.java1168 int numRead = mPipeFromInCall.read(mReadBuffer, 0, READ_BUFFER_SIZE); in read() local
1169 if (numRead < 0) { in read()
1172 return new String(mReadBuffer, 0, numRead); in read()
/frameworks/base/core/java/android/content/
DClipData.java1236 int numRead; in readHtmlTextFromParcel() local
1238 while ((numRead = reader.read(buffer)) != -1) { in readHtmlTextFromParcel()
1239 builder.append(buffer, 0, numRead); in readHtmlTextFromParcel()
/frameworks/base/core/java/android/permission/
DPermissionControllerManager.java584 int numRead = in.read(buffer); in doInBackground() local
585 if (numRead == -1) { in doInBackground()
589 combinedBuffer.write(buffer, 0, numRead); in doInBackground()