Home
last modified time | relevance | path

Searched refs:bytesPerSample (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java555 final int bytesPerSample = AudioFormat.getBytesPerSample(RECORD_ENCODING); in testTimestamp() local
556 final int bytesPerFrame = numChannels * bytesPerSample; in testTimestamp()
777 final int bytesPerSample = AudioFormat.getBytesPerSample(RECORD_ENCODING); in testSynchronizedRecord() local
778 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord()
1163 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest() local
1164 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
1176 ByteBuffer.allocateDirect(BUFFER_SAMPLES * bytesPerSample); in doTest()
1182 amount *= bytesPerSample; // in bytes in doTest()
1207 samplesRead += ret / bytesPerSample; in doTest()
DAudioTrack_ListenerTest.java157 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest() local
158 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
DAudioTrackLatencyTest.java126 public int bytesPerSample = 2; field in AudioTrackLatencyTest.TestSetup
151 int smallBuffSizeInFrames = smallBufferSize / (samplesPerFrame * bytesPerSample); in createTrack()
DAudioTrackTest.java2245 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in testVariableRatePlayback() local
2246 final int bytesPerFrame = numChannels * bytesPerSample; in testVariableRatePlayback()
2312 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in testStopDrain() local
2313 final int bytesPerFrame = channelCount * bytesPerSample; in testStopDrain()