Home
last modified time | relevance | path

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

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java118 AudioManager mockAudioManager; field in RingerTest
132 mockAudioManager = in setUp()
134 when(mockAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in setUp()
280 when(mockAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in testVibrateButNoRingForNullRingtone()
298 when(mockAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in testVibrateButNoRingForSilentRingtone()
299 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in testVibrateButNoRingForSilentRingtone()
317 when(mockAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in testStopRingingBeforeHapticsLookupComplete()
341 when(mockAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in testCustomVibrationForRingtone()
394 when(mockAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in testSilentRingWithHfpStillAcquiresFocus1()
395 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in testSilentRingWithHfpStillAcquiresFocus1()
[all …]
DCallAudioRouteStateMachineTest.java93 private AudioManager mockAudioManager; field in CallAudioRouteStateMachineTest
105 mockAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
167 when(mockAudioManager.isSpeakerphoneOn()).thenReturn(true); in testSpeakerPersistence()
172 when(mockAudioManager.isSpeakerphoneOn()).thenReturn((Boolean) args[0]); in testSpeakerPersistence()
175 }).when(mockAudioManager).setSpeakerphoneOn(any(Boolean.class)); in testSpeakerPersistence()
213 when(mockAudioManager.isSpeakerphoneOn()).thenReturn(true); in testUserBluetoothSwitchOff()
333 when(mockAudioManager.isSpeakerphoneOn()).thenReturn(false); in testBluetoothRinging()
367 when(mockAudioManager.isSpeakerphoneOn()).thenReturn(false); in testConnectBluetoothDuringRinging()
422 when(mockAudioManager.isSpeakerphoneOn()).thenReturn(false); in testConnectSpecificBluetoothDevice()
473 when(mockAudioManager.isSpeakerphoneOn()).thenReturn(false); in testFocusChangeWithAlreadyActiveBtDevice()
[all …]
DCallAudioRouteTransitionTests.java157 private AudioManager mockAudioManager; field in CallAudioRouteTransitionTests
173 mockAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp()
232 when(mockAudioManager.isSpeakerphoneOn()).thenReturn(speakerphoneOn); in setupMocksForParams()
328 verify(mockAudioManager, never()).setSpeakerphoneOn(any(Boolean.class)); in testActiveTransition()
332 verify(mockAudioManager).setSpeakerphoneOn(mParams.speakerInteraction == ON); in testActiveTransition()
366 when(mockAudioManager.isSpeakerphoneOn()).thenReturn( in testQuiescentTransition()
850 verify(mockAudioManager, never()).setSpeakerphoneOn(any(Boolean.class)); in verifyNoSystemAudioChanges()
858 Mockito.clearInvocations(mockAudioManager, mockBluetoothRouteManager, mockCallsManager, in clearInvocations()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerListTest.java76 AudioManager mockAudioManager = mock(AudioManager.class); in setUp() local
77 when(mMockContext.getSystemService(Context.AUDIO_SERVICE)).thenReturn(mockAudioManager); in setUp()