Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DRoutingTest.java61 AudioTrack audioTrack = in allocAudioTrack() local
69 return audioTrack; in allocAudioTrack()
78 AudioTrack audioTrack = allocAudioTrack(); in test_audioTrack_preferredDevice() local
79 assertNotNull(audioTrack); in test_audioTrack_preferredDevice()
82 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice()
85 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice()
90 assertTrue(audioTrack.setPreferredDevice(deviceList[index])); in test_audioTrack_preferredDevice()
91 assertTrue(audioTrack.getPreferredDevice() == deviceList[index]); in test_audioTrack_preferredDevice()
95 assertTrue(audioTrack.setPreferredDevice(null)); in test_audioTrack_preferredDevice()
96 assertNull(audioTrack.getPreferredDevice()); in test_audioTrack_preferredDevice()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioRoutingNotificationsActivity.java81 public void onRoutingChanged(AudioTrack audioTrack) { in onRoutingChanged() argument
87 AudioDeviceInfo routedDevice = audioTrack.getRoutedDevice(); in onRoutingChanged()
129 AudioTrack audioTrack = mAudioPlayer.getAudioTrack(); in onCreate() local
130 audioTrack.addOnRoutingChangedListener( in onCreate()
DHifiUltrasoundTestActivity.java57 private AudioTrack audioTrack; field in HifiUltrasoundTestActivity
299 if (audioTrack != null) { in play()
300 audioTrack.stop(); in play()
301 audioTrack.release(); in play()
303 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play()
308 audioTrack.write(data, 0, data.length); in play()
309 audioTrack.play(); in play()
DHifiUltrasoundSpeakerTestActivity.java58 private AudioTrack audioTrack; field in HifiUltrasoundSpeakerTestActivity
338 if (audioTrack != null) { in play()
339 audioTrack.stop(); in play()
340 audioTrack.release(); in play()
342 audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in play()
347 audioTrack.write(data, 0, data.length); in play()
348 audioTrack.play(); in play()