Home
last modified time | relevance | path

Searched refs:audioManager (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java21 private final AudioManager audioManager = field in ShadowAudioManagerTest
31 assertThat(shadowOf(audioManager).getLastAudioFocusRequest()).isNull(); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
32 audioManager.requestAudioFocus(listener, 999, 888); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
33 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().listener).isSameAs(listener); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
34 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().streamType).isEqualTo(999); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
35 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().durationHint).isEqualTo(888); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
36 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().audioFocusRequest).isNull(); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
41 int value = audioManager.requestAudioFocus(listener, 999, 888); in requestAudioFocus_shouldReturnTheSpecifiedValue()
44 shadowOf(audioManager).setNextFocusRequestResponse(AudioManager.AUDIOFOCUS_REQUEST_FAILED); in requestAudioFocus_shouldReturnTheSpecifiedValue()
46 value = audioManager.requestAudioFocus(listener, 999, 888); in requestAudioFocus_shouldReturnTheSpecifiedValue()
[all …]
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCAudioManager.java47 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 …]
DCallActivity.java117 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/
DWebRtcAudioTrack.java42 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);
DWebRtcAudioManager.java74 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()