Home
last modified time | relevance | path

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

12

/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DAudioHelper.java88 int bytesRead = audioRecord.read(byteBuffer, BUFFER_SIZE_IN_BYTES); in CapturedAudio() local
89 if (bytesRead == 0 || isAllZero(byteBuffer)) { in CapturedAudio()
103 int bytesRead; in CapturedAudio() local
105 bytesRead = audioCapture.read(byteBuffer, BUFFER_SIZE_IN_BYTES, readMode); in CapturedAudio()
107 bytesRead = audioCapture.read(byteBuffer, BUFFER_SIZE_IN_BYTES); in CapturedAudio()
109 if (bytesRead == 0 || isAllZero(byteBuffer)) { in CapturedAudio()
119 int bytesRead; in CapturedAudio() local
121 bytesRead = audioCapture.read(audioData, 0, audioData.length, readMode); in CapturedAudio()
123 bytesRead = audioCapture.read(audioData, 0, audioData.length); in CapturedAudio()
125 if (bytesRead == 0) { in CapturedAudio()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0470/
Dpoc.cpp78 ssize_t bytesRead = 0; in main() local
82 bytesRead = fread(buf, 1, FILE_SIZE, inFile); in main()
86 if (bytesRead <= 0) { in main()
87 bytesRead = 0; in main()
91 status = AMediaCodec_queueInputBuffer(codec, inIdx, 0, bytesRead, 0, bufferFlags); in main()
/cts/tests/tests/apache-http/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-axt/src/com/android/compatibility/common/util/
DFileUtils.java127 int bytesRead; in copyToFile() local
128 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()
129 out.write(buffer, 0, bytesRead); in copyToFile()
/cts/tests/quicksettings/src/android/quicksettings/cts/
DBaseTileServiceTest.java180 int bytesRead; in getProtoDump() local
183 while ((bytesRead = fis.read(buf)) != -1) { in getProtoDump()
184 stdout.write(buf, 0, bytesRead); in getProtoDump()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java322 int bytesRead = in canReadAudio() local
324 if (bytesRead < 0) { in canReadAudio()
325 Log.e(TAG, "Error reading from mic: " + bytesRead); in canReadAudio()
328 numBytes += bytesRead; in canReadAudio()
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DMainActivity.java381 int bytesRead = audioRecord.read(audioData, 0, audioData.length); in recordAudioToByteArray()
382 if (bytesRead == 0) { in recordAudioToByteArray()
408 int bytesRead = audioRecord.read(audioData, 0, audioData.length); in recordAudioToShortArray()
409 if (bytesRead == 0) { in recordAudioToShortArray()
435 int bytesRead = audioRecord.read(audioData, 0, audioData.length, READ_BLOCKING); in recordAudioToFloatArray()
436 if (bytesRead == 0) { in recordAudioToFloatArray()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java256 long bytesRead = 0; in onAttached() local
258 while (bytesRead < TEST_DATA_SIZE_THRESHOLD) { in onAttached()
260 bytesRead += numRead; in onAttached()
263 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/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java208 int bytesRead; in getTotalBytes() local
209 while ((bytesRead = in.read(buf)) != -1) { in getTotalBytes()
210 total += bytesRead; in getTotalBytes()
332 int bytesRead; in readFromInputStream() local
333 while ((bytesRead = inputStream.read(buf)) != -1) { in readFromInputStream()
334 res.append(new String(buf, 0, bytesRead)); in readFromInputStream()
DServiceTest.java443 int bytesRead; in executeShellCommand() local
446 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
447 stdout.write(buf, 0, bytesRead); in executeShellCommand()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DUtils.java138 int bytesRead; in executeShellCommand() local
141 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
142 stdout.write(buf, 0, bytesRead); in executeShellCommand()
/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/net/src/android/net/cts/
DLocalSocketTest.java482 private int bytesRead; field in LocalSocketTest.StreamReader
495 bytesRead += readCount; in run()
496 if (bytesRead >= expectedByteCount) { in run()
517 assertEquals(expected, bytesRead); in assertBytesRead()
/cts/tests/tests/neuralnetworks/java_test/jni/
Dandroid_neuralnetworks_cts_ModelAssetTest.cpp138 int bytesRead = AAsset_read(asset, ashmemData, length); in createMemoryFromAshmem() local
140 ASSERT_OR_RETURN_NULL(bytesRead == length); in createMemoryFromAshmem()
/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/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/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java155 int bytesRead; in copyToFileOrThrow() local
156 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFileOrThrow()
157 out.write(buffer, 0, bytesRead); in copyToFileOrThrow()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTestBase.java549 int bytesRead = srcStream.read(srcFrame); in cacheScaledImage() local
550 if (bytesRead != srcFrame.length) { in cacheScaledImage()
858 int bytesRead = mYuvStream.read(mSrcFrame); in getInputFrame() local
860 if (bytesRead == -1) { in getInputFrame()
865 bytesRead = mYuvStream.read(mSrcFrame); in getInputFrame()
1500 int bytesRead = yuvStream.read(srcFrame); in encode() local
1508 if (!sawInputEOS && bytesRead == -1) { in encode()
1516 bytesRead = yuvStream.read(srcFrame); in encode()
1815 int bytesRead = yuvStream[i].read(srcFrame[i]); in encodeSimulcast() local
1824 if (!sawInputEOS[i] && bytesRead == -1) { in encodeSimulcast()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_DownloadsTest.java222 int bytesRead; in testInsertDownload() local
223 while ((bytesRead = in.read(buf)) != -1) { in testInsertDownload()
224 actual.write(buf, 0, bytesRead); in testInsertDownload()
/cts/tests/tests/media/extractor/src/android/media/extractor/cts/
DMediaExtractorTest.java739 int [] bytesRead = new int[2]; in testProgramStreamExtraction() local
795 bytesRead[trackIdx] += n; in testProgramStreamExtraction()
809 assertTrue("did not read from track 0", bytesRead[0] > 0); in testProgramStreamExtraction()
810 assertTrue("did not read from track 1", bytesRead[1] > 0); in testProgramStreamExtraction()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCtsContentCaptureService.java379 int bytesRead = fis.read(mDataShared, bytesReadTotal, in onDataShareRequest()
381 if (bytesRead == -1) { in onDataShareRequest()
384 bytesReadTotal += bytesRead; in onDataShareRequest()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java781 int bytesRead; in getAsByteArray() local
782 while ((bytesRead = in.read(buf)) != -1) { in getAsByteArray()
783 outputStream.write(buf, 0, bytesRead); in getAsByteArray()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java145 int bytesRead; in writeToStream() local
151 while ((bytesRead = input.read(buffer)) != -1) { in writeToStream()
152 output.write(buffer, 0, bytesRead); in writeToStream()
1003 final int bytesRead = mInputStream.read(b, off, len); in read() local
1004 mPosition += bytesRead; in read()
1005 return bytesRead; in read()

12