Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 39) sorted by relevance

12

/platform_testing/libraries/audio-test-harness/client-lib/src/main/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioCaptureStream.java135 public int read(byte[] b) throws IOException { in read() method in GrpcAudioCaptureStream
141 return mInputStream.read(b); in read()
159 public int read(byte[] b, int off, int len) throws IOException { in read() method in GrpcAudioCaptureStream
165 return mInputStream.read(b, off, len); in read()
222 public int read() throws IOException { in read() method in GrpcAudioCaptureStream
228 return mInputStream.read(); in read()
235 public int read(short[] samples, int offset, int len) throws IOException { in read() method in GrpcAudioCaptureStream
261 int read = 0; in read() local
263 read += read(buffer, read, buffer.length - read); in read()
264 } while (read % (BYTES_PER_SAMPLE_16BIT * getAudioFormat().getChannels()) != 0); in read()
[all …]
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DStreamUtil.java46 while ((size = inStream.read(buf)) != -1) { in copyStreams()
60 while ((length = inputStream.read(buffer)) != -1) { in readInputStream()
68 while (reader.read() >= 0) {} in drainAndClose()
DResultUploader.java66 while ((count = input.read(buffer)) > 0) { in getBytes()
/platform_testing/libraries/audio-test-harness/client-lib/src/test/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioCaptureStreamTests.java152 int numBytesRead = grpcAudioCaptureStream.read(readBytes);
165 grpcAudioCaptureStream.read();
176 grpcAudioCaptureStream.read(new byte[AudioTestHarnessTestImpl.MESSAGE.length]);
187 grpcAudioCaptureStream.read(
196 grpcAudioCaptureStream.read(new byte[AudioTestHarnessTestImpl.MESSAGE.length]);
211 grpcAudioCaptureStream.read(actual, /* offset= */ 0, /* max= */ actual.length);
221 grpcAudioCaptureStream.read(/* samples= */ new short[4], /* offset= */ -25, /* max= */ 1);
228 grpcAudioCaptureStream.read(/* samples= */ new short[4], /* offset= */ 25, /* max= */ 1);
235 grpcAudioCaptureStream.read(/* samples= */ new short[4], /* offset= */ 0, /* max= */ -24);
242 grpcAudioCaptureStream.read(/* samples= */ new short[4], /* offset= */ 0, /* max= */ 24);
[all …]
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioCapturer.java203 int read; in run() local
211 read = in run()
212 mTargetDataLine.read( in run()
215 String.format("Successfully read %d bytes from mTargetDataLine", read)); in run()
223 output.write(mAudioBuffer, 0, read); in run()
/platform_testing/libraries/metrics-helper/src/android/support/test/metricshelper/
DMetricsAsserts.java39 reader.read(0); in assertHasActionLog()
57 reader.read(0); in assertHasVisibilityLog()
76 reader.read(0); in findMatchingLogs()
101 reader.read(0); in assertHasLog()
/platform_testing/libraries/audio-test-harness/client-lib/src/main/java/com/android/media/audiotestharness/client/core/
DAudioCaptureStream.java44 public abstract int read(short[] samples, int offset, int len) throws IOException; in read() method in AudioCaptureStream
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DRootcanalUtils.java375 assertEquals(READ_FAIL_MSG, 1, in.read(typeBuf, 0, 1)); in readHciPacket()
386 assertEquals(READ_FAIL_MSG, 3, in.read(hdrBuf, 0, 3)); in readHciPacket()
392 assertEquals(READ_FAIL_MSG, 4, in.read(hdrBuf, 0, 4)); in readHciPacket()
398 assertEquals(READ_FAIL_MSG, 2, in.read(hdrBuf, 0, 2)); in readHciPacket()
404 assertEquals(READ_FAIL_MSG, 4, in.read(hdrBuf, 0, 4)); in readHciPacket()
415 assertEquals(READ_FAIL_MSG, dataLength, in.read(data, 0, dataLength)); in readHciPacket()
491 in.read(sizeBuf.array(), 0, Integer.BYTES); in readTestChannel()
495 in.read(buf, 0, size); in readTestChannel()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DArtifactBuilder.kt117 var count: Int = it.read(data, 0, BUFFER_SIZE) in <lambda>()
120 count = it.read(data, 0, BUFFER_SIZE) in <lambda>()
DFileArtifact.kt121 var size = it.read(tmpBuffer, 0, BUFFER_SIZE) in readBytes()
124 size = it.read(tmpBuffer, 0, BUFFER_SIZE) in readBytes()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java132 while ((length = is.read(buf)) >= 0) { in executeCommandBlocking()
154 while (stream.read(buffer) != -1) { in readStringFromFile()
/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/
DScreenRecorderTest.kt135 override fun read(buffer: ByteArray, offset: Int, readLength: Int): Int { in read() method in android.tools.monitors.ScreenRecorderTest.ScreenRecorderSeekableInputReader
216 val actualLength = inputReader.read(auxBuffer, 0, requestLength.toInt()) in processSampleData()
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DReadElfTest.java111 ReadElf elf = ReadElf.read(targetFile); in checkReadElf()
284 while ((length = input.read(buffer)) > 0) { in getResrouceFile()
/platform_testing/libraries/motion/golden_updater/
Dwatch_local_tests.py204 message = json.loads(self.rfile.read(length))
243 self.wfile.write(f.read())
407 golden.checksum = hashlib.md5(open(local_file, "rb").read()).hexdigest()
420 open(local_actual_image, "rb").read()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioCapturerTests.java126 when(mTargetDataLine.read(any(), anyInt(), anyInt())) in attachOutput_attachesOutputSuccessfully_outputStream()
167 when(mTargetDataLine.read(any(), anyInt(), anyInt())) in attachOutput_attachesOutputSuccessfully_file()
/platform_testing/libraries/audio-test-harness/instrumentation/src/com/android/media/audiotestharness/instrumentation/
DAudioTestHarnessCaptureTest.java91 audioCaptureStream.read( in testPlayAudioFile_outputsAudio()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/
DAndroid.bp31 * assets/statsd-configs/ directory in the package, which can then be read with asset manager
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DFilesystemUtil.java137 bytesRead = in.read(buffer); in pipe()
/platform_testing/tools/automotive/proxy/
Dproxy.cpp67 int readBytes = read(src_fd, buf, BUFFER_SIZE); in transferBytes()
/platform_testing/libraries/health/runners/longevity/platform/samples/
DAndroid.bp35 * directory in the package, which can then be read with asset manager.
/platform_testing/libraries/health/runners/longevity/platform/tests/
DAndroid.bp35 * directory in the package, which can then be read with asset manager.
/platform_testing/host_runners/utils/src/com/android/runner/utils/
DInstrumentationResultProtoParser.java91 fis.read(bytesArray); in processProtoFile()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DOatDumpCollector.java114 while ((length = oatDumpInputStream.read(buffer)) > 0) { in collectOatDumpAndMetrics()
DBatteryStatsListener.java190 while((bytes = is.read(buf)) != -1) { in dumpBatteryStats()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java89 input.read(readBuffer); in calibrateMethod()

12