/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | RoutingTest.java | 96 AudioTrack audioTrack = in allocAudioTrack() local 104 return audioTrack; in allocAudioTrack() 113 AudioTrack audioTrack = allocAudioTrack(); in test_audioTrack_preferredDevice() local 114 assertNotNull(audioTrack); in test_audioTrack_preferredDevice() 117 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice() 120 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice() 129 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice() 130 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice() 134 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice() 135 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice() [all …]
|
D | AudioTrackTest.java | 2650 AudioTrack audioTrack = new AudioTrack.Builder() in testAc3BuilderNoBufferSize() local 2654 audioTrack.release(); in testAc3BuilderNoBufferSize() 2663 AudioTrack audioTrack = new AudioTrack.Builder() in testAc3BuilderNoBufferSize() local 2666 audioTrack.release(); in testAc3BuilderNoBufferSize() 2881 final AudioTrack audioTrack = new AudioTrack.Builder().build(); in testCodecFormatChangedListener() local 2885 () -> { audioTrack.addOnCodecFormatChangedListener( in testCodecFormatChangedListener() 2890 () -> { audioTrack.removeOnCodecFormatChangedListener(null /* listener */); }); in testCodecFormatChangedListener() 2897 audioTrack.addOnCodecFormatChangedListener(new Executor() { in testCodecFormatChangedListener() 2903 audioTrack.removeOnCodecFormatChangedListener(listener); in testCodecFormatChangedListener() 2904 audioTrack.release(); in testCodecFormatChangedListener() [all …]
|
D | VolumeShaperTest.java | 210 final AudioTrack audioTrack = new AudioTrack.Builder() in createSineAudioTrack() local 223 assertEquals(vaf.length, audioTrack.write(vaf, 0 /* offsetInFloats */, vaf.length, in createSineAudioTrack() 225 audioTrack.setLoopPoints(0, frameCount, -1 /* loopCount */); in createSineAudioTrack() 226 return audioTrack; in createSineAudioTrack()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioOutputRoutingNotificationsActivity.java | 110 AudioTrack audioTrack = mAudioPlayer.getAudioTrack(); in startAudio() local 111 audioTrack.addOnRoutingChangedListener(mRoutingChangeListener, in startAudio() 126 AudioTrack audioTrack = mAudioPlayer.getAudioTrack(); in stopAudio() local 127 audioTrack.removeOnRoutingChangedListener(mRoutingChangeListener); in stopAudio() 134 public void onRoutingChanged(AudioTrack audioTrack) { in onRoutingChanged() argument 145 AudioDeviceInfo routedDevice = audioTrack.getRoutedDevice(); in onRoutingChanged()
|
D | HifiUltrasoundTestActivity.java | 60 private AudioTrack audioTrack; field in HifiUltrasoundTestActivity 81 if (audioTrack != null) { in onPause() 82 audioTrack.stop(); in onPause() 83 audioTrack.release(); in onPause() 84 audioTrack = null; in onPause() 313 if (audioTrack != null) { in play() 314 audioTrack.stop(); in play() 315 audioTrack.release(); in play() 317 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play() 322 audioTrack.write(data, 0, data.length); in play() [all …]
|
D | HifiUltrasoundSpeakerTestActivity.java | 64 private AudioTrack audioTrack; field in HifiUltrasoundSpeakerTestActivity 98 if (audioTrack != null) { in onPause() 99 audioTrack.stop(); in onPause() 100 audioTrack.release(); in onPause() 101 audioTrack = null; in onPause() 353 if (audioTrack != null) { in play() 354 audioTrack.stop(); in play() 355 audioTrack.release(); in play() 357 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play() 362 audioTrack.write(data, 0, data.length); in play() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AudioSecurityTest.java | 396 AudioTrack audioTrack = null; in testVisualizerCapture_CVE_2017_0396() local 401 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, sampleRate, in testVisualizerCapture_CVE_2017_0396() 406 audioTrack.write(data, 0 /* offsetInBytes */, data.length)); in testVisualizerCapture_CVE_2017_0396() 409 audioTrack.getState()); in testVisualizerCapture_CVE_2017_0396() 412 audioTrack.setLoopPoints( in testVisualizerCapture_CVE_2017_0396() 414 audioTrack.play(); in testVisualizerCapture_CVE_2017_0396() 425 audioTrack.getAudioSessionId()); in testVisualizerCapture_CVE_2017_0396() 472 if (audioTrack != null) { in testVisualizerCapture_CVE_2017_0396() 473 audioTrack.release(); in testVisualizerCapture_CVE_2017_0396()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecodeOnlyTest.java | 356 AudioTrack audioTrack = createAudioTrack(audioFormat, audioSessionId); in testTunneledTrickPlay() local 411 audioCodec.setCallback(new AudioCallback(audioCodec, audioExtractor, audioTrack, done), in testTunneledTrickPlay() 431 audioTrack.play(); in testTunneledTrickPlay() 437 audioTrack.stop(); in testTunneledTrickPlay() 438 audioTrack.release(); in testTunneledTrickPlay() 495 AudioTrack audioTrack = createAudioTrack(audioFormat, audioSessionId); in testTunneledPerfectSeek() local 549 audioCodec.setCallback(new AudioCallback(audioCodec, audioExtractor, audioTrack, done), in testTunneledPerfectSeek() 604 audioTrack.play(); in testTunneledPerfectSeek() 613 audioTrack.pause(); in testTunneledPerfectSeek() 618 audioTrack.flush(); in testTunneledPerfectSeek() [all …]
|
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/ |
D | VirtualAudioTest.java | 295 AudioTrack audioTrack = activity.playAudio(); in audioCapture_receivesAudioConfigurationChangeCallback() local 299 audioTrack.stop(); in audioCapture_receivesAudioConfigurationChangeCallback() 330 AudioTrack audioTrack = activity.playAudio(); in audioCapture_capturesAppPlaybackFrequency() local 335 audioTrack.stop(); in audioCapture_capturesAppPlaybackFrequency() 377 AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE, in playAudio() local 380 audioTrack.write(audioData, audioData.capacity(), WRITE_BLOCKING); in playAudio() 381 audioTrack.play(); in playAudio() 383 return audioTrack; in playAudio()
|