Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMediaSyncEventTest.java127 final int bytesPerSample = AudioFormat.getBytesPerSample(RECORD_ENCODING); in testSynchronizedRecord() local
128 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord()
DAudioTrack_ListenerTest.java158 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest() local
159 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
DAudioRecordTest.java608 final int bytesPerSample = AudioFormat.getBytesPerSample(RECORD_ENCODING); in testTimestamp() local
609 final int bytesPerFrame = numChannels * bytesPerSample; in testTimestamp()
1111 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in doTest() local
1112 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
1124 ByteBuffer.allocateDirect(BUFFER_SAMPLES * bytesPerSample); in doTest()
1130 amount *= bytesPerSample; // in bytes in doTest()
1155 samplesRead += ret / bytesPerSample; in doTest()
DAudioTrackLatencyTest.java127 public int bytesPerSample = 2; field in AudioTrackLatencyTest.TestSetup
152 int smallBuffSizeInFrames = smallBufferSize / (samplesPerFrame * bytesPerSample); in createTrack()
DAudioTrackTest.java2263 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in testVariableRatePlayback() local
2264 final int bytesPerFrame = numChannels * bytesPerSample; in testVariableRatePlayback()
2330 final int bytesPerSample = AudioFormat.getBytesPerSample(TEST_FORMAT); in testStopDrain() local
2331 final int bytesPerFrame = channelCount * bytesPerSample; in testStopDrain()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java277 int bytesPerSample = 2; // for ENCODING_PCM_16BIT in canReadAudio() local
279 int bytesPerSecond = bytesPerSample * sampleRate; // for single channel in canReadAudio()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java124 int bytesPerSample = getBytesPerSample(mInputAudioFormat); in run() local
138 (float)(mInputSampleRate * bytesPerSample * in run()
195 mAudioShortArray.length; i += bytesPerSample) { in run()