/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallAudioManagerTest.java | 29 import com.android.server.telecom.CallState; 123 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall() 124 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall() 147 when(call2.getState()).thenReturn(CallState.RINGING); in testUnmuteOfSecondIncomingCall() 185 when(call.getState()).thenReturn(CallState.ACTIVE); 186 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); 218 when(call.getState()).thenReturn(CallState.ANSWERED); 221 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ANSWERED); 238 when(call.getState()).thenReturn(CallState.ACTIVE); 239 mCallAudioManager.onCallStateChanged(call, CallState.ANSWERED, CallState.ACTIVE); [all …]
|
D | CallsManagerTest.java | 66 import com.android.server.telecom.CallState; 309 ongoingCall.setState(CallState.ACTIVE, "just cuz"); in testConstructPossiblePhoneAccountsMultiSimActive() 524 callSpy.setState(CallState.ON_HOLD, "test"); in testSuppessDtmfWhenHeld() 570 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() 576 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService() 594 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService() 601 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService() 617 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenOngoingCallCanNotBeHeldAndHasSameConnectionService() 623 Call heldCall = addSpyCall(SIM_2_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndHasSameConnectionService() 639 Call incomingCall = addSpyCall(CallState.RINGING); in testDuplicateAnswerCall() [all …]
|
D | CallLogManagerTest.java | 66 import com.android.server.telecom.CallState; 199 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.DISCONNECTED); in testDontLogCancelledCall() 201 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.ABORTED); in testDontLogCancelledCall() 223 mCallLogManager.onCallStateChanged(fakeCall, CallState.SELECT_PHONE_ACCOUNT, in testDontLogChoosingAccountCall() 224 CallState.DISCONNECTED); in testDontLogChoosingAccountCall() 274 mCallLogManager.onCallStateChanged(fakeCall1, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogUnloggableNumbers() 275 mCallLogManager.onCallStateChanged(fakeCall2, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogUnloggableNumbers() 304 mCallLogManager.onCallStateChanged(fakeCall, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogCallsFromEmergencyAccount() 326 mCallLogManager.onCallStateChanged(fakeOutgoingCall, CallState.ACTIVE, in testLogCallDirectionOutgoing() 327 CallState.DISCONNECTED); in testLogCallDirectionOutgoing() [all …]
|
D | BluetoothPhoneServiceTest.java | 38 import com.android.server.telecom.CallState; 262 when(activeCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsOneCall() 280 when(silentRingingCall.getState()).thenReturn(CallState.RINGING); in testListCurrentCallsSilentRinging() 310 when(confCall1.getState()).thenReturn(CallState.ACTIVE); in testConferenceInProgressCDMA() 311 when(confCall2.getState()).thenReturn(CallState.ACTIVE); in testConferenceInProgressCDMA() 359 when(foregroundCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaHold() 360 when(heldCall.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaHold() 401 when(confCall1.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaConference() 402 when(confCall2.getState()).thenReturn(CallState.ACTIVE); in testListCurrentCallsCdmaConference() 443 when(waitingCall.getState()).thenReturn(CallState.RINGING); in testWaitingCallClccResponse() [all …]
|
D | DisconnectedCallNotifierTest.java | 29 import com.android.server.telecom.CallState; 82 notifier.onCallStateChanged(call, CallState.NEW, CallState.DIALING); in testNotificationShownAfterEmergencyCall() 83 notifier.onCallStateChanged(call, CallState.DIALING, CallState.DISCONNECTED); in testNotificationShownAfterEmergencyCall() 105 notifier.onCallStateChanged(call, CallState.NEW, CallState.DIALING); in testNotificationShownForDisconnectedEmergencyCall() 106 notifier.onCallStateChanged(call, CallState.DIALING, CallState.DISCONNECTED); in testNotificationShownForDisconnectedEmergencyCall() 128 notifier.onCallStateChanged(call, CallState.DIALING, CallState.DISCONNECTED); in testNotificationNotShownAfterCall() 145 notifier.onCallStateChanged(call, CallState.DIALING, CallState.DISCONNECTED); in testNotificationClearedForEmergencyCall()
|
D | CallTest.java | 42 import com.android.server.telecom.CallState; 118 call.setState(CallState.ACTIVE, ""); in testSetHasGoneActive() 120 call.setState(CallState.AUDIO_PROCESSING, ""); in testSetHasGoneActive() 143 call.setState(CallState.AUDIO_PROCESSING, ""); in testDisconnectCauseWhenAudioProcessing() 168 call.setState(CallState.AUDIO_PROCESSING, ""); in testDisconnectCauseWhenAudioProcessingAfterActive() 169 call.setState(CallState.ACTIVE, ""); in testDisconnectCauseWhenAudioProcessingAfterActive() 170 call.setState(CallState.AUDIO_PROCESSING, ""); in testDisconnectCauseWhenAudioProcessingAfterActive() 195 call.setState(CallState.SIMULATED_RINGING, ""); in testDisconnectCauseWhenSimulatedRingingAndDisconnect() 220 call.setState(CallState.SIMULATED_RINGING, ""); in testDisconnectCauseWhenSimulatedRingingAndReject() 255 call.setState(CallState.ACTIVE, ""); in testCanPullCallRemovedDuringEmergencyCall() [all …]
|
D | ConnectionServiceFocusManagerTest.java | 21 import com.android.server.telecom.CallState; 67 mNewCall = createFakeCall(mNewConnectionService, CallState.NEW); in setUp() 68 mActiveCall = createFakeCall(mActiveConnectionService, CallState.ACTIVE); in setUp() 207 CallFocus activeCall = createFakeCall(mActiveConnectionService, CallState.ACTIVE); in testCallStateChangedAffectCallFocus() 208 CallFocus newActivateCall = createFakeCall(mActiveConnectionService, CallState.ACTIVE); in testCallStateChangedAffectCallFocus() 213 when(activeCall.getState()).thenReturn(CallState.ON_HOLD); in testCallStateChangedAffectCallFocus() 224 when(newActivateCall.getState()).thenReturn(CallState.ACTIVE); in testCallStateChangedAffectCallFocus() 239 when(mNewCall.getState()).thenReturn(CallState.ACTIVE); in testCallStateChangedDoesNotAffectCallFocusIfConnectionServiceIsDifferent() 246 when(mActiveCall.getState()).thenReturn(CallState.ON_HOLD); in testCallStateChangedDoesNotAffectCallFocusIfConnectionServiceIsDifferent() 248 (Call) mActiveCall, CallState.ACTIVE, CallState.ON_HOLD); in testCallStateChangedDoesNotAffectCallFocusIfConnectionServiceIsDifferent()
|
D | InCallWakeLockControllerTest.java | 28 import com.android.server.telecom.CallState; 94 mInCallWakeLockController.onCallStateChanged(mCall, CallState.NEW, CallState.RINGING); in testRingingCallTransition()
|
D | IncomingCallNotifierTest.java | 27 import com.android.server.telecom.CallState; 79 when(mRingingCall.getState()).thenReturn(CallState.RINGING); in setUp()
|
D | TelecomServiceImplTest.java | 49 import com.android.server.telecom.CallState; 899 when(call.getState()).thenReturn(CallState.RINGING); in testEndCallWithRingingForegroundCall() 909 when(call.getState()).thenReturn(CallState.SIMULATED_RINGING); in testEndCallWithSimulatedRingingForegroundCall() 919 when(call.getState()).thenReturn(CallState.ACTIVE); in testEndCallWithNonRingingForegroundCall() 929 when(call.getState()).thenReturn(CallState.ACTIVE); in testEndCallWithNoForegroundCall()
|
D | RingerTest.java | 36 import com.android.server.telecom.CallState; 146 when(mockCall1.getState()).thenReturn(CallState.RINGING); in setUp() 147 when(mockCall2.getState()).thenReturn(CallState.RINGING); in setUp()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAudioManager.java | 80 put(CallState.CONNECTING, mActiveDialingOrConnectingCalls); in CallAudioManager() 81 put(CallState.ACTIVE, mActiveDialingOrConnectingCalls); in CallAudioManager() 82 put(CallState.DIALING, mActiveDialingOrConnectingCalls); in CallAudioManager() 83 put(CallState.PULLING, mActiveDialingOrConnectingCalls); in CallAudioManager() 84 put(CallState.RINGING, mRingingCalls); in CallAudioManager() 85 put(CallState.ON_HOLD, mHoldingCalls); in CallAudioManager() 86 put(CallState.SIMULATED_RINGING, mRingingCalls); in CallAudioManager() 87 put(CallState.AUDIO_PROCESSING, mAudioProcessingCalls); in CallAudioManager() 111 CallState.toString(oldState), CallState.toString(newState)); in onCallStateChanged() 154 CallState.toString(call.getState())); in addCall() [all …]
|
D | Call.java | 672 CallState.ACTIVE : CallState.NEW; in Call() 822 CallState.toString(mState), in toString() 1009 Log.v(this, "setState %s -> %s", CallState.toString(mState), in setState() 1010 CallState.toString(newState)); in setState() 1012 if (newState == CallState.DISCONNECTED && shouldContinueProcessingAfterDisconnect()) { in setState() 1016 } else if (newState == CallState.ANSWERED && mState == CallState.ACTIVE) { in setState() 1017 Log.w(this, "setState %s -> %s; call already active.", CallState.toString(mState), in setState() 1018 CallState.toString(newState)); in setState() 1027 if (mState == CallState.ACTIVE || mState == CallState.ON_HOLD) { in setState() 1041 } else if (mState == CallState.DISCONNECTED) { in setState() [all …]
|
D | CallsManager.java | 219 {CallState.CONNECTING, CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING, 220 CallState.PULLING}; 227 {CallState.CONNECTING, CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING, 228 CallState.PULLING, CallState.ACTIVE, CallState.AUDIO_PROCESSING}; 238 {CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING, CallState.PULLING, CallState.ACTIVE, 239 CallState.ON_HOLD, CallState.RINGING, CallState.SIMULATED_RINGING, 240 CallState.ANSWERED, CallState.AUDIO_PROCESSING}; 243 {CallState.NEW, CallState.CONNECTING, CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING, 244 CallState.RINGING, CallState.SIMULATED_RINGING, CallState.ACTIVE, 245 CallState.ON_HOLD, CallState.DISCONNECTED, CallState.ABORTED, [all …]
|
D | BluetoothPhoneServiceImpl.java | 344 if (oldState == CallState.ACTIVE && newState == CallState.ON_HOLD) { 346 if (otherCall.getState() == CallState.CONNECTING) { 356 && oldState == CallState.CONNECTING && 357 (newState == CallState.DIALING || newState == CallState.PULLING)) { 630 if (conferenceCall.getState() == CallState.ON_HOLD && in sendClccForCall() 866 case CallState.NEW: in getBtCallState() 867 case CallState.ABORTED: in getBtCallState() 868 case CallState.DISCONNECTED: in getBtCallState() 869 case CallState.AUDIO_PROCESSING: in getBtCallState() 872 case CallState.ACTIVE: in getBtCallState() [all …]
|
D | ParcelableCallUtils.java | 383 int state = CallState.NEW; in getParcelableState() 385 case CallState.ABORTED: in getParcelableState() 386 case CallState.DISCONNECTED: in getParcelableState() 389 case CallState.ACTIVE: in getParcelableState() 392 case CallState.CONNECTING: in getParcelableState() 395 case CallState.DIALING: in getParcelableState() 398 case CallState.PULLING: in getParcelableState() 411 case CallState.DISCONNECTING: in getParcelableState() 414 case CallState.NEW: in getParcelableState() 417 case CallState.ON_HOLD: in getParcelableState() [all …]
|
D | PhoneStateBroadcaster.java | 86 } else if (mCallsManager.getFirstCallWithState(CallState.DIALING, CallState.PULLING, in updateStates() 87 CallState.ACTIVE, CallState.ON_HOLD) != null) { in updateStates()
|
D | CreateConnectionTimeout.java | 116 return state == CallState.NEW in isCallBeingPlaced() 117 || state == CallState.CONNECTING in isCallBeingPlaced() 118 || state == CallState.DIALING in isCallBeingPlaced() 119 || state == CallState.PULLING; in isCallBeingPlaced()
|
D | TelecomServiceImpl.java | 1738 if (call.getState() == CallState.DISCONNECTED 1739 || call.getState() == CallState.DISCONNECTING) { 1982 … Call call = mCallsManager.getFirstCallWithState(CallState.RINGING, CallState.SIMULATED_RINGING); in acceptRingingCallInternal() 1997 CallState.ACTIVE, in endCallInternal() 1998 CallState.DIALING, in endCallInternal() 1999 CallState.PULLING, in endCallInternal() 2000 CallState.RINGING, in endCallInternal() 2001 CallState.SIMULATED_RINGING, in endCallInternal() 2002 CallState.ON_HOLD); in endCallInternal() 2011 if (call.getState() == CallState.RINGING in endCallInternal() [all …]
|
D | ConnectionServiceFocusManager.java | 157 CallState.ACTIVE, CallState.CONNECTING, CallState.DIALING, CallState.AUDIO_PROCESSING
|
D | CallState.java | 27 public final class CallState { class 29 private CallState() {} in CallState() method in CallState
|
D | CallLogManager.java | 167 newState == CallState.DISCONNECTED || newState == CallState.ABORTED; in onCallStateChanged() 213 if (oldState == CallState.SELECT_PHONE_ACCOUNT) { in shouldLogDisconnectedCall()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | AudioProcessingNotification.java | 25 import com.android.server.telecom.CallState; 51 if (newState == CallState.AUDIO_PROCESSING && oldState != CallState.AUDIO_PROCESSING) { in onCallStateChanged() 53 } else if (oldState == CallState.AUDIO_PROCESSING in onCallStateChanged() 54 && newState != CallState.AUDIO_PROCESSING) { in onCallStateChanged() 61 if (call.getState() == CallState.AUDIO_PROCESSING) { in onCallAdded()
|
D | IncomingCallNotifier.java | 37 import com.android.server.telecom.CallState; 142 call.getState() == CallState.RINGING && in updateIncomingCall()
|
D | DisconnectedCallNotifier.java | 45 import com.android.server.telecom.CallState; 142 if ((newState == CallState.DISCONNECTED) && (cause.getCode() == DisconnectCause.LOCAL) && in onCallStateChanged()
|