Home
last modified time | relevance | path

Searched refs:CallState (Results 1 – 25 of 50) sorted by relevance

12

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAnomalyWatchdogTest.java37 import com.android.server.telecom.CallState;
157 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.NEW, in testAnomalyCallStateIsTransitory()
159 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.CONNECTING, in testAnomalyCallStateIsTransitory()
161 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.DIALING, in testAnomalyCallStateIsTransitory()
163 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.RINGING, in testAnomalyCallStateIsTransitory()
165 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.ACTIVE, in testAnomalyCallStateIsTransitory()
167 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.ON_HOLD, in testAnomalyCallStateIsTransitory()
169 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.DISCONNECTED, in testAnomalyCallStateIsTransitory()
171 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.ABORTED, in testAnomalyCallStateIsTransitory()
173 assertTrue(new CallAnomalyWatchdog.WatchdogCallState(CallState.DISCONNECTING, in testAnomalyCallStateIsTransitory()
[all …]
DCallTest.java60 import com.android.server.telecom.CallState;
132 call.setState(CallState.ACTIVE, ""); in testSetHasGoneActive()
134 call.setState(CallState.AUDIO_PROCESSING, ""); in testSetHasGoneActive()
144 assertTrue(CallState.isTransitoryState(CallState.NEW)); in testIsCallStateTransitory()
145 assertTrue(CallState.isTransitoryState(CallState.CONNECTING)); in testIsCallStateTransitory()
146 assertTrue(CallState.isTransitoryState(CallState.DISCONNECTING)); in testIsCallStateTransitory()
147 assertTrue(CallState.isTransitoryState(CallState.ANSWERED)); in testIsCallStateTransitory()
149 assertFalse(CallState.isTransitoryState(CallState.SELECT_PHONE_ACCOUNT)); in testIsCallStateTransitory()
150 assertFalse(CallState.isTransitoryState(CallState.DIALING)); in testIsCallStateTransitory()
151 assertFalse(CallState.isTransitoryState(CallState.RINGING)); in testIsCallStateTransitory()
[all …]
DCallAudioManagerTest.java29 import com.android.server.telecom.CallState;
125 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
126 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
149 when(call2.getState()).thenReturn(CallState.RINGING); in testUnmuteOfSecondIncomingCall()
187 when(call.getState()).thenReturn(CallState.ACTIVE);
188 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ACTIVE);
220 when(call.getState()).thenReturn(CallState.ANSWERED);
223 mCallAudioManager.onCallStateChanged(call, CallState.RINGING, CallState.ANSWERED);
240 when(call.getState()).thenReturn(CallState.ACTIVE);
241 mCallAudioManager.onCallStateChanged(call, CallState.ANSWERED, CallState.ACTIVE);
[all …]
DCallsManagerTest.java93 import com.android.server.telecom.CallState;
397 ongoingCall.setState(CallState.ACTIVE, "just cuz"); in constructOngoingCall()
666 callSpy.setState(CallState.ON_HOLD, "test"); in testSuppessDtmfWhenHeld()
712 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
718 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
738 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testDontUnholdCallsBetweenConnectionServices()
745 Call heldCall = addSpyCall(VOIP_1_HANDLE, CallState.ON_HOLD); in testDontUnholdCallsBetweenConnectionServices()
762 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenDisconnectingInSameApp()
769 Call heldCall = addSpyCall(SIM_1_HANDLE, CallState.ON_HOLD); in testUnholdCallWhenDisconnectingInSameApp()
784 Call ongoingCall = addSpyCall(SIM_1_HANDLE, CallState.ACTIVE); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService()
[all …]
DCallLogManagerTest.java71 import com.android.server.telecom.CallState;
211 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.DISCONNECTED); in testDontLogCancelledCall()
213 mCallLogManager.onCallStateChanged(fakeCall, CallState.DIALING, CallState.ABORTED); in testDontLogCancelledCall()
235 mCallLogManager.onCallStateChanged(fakeCall, CallState.SELECT_PHONE_ACCOUNT, in testDontLogChoosingAccountCall()
236 CallState.DISCONNECTED); in testDontLogChoosingAccountCall()
286 mCallLogManager.onCallStateChanged(fakeCall1, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogUnloggableNumbers()
287 mCallLogManager.onCallStateChanged(fakeCall2, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogUnloggableNumbers()
316 mCallLogManager.onCallStateChanged(fakeCall, CallState.ACTIVE, CallState.DISCONNECTED); in testDontLogCallsFromEmergencyAccount()
338 mCallLogManager.onCallStateChanged(fakeOutgoingCall, CallState.ACTIVE, in testLogCallDirectionOutgoing()
339 CallState.DISCONNECTED); in testLogCallDirectionOutgoing()
[all …]
DDisconnectedCallNotifierTest.java29 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()
DConnectionServiceFocusManagerTest.java21 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()
DTransactionTests.java43 import com.android.server.telecom.CallState;
122 Call spyCall = createSpyCall(null, CallState.ACTIVE, CALL_ID_1); in testHoldCallTransaction()
131 call.setState(CallState.ON_HOLD, "manual set"); in testHoldCallTransaction()
141 assertEquals(CallState.ON_HOLD, spyCall.getState()); in testHoldCallTransaction()
151 when(mMockCall1.getState()).thenReturn(CallState.DIALING); in testRequestNewCallFocusWithDialingCall()
166 when(mMockCall1.getState()).thenReturn(CallState.RINGING); in testRequestNewCallFocusWithRingingCall()
181 when(mMockCall1.getState()).thenReturn(CallState.DISCONNECTING); in testRequestNewCallFocusFailure()
DInCallWakeLockControllerTest.java29 import com.android.server.telecom.CallState;
95 mInCallWakeLockController.onCallStateChanged(mCall, CallState.NEW, CallState.RINGING); in testRingingCallTransition()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioManager.java85 put(CallState.CONNECTING, mActiveDialingOrConnectingCalls); in CallAudioManager()
86 put(CallState.ACTIVE, mActiveDialingOrConnectingCalls); in CallAudioManager()
87 put(CallState.DIALING, mActiveDialingOrConnectingCalls); in CallAudioManager()
88 put(CallState.PULLING, mActiveDialingOrConnectingCalls); in CallAudioManager()
89 put(CallState.RINGING, mRingingCalls); in CallAudioManager()
90 put(CallState.ON_HOLD, mHoldingCalls); in CallAudioManager()
91 put(CallState.SIMULATED_RINGING, mRingingCalls); in CallAudioManager()
92 put(CallState.AUDIO_PROCESSING, mAudioProcessingCalls); in CallAudioManager()
120 CallState.toString(oldState), CallState.toString(newState)); in onCallStateChanged()
166 CallState.toString(call.getState())); in addCall()
[all …]
DCall.java821 CallState.ACTIVE : CallState.NEW; in Call()
980 CallState.toString(getParcelableCallState()), in toString()
1137 return CallState.DISCONNECTING; in getParcelableCallState()
1239 Log.v(this, "setState %s -> %s", CallState.toString(mState), in setState()
1240 CallState.toString(newState)); in setState()
1242 if (newState == CallState.DISCONNECTED && shouldContinueProcessingAfterDisconnect()) { in setState()
1246 } else if (newState == CallState.ANSWERED && mState == CallState.ACTIVE) { in setState()
1247 Log.w(this, "setState %s -> %s; call already active.", CallState.toString(mState), in setState()
1248 CallState.toString(newState)); in setState()
1257 if (mState == CallState.ACTIVE || mState == CallState.ON_HOLD) { in setState()
[all …]
DCallsManager.java301 {CallState.CONNECTING, CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING,
302 CallState.PULLING};
309 {CallState.CONNECTING, CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING,
310 CallState.PULLING, CallState.ACTIVE, CallState.AUDIO_PROCESSING};
320 {CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING, CallState.PULLING, CallState.ACTIVE,
321 CallState.ON_HOLD, CallState.RINGING, CallState.SIMULATED_RINGING,
322 CallState.ANSWERED, CallState.AUDIO_PROCESSING};
325 {CallState.NEW, CallState.CONNECTING, CallState.SELECT_PHONE_ACCOUNT, CallState.DIALING,
326 CallState.RINGING, CallState.SIMULATED_RINGING, CallState.ACTIVE,
327 CallState.ON_HOLD, CallState.DISCONNECTED, CallState.ABORTED,
[all …]
DParcelableCallUtils.java388 int state = CallState.NEW; in getParcelableState()
390 case CallState.ABORTED: in getParcelableState()
391 case CallState.DISCONNECTED: in getParcelableState()
394 case CallState.ACTIVE: in getParcelableState()
397 case CallState.CONNECTING: in getParcelableState()
400 case CallState.DIALING: in getParcelableState()
403 case CallState.PULLING: in getParcelableState()
416 case CallState.DISCONNECTING: in getParcelableState()
419 case CallState.NEW: in getParcelableState()
422 case CallState.ON_HOLD: in getParcelableState()
[all …]
DCreateConnectionTimeout.java116 return state == CallState.NEW in isCallBeingPlaced()
117 || state == CallState.CONNECTING in isCallBeingPlaced()
118 || state == CallState.DIALING in isCallBeingPlaced()
119 || state == CallState.PULLING; in isCallBeingPlaced()
DPhoneStateBroadcaster.java98 } else if (mCallsManager.getFirstCallWithState(CallState.DIALING, CallState.PULLING, in updateStates()
99 CallState.ACTIVE, CallState.ON_HOLD) != null) { in updateStates()
DCallAnomalyWatchdog.java83 + CallState.toString(state) + "]"; in toString()
94 return CallState.isTransitoryState(state) in isInTransitoryState()
97 || (!isCreateConnectionComplete && state != CallState.SELECT_PHONE_ACCOUNT); in isInTransitoryState()
107 return CallState.isIntermediateState(state) && isCreateConnectionComplete; in isInIntermediateState()
291 call.getId(), CallState.toString(call.getState()), in maybeTrackCall()
DConnectionServiceFocusManager.java166 = Set.of(CallState.ACTIVE, CallState.CONNECTING, CallState.DIALING,
167 CallState.AUDIO_PROCESSING, CallState.RINGING);
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsCallStatusTrackerTest.java41 import android.telephony.CallState;
77 List<CallState> mTestCallStateList = new ArrayList<>();
147 mTestCallStateList.add(new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_DIALING) in testForVoiceCallTypeChangedScenarios()
165 mTestCallStateList.add(new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_ACTIVE) in testForVoiceCallTypeChangedScenarios()
188 mTestCallStateList.add(new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_INCOMING) in testForEmergencyCallTypeChangedScenarios()
205 mTestCallStateList.add(new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_ACTIVE) in testForEmergencyCallTypeChangedScenarios()
215 new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_DISCONNECTING) in testForEmergencyCallTypeChangedScenarios()
219 new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_ACTIVE) in testForEmergencyCallTypeChangedScenarios()
234 mTestCallStateList.add(new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_ACTIVE) in testForEmergencyCallTypeChangedScenarios()
249 mTestCallStateList.add(new CallState.Builder(PreciseCallState.PRECISE_CALL_STATE_ALERTING) in testForEmergencyCallTypeChangedScenarios()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DAudioProcessingNotification.java26 import com.android.server.telecom.CallState;
52 if (newState == CallState.AUDIO_PROCESSING && oldState != CallState.AUDIO_PROCESSING) { in onCallStateChanged()
54 } else if (oldState == CallState.AUDIO_PROCESSING in onCallStateChanged()
55 && newState != CallState.AUDIO_PROCESSING) { in onCallStateChanged()
63 if (call.getState() == CallState.AUDIO_PROCESSING) { in onCallAdded()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_media.rs16 BthfAudioState, BthfConnectionState, CallHoldCommand, CallInfo, CallState, Hfp, HfpCallbacks,
307 phone_state: PhoneState { num_active: 0, num_held: 0, state: CallState::Idle }, in new()
695 state: CallState::Active, in dispatch_hfp_callbacks()
1471 if !self.phone_ops_enabled || self.phone_state.state == CallState::Idle { in answer_call_impl()
1477 CallState::Incoming | CallState::Dialing | CallState::Alerting => { in answer_call_impl()
1478 c.state = CallState::Active; in answer_call_impl()
1484 self.phone_state.state = CallState::Idle; in answer_call_impl()
1494 CallState::Idle if self.phone_state.num_active > 0 => { in hangup_call_impl()
1497 CallState::Incoming | CallState::Dialing | CallState::Alerting => { in hangup_call_impl()
1498 self.phone_state.state = CallState::Idle; in hangup_call_impl()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/stats/
DCallStateChangedAtomWriter.java23 import com.android.server.telecom.CallState;
49 state == CallState.DISCONNECTED ? in write()
55 state == CallState.DISCONNECTED ? mDurationSeconds : 0, in write()
58 state == CallState.DISCONNECTED ? in write()
/packages/modules/Bluetooth/system/gd/rust/topshim/hfp/
Dhfp_shim.cc90 static headset::bthf_call_state_t from_rust_call_state(rusty::CallState state) { in from_rust_call_state()
92 case rusty::CallState::Idle: in from_rust_call_state()
94 case rusty::CallState::Incoming: in from_rust_call_state()
96 case rusty::CallState::Dialing: in from_rust_call_state()
98 case rusty::CallState::Alerting: in from_rust_call_state()
100 case rusty::CallState::Active: in from_rust_call_state()
102 case rusty::CallState::Held: in from_rust_call_state()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsCallStatusTracker.java30 import android.telephony.CallState;
52 private List<CallState> mCallStates = new ArrayList<>();
60 private Consumer<List<CallState>> mCallStatesConsumer =
659 void updateCallQuality(CallState state) { in updateCallQuality()
770 void updateCallState(List<CallState> callStateList) { in updateCallState()
771 List<CallState> imsCallStateList = new ArrayList<>(); in updateCallState()
775 for (CallState cs : callStateList) { in updateCallState()
888 for (CallState cs : mCallStates) { in hasEmergencyCall()
897 CallState getActiveCall() { in getActiveCall()
898 for (CallState cs : mCallStates) { in getActiveCall()
[all …]
DQnsTelephonyListener.java31 import android.telephony.CallState;
74 List<Consumer<List<CallState>>> mCallStatesConsumerList = new ArrayList<>();
89 @Annotation.CallState private int mCallState;
796 void onCallStateChanged(@Annotation.CallState int state); in onCallStateChanged()
806 void onCallStatesChanged(List<CallState> callStateList); in onCallStatesChanged()
1188 public void onCallStateChanged(@Annotation.CallState int state) { in onCallStateChanged()
1205 public void onCallStatesChanged(List<CallState> callStateList) { in onCallStatesChanged()
1206 for (Consumer<List<CallState>> consumer : mCallStatesConsumerList) { in onCallStatesChanged()
1229 void addCallStatesChangedCallback(Consumer<List<CallState>> consumer) { in addCallStatesChangedCallback()
1233 void removeCallStatesChangedCallback(Consumer<List<CallState>> consumer) { in removeCallStatesChangedCallback()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dhfp.rs84 pub enum CallState { enum
97 state: CallState,
105 state: CallState,
192 pub type CallState = ffi::CallState; typedef

12