Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java178 int numRead = is.read(buffer32); in onAttached() local
179 assertEquals(32, numRead); in onAttached()
187 numRead = is.read(buffer16); in onAttached()
188 assertEquals(16, numRead); in onAttached()
200 numRead = is.read(buffer32); in onAttached()
201 assertEquals(32, numRead); in onAttached()
212 numRead = is.read(buffer32); in onAttached()
213 assertEquals(16, numRead); in onAttached()
217 numRead = is.read(buffer32); in onAttached()
218 assertEquals(16, numRead); in onAttached()
[all …]
/cts/tests/tests/media/common/src/android/media/cts/
DTestMediaDataSource.java49 int numRead = 0; in fromAssetFd() local
51 numRead = in.read(data, writeIndex, size - writeIndex); in fromAssetFd()
52 writeIndex += numRead; in fromAssetFd()
53 } while (numRead >= 0); in fromAssetFd()
118 public void returnFromReadAt(int numRead) { in returnFromReadAt() argument
119 mReturnFromReadAt = numRead; in returnFromReadAt()
DStreamUtils.java128 int numRead = 0; in read() local
131 numRead = mExtractor.readSampleData(buf, 0 /* offset */); in read()
134 + numRead +" timestamp " + timestampUs); in read()
136 if(numRead < 0) { in read()
139 numRead =0; in read()
150 numRead += n; in read()
157 for (numRead = 0; numRead < inBufLen; ) { in read()
158 int n = mInputStream.read(mBuf, numRead, inBufLen - numRead); in read()
163 numRead += n; in read()
165 buf.put(mBuf, 0, numRead); in read()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DTestProxyFileDescriptorCallback.java52 int numRead = 0; in fromAssetFd() local
54 numRead = in.read(data, writeIndex, size - writeIndex); in fromAssetFd()
55 writeIndex += numRead; in fromAssetFd()
56 } while (numRead >= 0); in fromAssetFd()
119 public void returnFromReadAt(int numRead) { in returnFromReadAt() argument
120 mReturnFromReadAt = numRead; in returnFromReadAt()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DDeviceTestCompanion.java63 int numRead = is.read(sizeBuffer); in nextTest() local
64 assertEquals(1, numRead); in nextTest()
67 numRead = is.read(nextTestNameBytes); in nextTest()
68 assertEquals(sizeBuffer[0], numRead); in nextTest()
74 numRead = is.read(sizeBuffer); in nextTest()
76 assertEquals(1, numRead); in nextTest()
125 int numRead = is.read(dataBytes); in echoUntilStopSignal() local
126 assertEquals(9, numRead); in echoUntilStopSignal()
/cts/hostsidetests/calllog/app/src/android/provider/cts/contacts/testapp/
DCallLogDirectBootTest.java125 int numRead; in readBytes() local
127 numRead = inputStream.read(buffer); in readBytes()
128 if (numRead > 0) output.write(buffer, 0, numRead); in readBytes()
129 } while (numRead > 0); in readBytes()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java181 int numRead = is.read(buffer); in getProtoDump() local
183 if (numRead == -1) { in getProtoDump()
186 os.write(buffer, 0, numRead); in getProtoDump()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DBootClassPathClassesProvider.java113 int numRead = is.read(buffer); in copyAgentToFile() local
114 if (numRead == -1) { in copyAgentToFile()
117 os.write(buffer, 0, numRead); in copyAgentToFile()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCallComposerTest.java248 int numRead; in readBytes() local
250 numRead = inputStream.read(buffer); in readBytes()
251 if (numRead > 0) output.write(buffer, 0, numRead); in readBytes()
252 } while (numRead > 0); in readBytes()
/cts/tests/tests/jvmti/attaching/src/android.jvmti.attaching.cts/
DAttachingTest.java164 int numRead = is.read(buffer); in copyAgentToFile() local
165 if (numRead == -1) { in copyAgentToFile()
168 os.write(buffer, 0, numRead); in copyAgentToFile()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DCallLogTest.java510 int numRead; in readBytes() local
512 numRead = inputStream.read(buffer); in readBytes()
513 if (numRead > 0) output.write(buffer, 0, numRead); in readBytes()
514 } while (numRead > 0); in readBytes()
/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustAndVerify.java208 int numRead = in.read(buffer); in adjustPageRangeAndVerifyPages()
210 if (numRead == -1) { in adjustPageRangeAndVerifyPages()
214 out.write(buffer, 0, numRead); in adjustPageRangeAndVerifyPages()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioTap2ToneActivity.java464 int numRead = mInputBuffer.readMostRecent(buffer); in analyzeCapturedAudio() local
469 result.events = mTapLatencyAnalyzer.analyze(buffer, 0, numRead); in analyzeCapturedAudio()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java202 final int numRead = in.read(buffer); in executeShellCommand() local
203 if (numRead <= 0) { in executeShellCommand()
206 sb.append(new String(buffer, 0, numRead)); in executeShellCommand()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1144 int numRead; in convertDmToFl() local
1147 numRead = dmStream.read(dmData, totalRead, dmData.length - totalRead); in convertDmToFl()
1152 if (numRead == -1) { in convertDmToFl()
1155 totalRead += numRead; in convertDmToFl()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java765 int numRead = fis.read(blob); in testStagefright_bug_36592202() local
2828 int numRead = fis.read(blob); in doStagefrightTestRawBlob() local
2887 inputBuffers[bufidx].put(blob, 0, numRead); in doStagefrightTestRawBlob()
2888 codec.queueInputBuffer(bufidx, 0, numRead, 0, 0); in doStagefrightTestRawBlob()
2969 int numRead = fis.read(blob); in doStagefrightTestRawBlob() local
3124 int numRead = fis.read(blob); in doStagefrightTestRawBlob() local