Searched refs:audioManager (Results 1 – 5 of 5) sorted by relevance
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | AudioManagerTest.java | 15 private AudioManager audioManager; field in AudioManagerTest 21 audioManager = Robolectric.newInstanceOf(AudioManager.class); in setUp() 22 shadowAudioManager = Robolectric.shadowOf(audioManager); in setUp() 33 audioManager.requestAudioFocus(listener, 999, 888); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall() 41 int value = audioManager.requestAudioFocus(listener, 999, 888); in requestAudioFocus_shouldReturnTheSpecifiedValue() 46 value = audioManager.requestAudioFocus(listener, 999, 888); in requestAudioFocus_shouldReturnTheSpecifiedValue() 52 audioManager.abandonAudioFocus(null); in abandonAudioFocus_shouldRecordTheListenerOfTheMostRecentCall() 55 audioManager.abandonAudioFocus(listener); in abandonAudioFocus_shouldRecordTheListenerOfTheMostRecentCall() 63 assertEquals(45, audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)); in shouldGetStreamMaxVolume() 70 assertEquals(5, audioManager.getStreamVolume(AudioManager.STREAM_MUSIC)); in shouldGetVolume() [all …]
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | AppRTCAudioManager.java | 47 private AudioManager audioManager; field in AppRTCAudioManager 105 audioManager = ((AudioManager) context.getSystemService( in AppRTCAudioManager() 129 savedAudioMode = audioManager.getMode(); in init() 130 savedIsSpeakerPhoneOn = audioManager.isSpeakerphoneOn(); in init() 131 savedIsMicrophoneMute = audioManager.isMicrophoneMute(); in init() 134 audioManager.requestAudioFocus(null, AudioManager.STREAM_VOICE_CALL, in init() 141 audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in init() 169 audioManager.setMode(savedAudioMode); in close() 170 audioManager.abandonAudioFocus(null); in close() 271 boolean wasOn = audioManager.isSpeakerphoneOn(); in setSpeakerphoneOn() [all …]
|
D | CallActivity.java | 117 private AppRTCAudioManager audioManager = null; field in CallActivity 378 audioManager = AppRTCAudioManager.create(this, new Runnable() { in startCall() 390 audioManager.init(); in startCall() 431 if (audioManager != null) { in disconnect() 432 audioManager.close(); in disconnect() 433 audioManager = null; in disconnect()
|
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
D | WebRtcAudioTrack.java | 42 private final AudioManager audioManager; field in WebRtcAudioTrack 148 audioManager = (AudioManager) context.getSystemService( in WebRtcAudioTrack() 225 assertTrue(audioManager != null); 226 return audioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL); 232 assertTrue(audioManager != null); 237 audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, volume, 0); 245 return audioManager.isVolumeFixed(); 251 assertTrue(audioManager != null); 252 return audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
|
D | WebRtcAudioManager.java | 74 private final AudioManager audioManager; field in WebRtcAudioManager 93 audioManager = (AudioManager) context.getSystemService( in WebRtcAudioManager() 110 Logging.d(TAG, "audio mode is: " + AUDIO_MODES[audioManager.getMode()]); in init() 123 return (audioManager.getMode() == AudioManager.MODE_IN_COMMUNICATION); in isCommunicationModeEnabled() 204 String sampleRateString = audioManager.getProperty( in getSampleRateOnJellyBeanMR10OrHigher() 218 String framesPerBuffer = audioManager.getProperty( in getLowLatencyOutputFramesPerBuffer()
|