Searched refs:audioTrack (Results 1 – 4 of 4) sorted by relevance
61 AudioTrack audioTrack = in allocAudioTrack() local69 return audioTrack; in allocAudioTrack()78 AudioTrack audioTrack = allocAudioTrack(); in test_audioTrack_preferredDevice() local79 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 …]
81 public void onRoutingChanged(AudioTrack audioTrack) { in onRoutingChanged() argument87 AudioDeviceInfo routedDevice = audioTrack.getRoutedDevice(); in onRoutingChanged()129 AudioTrack audioTrack = mAudioPlayer.getAudioTrack(); in onCreate() local130 audioTrack.addOnRoutingChangedListener( in onCreate()
57 private AudioTrack audioTrack; field in HifiUltrasoundTestActivity299 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()
58 private AudioTrack audioTrack; field in HifiUltrasoundSpeakerTestActivity338 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()