Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java160 int numRead = is.read(buffer32); in onAttached() local
161 assertEquals(32, numRead); in onAttached()
169 numRead = is.read(buffer16); in onAttached()
170 assertEquals(16, numRead); in onAttached()
182 numRead = is.read(buffer32); in onAttached()
183 assertEquals(32, numRead); in onAttached()
194 numRead = is.read(buffer32); in onAttached()
195 assertEquals(16, numRead); in onAttached()
199 numRead = is.read(buffer32); in onAttached()
200 assertEquals(16, numRead); in onAttached()
[all …]
/cts/tests/tests/media/src/android/media/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()
DTestMediaDataSource.java51 int numRead = 0; in fromAssetFd() local
53 numRead = in.read(data, writeIndex, size - writeIndex); in fromAssetFd()
54 writeIndex += numRead; in fromAssetFd()
55 } while (numRead >= 0); in fromAssetFd()
120 public void returnFromReadAt(int numRead) { in returnFromReadAt() argument
121 mReturnFromReadAt = numRead; in returnFromReadAt()
DMediaCodecTest.java2300 int numRead = 0; in read() local
2303 numRead = mExtractor.readSampleData(buf, 0 /* offset */); in read()
2306 + numRead +" timestamp " + timestampUs); in read()
2308 if(numRead < 0) { in read()
2311 numRead =0; in read()
2322 numRead += n; in read()
2329 for (numRead = 0; numRead < inBufLen; ) { in read()
2330 int n = mInputStream.read(mBuf, numRead, inBufLen - numRead); in read()
2335 numRead += n; in read()
2337 buf.put(mBuf, 0, numRead); in read()
[all …]
/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/provider/src/android/provider/cts/contacts/
DCallLogTest.java216 int numRead; in readBytes() local
218 numRead = inputStream.read(buffer); in readBytes()
219 if (numRead > 0) output.write(buffer, 0, numRead); in readBytes()
220 } while (numRead > 0); in readBytes()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCallComposerTest.java228 int numRead; in readBytes() local
230 numRead = inputStream.read(buffer); in readBytes()
231 if (numRead > 0) output.write(buffer, 0, numRead); in readBytes()
232 } 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/pdf/src/android/graphics/pdf/cts/
DUtils.java83 int numRead = is.read(buffer, 0, buffer.length); in createRenderer() local
85 if (numRead == -1) { in createRenderer()
89 os.write(Arrays.copyOf(buffer, numRead)); in createRenderer()
/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/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java158 final int numRead = in.read(buffer); in executeShellCommand() local
159 if (numRead <= 0) { in executeShellCommand()
162 sb.append(new String(buffer, 0, numRead)); in executeShellCommand()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioTap2ToneActivity.java373 int numRead = mInputBuffer.readMostRecent(buffer); in analyzeCapturedAudio() local
378 result.events = mTapLatencyAnalyser.analyze(buffer, 0, numRead); in analyzeCapturedAudio()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1118 int numRead; in convertDmToFl() local
1121 numRead = dmStream.read(dmData, totalRead, dmData.length - totalRead); in convertDmToFl()
1126 if (numRead == -1) { in convertDmToFl()
1129 totalRead += numRead; in convertDmToFl()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java777 int numRead = fis.read(blob); in testStagefright_bug_36592202() local
2743 int numRead = fis.read(blob); in doStagefrightTestRawBlob() local
2792 inputBuffers[bufidx].put(blob, 0, numRead); in doStagefrightTestRawBlob()
2793 codec.queueInputBuffer(bufidx, 0, numRead, 0, 0); in doStagefrightTestRawBlob()
2874 int numRead = fis.read(blob); in doStagefrightTestRawBlob() local
3019 int numRead = fis.read(blob); in doStagefrightTestRawBlob() local