Home
last modified time | relevance | path

Searched refs:mCallAudioManager (Results 1 – 11 of 11) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioModeStateMachineTest.java61 @Mock private CallAudioManager mCallAudioManager; field in CallAudioModeStateMachineTest
73 when(mCallAudioManager.getCallAudioRouteAdapter()) in setUp()
91 sm.setCallAudioManager(mCallAudioManager); in testNoFocusWhenRingerSilenced()
96 when(mCallAudioManager.startRinging()).thenReturn(false); in testNoFocusWhenRingerSilenced()
113 verify(mCallAudioManager, never()).stopRinging(); in testNoFocusWhenRingerSilenced()
115 verify(mCallAudioManager).stopCallWaiting(); in testNoFocusWhenRingerSilenced()
123 sm.setCallAudioManager(mCallAudioManager); in testSwitchToStreamingMode()
128 when(mCallAudioManager.startRinging()).thenReturn(false); in testSwitchToStreamingMode()
153 sm.setCallAudioManager(mCallAudioManager); in testExitStreamingMode()
158 when(mCallAudioManager.startRinging()).thenReturn(false); in testExitStreamingMode()
[all …]
DCallAudioManagerTest.java91 private CallAudioManager mCallAudioManager; field in CallAudioManagerTest
100 mCallAudioManager.setIsTonePlaying(invocation.getArgument(0), true); in setUp()
107 mCallAudioManager = new CallAudioManager( in setUp()
136 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
138 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
157 mCallAudioManager.mute(true); in testUnmuteOfSecondIncomingCall()
165 mCallAudioManager.onCallAdded(call2); in testUnmuteOfSecondIncomingCall()
168 mCallAudioManager.onIncomingCallAnswered(call); in testUnmuteOfSecondIncomingCall()
198 mCallAudioManager.onIncomingCallAnswered(call);
200 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE);
[all …]
DInCallTonePlayerTest.java115 private CallAudioManager mCallAudioManager; field in InCallTonePlayerTest
128 doNothing().when(mCallAudioManager).setIsTonePlaying(any(Call.class), anyBoolean()); in setUp()
135 mFactory.setCallAudioManager(mCallAudioManager); in setUp()
153 verify(mCallAudioManager).setIsTonePlaying(any(Call.class), eq(true)); in testEndCallTonePlaysWhenRingIsSilent()
157 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testEndCallTonePlaysWhenRingIsSilent()
168 verify(mCallAudioManager).setIsTonePlaying(any(Call.class), eq(true)); in testInterruptMediaTone()
172 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testInterruptMediaTone()
186 verify(mCallAudioManager).setIsTonePlaying(any(Call.class), eq(true)); in testInterruptToneGenerator()
190 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testInterruptToneGenerator()
208 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testEndCallToneWhenNotSilenced()
[all …]
DCallAudioModeTransitionTests.java108 @Mock private CallAudioManager mCallAudioManager; field in CallAudioModeTransitionTests
138 sm.setCallAudioManager(mCallAudioManager); in modeTransitionTest()
143 when(mCallAudioManager.startRinging()).thenReturn(true); in modeTransitionTest()
187 verify(mCallAudioManager, never()).startRinging(); in modeTransitionTest()
188 verify(mCallAudioManager, never()).stopRinging(); in modeTransitionTest()
191 verify(mCallAudioManager).startRinging(); in modeTransitionTest()
194 verify(mCallAudioManager).stopRinging(); in modeTransitionTest()
200 verify(mCallAudioManager, never()).startCallWaiting(nullable(String.class)); in modeTransitionTest()
201 verify(mCallAudioManager, never()).stopCallWaiting(); in modeTransitionTest()
204 verify(mCallAudioManager).startCallWaiting(nullable(String.class)); in modeTransitionTest()
[all …]
DCallEndpointControllerTest.java97 @Mock private CallAudioManager mCallAudioManager; field in CallEndpointControllerTest
111 doReturn(mCallAudioManager).when(mCallsManager).getCallAudioManager(); in setUp()
210 doReturn(audioState8).when(mCallAudioManager).getCallAudioState(); in testSwitchFromEarpieceToBluetooth()
215 verify(mCallAudioManager, times(1)).setAudioRoute(eq(CallAudioState.ROUTE_BLUETOOTH), in testSwitchFromEarpieceToBluetooth()
248 doReturn(audioState2).when(mCallAudioManager).getCallAudioState(); in testBtDeviceSwitch()
253 verify(mCallAudioManager, times(1)) in testBtDeviceSwitch()
349 verify(mCallAudioManager).setAudioRoute(eq(CallAudioState.ROUTE_EARPIECE), eq(null)); in testEndpointChangeRequest()
352 verify(mCallAudioManager).setAudioRoute(eq(CallAudioState.ROUTE_BLUETOOTH), in testEndpointChangeRequest()
363 verify(mCallAudioManager, never()).setAudioRoute(eq(CallAudioState.ROUTE_BLUETOOTH), in testEndpointChangeRequest_EndpointDoesNotExist()
DCallAudioRouteControllerTest.java109 @Mock CallAudioManager mCallAudioManager; field in CallAudioRouteControllerTest
171 mController.setCallAudioManager(mCallAudioManager); in setUp()
172 when(mCallAudioManager.getForegroundCall()).thenReturn(mCall); in setUp()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioModeStateMachine.java292 mCallAudioManager.setCallAudioRouteFocusState( in enter()
295 mCallAudioManager.setCallAudioRouteFocusState( in enter()
379 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.NO_FOCUS); in enter()
459 if (mHasFocus && mCallAudioManager.isRingtonePlaying()) { in tryStartRinging()
466 if (mCallAudioManager.startRinging()) { in tryStartRinging()
480 mCallAudioManager.setCallAudioRouteFocusState( in tryStartRinging()
497 mCallAudioManager.stopCallWaiting(); in enter()
503 mCallAudioManager.stopRinging(); in exit()
580 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
598 mCallAudioManager.stopCallWaiting(); in processMessage()
[all …]
DInCallTonePlayer.java51 private CallAudioManager mCallAudioManager; field in InCallTonePlayer.Factory
69 mCallAudioManager = callAudioManager; in setCallAudioManager()
73 return new InCallTonePlayer(call, tone, mCallAudioManager, in createPlayer()
195 private final CallAudioManager mCallAudioManager; field in InCallTonePlayer
243 mCallAudioManager = callAudioManager; in InCallTonePlayer()
482 mCallAudioManager.setIsTonePlaying(mCall, true); in startTone()
529 if (mCallAudioManager != null) { in cleanUpTonePlayer()
530 mCallAudioManager.setIsTonePlaying(mCall, false); in cleanUpTonePlayer()
DCallAudioRouteStateMachine.java368 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
443 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
594 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
670 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
771 mCallAudioManager.onRingerModeChange(); in enter()
828 mCallAudioManager.onRingerModeChange(); in processMessage()
879 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
978 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
1068 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
1226 mCallAudioManager.notifyAudioOperationsComplete(); in processMessage()
[all …]
DCallAudioRouteController.java86 private CallAudioManager mCallAudioManager; field in CallAudioRouteController
153 && mCallAudioManager != null) {
155 mCallAudioManager.onRingerModeChange();
419 mCallAudioManager = callAudioManager; in setCallAudioManager()
1041 Call foregroundCall = mCallAudioManager.getForegroundCall(); in getPreferredAudioRouteFromDefault()
DCallsManager.java446 private final CallAudioManager mCallAudioManager; field in CallsManager
701 mCallAudioManager = new CallAudioManager(callAudioRouteAdapter, in CallsManager()
744 mListeners.add(mCallAudioManager); in CallsManager()
1367 if (mCallAudioManager == null) { in getForegroundCall()
1371 return mCallAudioManager.getForegroundCall(); in getForegroundCall()
1376 if (mCallAudioManager == null) { in getTrackedCalls()
1380 return mCallAudioManager.getTrackedCalls(); in getTrackedCalls()
1411 return mCallAudioManager; in getCallAudioManager()
1472 return mCallAudioManager.getCallAudioState(); in getAudioState()
3487 mCallAudioManager.playRttUpgradeTone(call);
[all …]