Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DRoutingTest.java107 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 …]
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.java381 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/
DAudioOutputRoutingNotificationsActivity.java72 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()
DHifiUltrasoundTestActivity.java60 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()
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()