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.java57 private AudioTrack audioTrack; field in HifiUltrasoundTestActivity
300 if (audioTrack != null) { in play()
301 audioTrack.stop(); in play()
302 audioTrack.release(); in play()
304 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play()
309 audioTrack.write(data, 0, data.length); in play()
310 audioTrack.play(); in play()
DHifiUltrasoundSpeakerTestActivity.java61 private AudioTrack audioTrack; field in HifiUltrasoundSpeakerTestActivity
341 if (audioTrack != null) { in play()
342 audioTrack.stop(); in play()
343 audioTrack.release(); in play()
345 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play()
350 audioTrack.write(data, 0, data.length); in play()
351 audioTrack.play(); in play()