Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/net/src/android/net/ipv6/cts/
DPingTest.java114 int bytesRead; in checkResponse() local
119 bytesRead = Os.recvfrom(s, responseBuffer, 0, from); in checkResponse()
128 bytesRead = Os.read(s, responseBuffer); in checkResponse()
132 assertEquals(sent.length, bytesRead); in checkResponse()
135 byte[] response = new byte[bytesRead]; in checkResponse()
137 responseBuffer.get(response, 0, bytesRead); in checkResponse()
149 assertArrayBytesEqual(response, sent, bytesRead); in checkResponse()
/cts/tests/tests/net/src/android/net/http/cts/
DApacheHttpClientTest.java86 int bytesRead = stream.read(buffer); in assertDownloadResponse() local
87 if (bytesRead < 0) { in assertDownloadResponse()
90 numBytes += bytesRead; in assertDownloadResponse()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFileUtils.java117 int bytesRead; in copyToFile() local
118 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()
119 out.write(buffer, 0, bytesRead); in copyToFile()
DSystemUtil.java77 int bytesRead; in runShellCommand() local
80 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
81 stdout.append(new String(buf, 0, bytesRead)); in runShellCommand()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileUtils.java117 int bytesRead; in copyToFile() local
118 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()
119 out.write(buffer, 0, bytesRead); in copyToFile()
DSystemUtil.java91 int bytesRead; in runShellCommand() local
94 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
95 stdout.append(new String(buf, 0, bytesRead)); in runShellCommand()
/cts/tests/tests/net/src/android/net/cts/
DTunUtils.java92 int bytesRead = in.read(inBytes); in receiveFromTun() local
94 if (bytesRead < 0) { in receiveFromTun()
96 } else if (bytesRead >= DATA_BUFFER_LEN) { in receiveFromTun()
99 return Arrays.copyOf(inBytes, bytesRead); in receiveFromTun()
DIpSecBaseTest.java146 AtomicInteger bytesRead = new AtomicInteger(-1); in receive() local
150 … while (bytesRead.get() < 0 && System.currentTimeMillis() < startTime + SOCK_TIMEOUT) { in receive()
152 bytesRead.set(Os.recvfrom(mFd, in, 0, DATA_BUFFER_LEN, 0, null)); in receive()
162 if (bytesRead.get() < 0) { in receive()
166 return Arrays.copyOfRange(in, 0, bytesRead.get()); in receive()
294 int bytesRead = mSocket.getInputStream().read(in); in receive() local
295 return Arrays.copyOfRange(in, 0, bytesRead); in receive()
DLocalSocketTest.java372 private int bytesRead; field in LocalSocketTest.StreamReader
385 bytesRead += readCount; in run()
386 if (bytesRead >= expectedByteCount) { in run()
407 assertEquals(expected, bytesRead); in assertBytesRead()
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DTunUtils.java100 int bytesRead = in.read(inBytes); in receiveFromTun() local
102 if (bytesRead < 0) { in receiveFromTun()
104 } else if (bytesRead >= DATA_BUFFER_LEN) { in receiveFromTun()
107 return Arrays.copyOf(inBytes, bytesRead); in receiveFromTun()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java189 int bytesRead; in getTotalBytes() local
190 while ((bytesRead = in.read(buf)) != -1) { in getTotalBytes()
191 total += bytesRead; in getTotalBytes()
295 int bytesRead; in readFromInputStream() local
296 while ((bytesRead = inputStream.read(buf)) != -1) { in readFromInputStream()
297 res.append(new String(buf, 0, bytesRead)); in readFromInputStream()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java226 long bytesRead = 0; in onAttached() local
228 while (bytesRead < TEST_DATA_SIZE_THRESHOLD) { in onAttached()
230 bytesRead += numRead; in onAttached()
233 speedKBPS = (bytesRead * 8 * 1000. / 1024.) in onAttached()
/cts/tests/tests/print/src/android/print/cts/
DPrintDocumentInfoTest.java186 long bytesRead = 0; in printDocumentBaseTest() local
193 bytesRead++; in printDocumentBaseTest()
196 assertEquals(queuedInfo[0].getDataSize(), bytesRead); in printDocumentBaseTest()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAccessoryTestCompanion.java171 long bytesRead = 0; in runTest() local
172 while (bytesRead < TEST_DATA_SIZE_THRESHOLD) { in runTest()
175 bytesRead += numTransferred; in runTest()
/cts/tests/tests/os/src/android/os/cts/
DSeccompTest.java438 int bytesRead = policyStream.read(buffer); in installTestFilter() local
439 if (bytesRead == -1) in installTestFilter()
444 for (int i = 0; i < bytesRead; i++) { in installTestFilter()
/cts/tests/tests/keystore/src/android/server/am/
DActivityManagerState.java130 int bytesRead; in executeShellCommand() local
133 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
134 stdout.write(buf, 0, bytesRead); in executeShellCommand()
DWindowManagerState.java128 int bytesRead; in executeShellCommand() local
131 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
132 stdout.write(buf, 0, bytesRead); in executeShellCommand()
/cts/tests/tests/media/src/android/media/cts/
DVpxCodecTestBase.java483 int bytesRead = srcStream.read(srcFrame); in cacheScaledImage() local
484 if (bytesRead != srcFrame.length) { in cacheScaledImage()
779 int bytesRead = mYuvStream.read(mSrcFrame); in getInputFrame() local
781 if (bytesRead == -1) { in getInputFrame()
786 bytesRead = mYuvStream.read(mSrcFrame); in getInputFrame()
1368 int bytesRead = yuvStream.read(srcFrame); in encode() local
1376 if (!sawInputEOS && bytesRead == -1) { in encode()
1384 bytesRead = yuvStream.read(srcFrame); in encode()
1673 int bytesRead = yuvStream[i].read(srcFrame[i]); in encodeSimulcast() local
1682 if (!sawInputEOS[i] && bytesRead == -1) { in encodeSimulcast()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java149 int bytesRead = streamIn.read(buffer, total, in run() local
151 if (bytesRead > 0) { in run()
152 total += bytesRead; in run()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DActivityManagerGetConfigTests.java86 int bytesRead; in executeShellCommand() local
89 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
90 stdout.write(buf, 0, bytesRead); in executeShellCommand()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java157 int bytesRead; in copyToFileOrThrow() local
158 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFileOrThrow()
159 out.write(buffer, 0, bytesRead); in copyToFileOrThrow()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_DownloadsTest.java213 int bytesRead; in testInsertDownload() local
214 while ((bytesRead = in.read(buf)) != -1) { in testInsertDownload()
215 actual.write(buf, 0, bytesRead); in testInsertDownload()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java376 int bytesRead = 0, totalRead = 0; in writeAndCheckData() local
378 bytesRead = in.read(read, totalRead, read.length - totalRead); in writeAndCheckData()
379 totalRead += bytesRead; in writeAndCheckData()
380 } while (bytesRead >= 0 && totalRead < data.length); in writeAndCheckData()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerState.java143 int bytesRead; in executeShellCommand() local
146 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
147 stdout.write(buf, 0, bytesRead); in executeShellCommand()
DWindowManagerState.java173 int bytesRead; in executeShellCommand() local
176 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
177 stdout.write(buf, 0, bytesRead); in executeShellCommand()

12