Searched refs:mockAudioManager (Results 1 – 4 of 4) sorted by relevance
118 AudioManager mockAudioManager; field in RingerTest132 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 …]
93 private AudioManager mockAudioManager; field in CallAudioRouteStateMachineTest105 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 …]
157 private AudioManager mockAudioManager; field in CallAudioRouteTransitionTests173 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()
76 AudioManager mockAudioManager = mock(AudioManager.class); in setUp() local77 when(mMockContext.getSystemService(Context.AUDIO_SERVICE)).thenReturn(mockAudioManager); in setUp()