Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DRoutingTest.java108 AudioTrack audioTrack = in allocAudioTrack() local
116 return audioTrack; in allocAudioTrack()
125 AudioTrack audioTrack = allocAudioTrack(); in test_audioTrack_preferredDevice() local
126 assertNotNull(audioTrack); in test_audioTrack_preferredDevice()
129 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice()
132 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice()
141 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice()
142 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice()
146 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice()
147 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice()
[all …]
DAudioTrackTest.java2604 AudioTrack audioTrack = new AudioTrack.Builder() in testAc3BuilderNoBufferSize() local
2608 audioTrack.release(); in testAc3BuilderNoBufferSize()
2617 AudioTrack audioTrack = new AudioTrack.Builder() in testAc3BuilderNoBufferSize() local
2620 audioTrack.release(); in testAc3BuilderNoBufferSize()
2835 final AudioTrack audioTrack = new AudioTrack.Builder().build(); in testCodecFormatChangedListener() local
2839 () -> { audioTrack.addOnCodecFormatChangedListener( in testCodecFormatChangedListener()
2844 () -> { audioTrack.removeOnCodecFormatChangedListener(null /* listener */); }); in testCodecFormatChangedListener()
2851 audioTrack.addOnCodecFormatChangedListener(new Executor() { in testCodecFormatChangedListener()
2857 audioTrack.removeOnCodecFormatChangedListener(listener); in testCodecFormatChangedListener()
2858 audioTrack.release(); in testCodecFormatChangedListener()
[all …]
DVolumeShaperTest.java180 final AudioTrack audioTrack = new AudioTrack.Builder() in createSineAudioTrack() local
190 assertEquals(vaf.length, audioTrack.write(vaf, 0 /* offsetInFloats */, vaf.length, in createSineAudioTrack()
192 audioTrack.setLoopPoints(0, frameCount, -1 /* loopCount */); in createSineAudioTrack()
193 return audioTrack; in createSineAudioTrack()
/cts/tests/tests/security/src/android/security/cts/
DAudioSecurityTest.java380 AudioTrack audioTrack = null; in testVisualizerCapture_CVE_2017_0396() local
385 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, sampleRate, in testVisualizerCapture_CVE_2017_0396()
390 audioTrack.write(data, 0 /* offsetInBytes */, data.length)); in testVisualizerCapture_CVE_2017_0396()
393 audioTrack.getState()); in testVisualizerCapture_CVE_2017_0396()
396 audioTrack.setLoopPoints(0 /* startInFrames */, bufferFrames, loops)); in testVisualizerCapture_CVE_2017_0396()
397 audioTrack.play(); in testVisualizerCapture_CVE_2017_0396()
408 audioTrack.getAudioSessionId()); in testVisualizerCapture_CVE_2017_0396()
455 if (audioTrack != null) { in testVisualizerCapture_CVE_2017_0396()
456 audioTrack.release(); in testVisualizerCapture_CVE_2017_0396()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioOutputRoutingNotificationsActivity.java76 AudioTrack audioTrack = mAudioPlayer.getAudioTrack(); in onClick() local
77 audioTrack.addOnRoutingChangedListener( in onClick()
90 public void onRoutingChanged(AudioTrack audioTrack) { in onRoutingChanged() argument
96 AudioDeviceInfo routedDevice = audioTrack.getRoutedDevice(); in onRoutingChanged()
DHifiUltrasoundTestActivity.java60 private AudioTrack audioTrack; field in HifiUltrasoundTestActivity
304 if (audioTrack != null) { in play()
305 audioTrack.stop(); in play()
306 audioTrack.release(); in play()
308 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play()
313 audioTrack.write(data, 0, data.length); in play()
314 audioTrack.play(); in play()
DHifiUltrasoundSpeakerTestActivity.java64 private AudioTrack audioTrack; field in HifiUltrasoundSpeakerTestActivity
344 if (audioTrack != null) { in play()
345 audioTrack.stop(); in play()
346 audioTrack.release(); in play()
348 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play()
353 audioTrack.write(data, 0, data.length); in play()
354 audioTrack.play(); in play()