Searched refs:audioTrack (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | RoutingTest.java | 107 AudioTrack audioTrack = in allocAudioTrack() local 115 return audioTrack; in allocAudioTrack() 124 AudioTrack audioTrack = allocAudioTrack(); in test_audioTrack_preferredDevice() local 125 assertNotNull(audioTrack); in test_audioTrack_preferredDevice() 128 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice() 131 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice() 136 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice() 137 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice() 141 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice() 142 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice() [all …]
|
D | AudioTrackTest.java | 2786 final AudioTrack audioTrack = new AudioTrack.Builder().build(); in testCodecFormatChangedListener() local 2790 () -> { audioTrack.addOnCodecFormatChangedListener( in testCodecFormatChangedListener() 2795 () -> { audioTrack.removeOnCodecFormatChangedListener(null /* listener */); }); in testCodecFormatChangedListener() 2802 audioTrack.addOnCodecFormatChangedListener(new Executor() { in testCodecFormatChangedListener() 2808 audioTrack.removeOnCodecFormatChangedListener(listener); in testCodecFormatChangedListener() 2809 audioTrack.release(); in testCodecFormatChangedListener() 2818 final AudioTrack audioTrack = new AudioTrack.Builder().build(); in testDualMonoMode() local 2822 audioTrack.setDualMonoMode(AudioTrack.DUAL_MONO_MODE_OFF); in testDualMonoMode() 2823 assertEquals(AudioTrack.DUAL_MONO_MODE_OFF, audioTrack.getDualMonoMode()); in testDualMonoMode() 2828 () -> { audioTrack.setDualMonoMode(-1); } in testDualMonoMode() [all …]
|
D | VolumeShaperTest.java | 180 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/ |
D | AudioSecurityTest.java | 381 AudioTrack audioTrack = null; in testVisualizerCapture_CVE_2017_0396() local 386 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, sampleRate, in testVisualizerCapture_CVE_2017_0396() 391 audioTrack.write(data, 0 /* offsetInBytes */, data.length)); in testVisualizerCapture_CVE_2017_0396() 394 audioTrack.getState()); in testVisualizerCapture_CVE_2017_0396() 397 audioTrack.setLoopPoints(0 /* startInFrames */, bufferFrames, loops)); in testVisualizerCapture_CVE_2017_0396() 398 audioTrack.play(); in testVisualizerCapture_CVE_2017_0396() 409 audioTrack.getAudioSessionId()); in testVisualizerCapture_CVE_2017_0396() 456 if (audioTrack != null) { in testVisualizerCapture_CVE_2017_0396() 457 audioTrack.release(); in testVisualizerCapture_CVE_2017_0396()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioOutputRoutingNotificationsActivity.java | 72 public void onRoutingChanged(AudioTrack audioTrack) { in onRoutingChanged() argument 78 AudioDeviceInfo routedDevice = audioTrack.getRoutedDevice(); in onRoutingChanged() 105 AudioTrack audioTrack = mAudioPlayer.getAudioTrack(); in onCreate() local 106 audioTrack.addOnRoutingChangedListener( in onCreate()
|
D | HifiUltrasoundTestActivity.java | 60 private AudioTrack audioTrack; field in HifiUltrasoundTestActivity 303 if (audioTrack != null) { in play() 304 audioTrack.stop(); in play() 305 audioTrack.release(); in play() 307 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play() 312 audioTrack.write(data, 0, data.length); in play() 313 audioTrack.play(); in play()
|
D | HifiUltrasoundSpeakerTestActivity.java | 64 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()
|