/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/ |
D | AudioHelper.java | 88 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/ |
D | poc.cpp | 78 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/ |
D | ApacheHttpClientTest.java | 86 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/ |
D | FileUtils.java | 127 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/ |
D | BaseTileServiceTest.java | 180 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/ |
D | MainHotwordDetectionService.java | 322 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/ |
D | MainActivity.java | 381 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/ |
D | UsbAccessoryTestActivity.java | 256 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/ |
D | PrintDocumentInfoTest.java | 186 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/ |
D | DownloadManagerTestBase.java | 208 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()
|
D | ServiceTest.java | 443 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/ |
D | Utils.java | 138 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/ |
D | AccessoryTestCompanion.java | 171 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/ |
D | SeccompTest.java | 438 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/ |
D | LocalSocketTest.java | 482 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/ |
D | android_neuralnetworks_cts_ModelAssetTest.cpp | 138 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/ |
D | ActivityManagerGetConfigTests.java | 86 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/ |
D | PowerTestHostLink.java | 149 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/ |
D | TriggerContentTest.java | 155 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/ |
D | VideoCodecTestBase.java | 549 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/ |
D | MediaStore_DownloadsTest.java | 222 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/ |
D | MediaExtractorTest.java | 739 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/ |
D | CtsContentCaptureService.java | 379 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/ |
D | AnimatedImageDrawableTest.java | 781 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/ |
D | ImageDecoderTest.java | 145 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()
|