Home
last modified time | relevance | path

Searched refs:samplesRead (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DMediaSyncEventTest.java165 int samplesRead = 0; in testSynchronizedRecord() local
169 while (samplesRead < targetSamples) { in testSynchronizedRecord()
172 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord()
173 Math.min(BUFFER_SAMPLES, targetSamples - samplesRead); in testSynchronizedRecord()
176 if (samplesRead == 0 && ret > 0) { in testSynchronizedRecord()
180 samplesRead += ret; in testSynchronizedRecord()
DAudioRecordSharedAudioTest.java194 int samplesRead = record1.read(buffer1, 0, RECORD1_NUM_SAMPLES); in testCapturesMatch() local
195 assertTrue(samplesRead >= RECORD1_NUM_SAMPLES); in testCapturesMatch()
219 samplesRead = record2.read(buffer2, 0, RECORD2_NUM_SAMPLES); in testCapturesMatch()
220 assertTrue(samplesRead >= RECORD2_NUM_SAMPLES); in testCapturesMatch()
DAudioRecordTest.java724 int samplesRead = 0; in testTimestamp() local
731 while (samplesRead < targetSamples) { in testTimestamp()
732 final int amount = samplesRead == 0 ? numChannels : in testTimestamp()
733 Math.min(BUFFER_SAMPLES, targetSamples - samplesRead); in testTimestamp()
745 samplesRead += ret; in testTimestamp()
1180 int samplesRead = 0; in doTest() local
1230 while (samplesRead < targetSamples) { in doTest()
1233 final int amount = samplesRead == 0 ? numChannels : in doTest()
1234 Math.min(BUFFER_SAMPLES, targetSamples - samplesRead); in doTest()
1245 if (samplesRead == 0 && ret > 0) { in doTest()
[all …]