Home
last modified time | relevance | path

Searched refs:mRingingCall (Results 1 – 14 of 14) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java61 private SipCall mRingingCall = new SipCall(); field in SipPhone
76 mRingingCall = new SipCall(); in SipPhone()
108 if (mRingingCall.getState().isAlive()) { in takeIncomingCall()
130 SipConnection connection = mRingingCall.initIncomingCall(sipAudioCall, in takeIncomingCall()
135 mRingingCall.reset(); in takeIncomingCall()
145 mRingingCall.reset(); in takeIncomingCall()
155 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall()
156 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall()
159 mRingingCall.setMute(false); in acceptCall()
160 mRingingCall.acceptCall(); in acceptCall()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaCallTracker.java84 public GsmCdmaCall mRingingCall = new GsmCdmaCall(this); field in GsmCdmaCallTracker
131 toNotify.addAll(mRingingCall.getConnections());
551 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in acceptCall()
555 mPhone.getVoiceCallSessionStats().onRilAcceptCall(mRingingCall.getConnections()); in acceptCall()
557 } else if (mRingingCall.getState() == GsmCdmaCall.State.WAITING) { in acceptCall()
561 GsmCdmaConnection cwConn = (GsmCdmaConnection)(mRingingCall.getLatestConnection()); in acceptCall()
567 cwConn.updateParent(mRingingCall, mForegroundCall); in acceptCall()
580 if (mRingingCall.getState().isRinging()) { in rejectCall()
597 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
665 if (mRingingCall.isRinging()) { in checkForDialIssues()
[all …]
DGsmCdmaConnection.java973 return mParent == null || mParent == mOwner.mRingingCall in isConnectingInOrOut()
993 return mOwner.mRingingCall; in parentFromDCState()
DGsmCdmaPhone.java1022 if (!mCT.mRingingCall.isRinging() in getRingingCall()
1028 return mCT.mRingingCall; in getRingingCall()
DServiceStateTracker.java4696 mPhone.mCT.mRingingCall.hangupIfAlive(); in powerOffRadioSafely()
4932 mPhone.mCT.mRingingCall.hangupIfAlive(); in hangupAndPowerOff()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallManagerTest.java60 GsmCdmaCall mRingingCall; field in CallManagerTest
72 doReturn(mRingingCall).when(mPhone).getRingingCall(); in setUp()
75 doReturn(mPhone).when(mRingingCall).getPhone(); in setUp()
78 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
81 doReturn(true).when(mRingingCall).isIdle(); in setUp()
123 CallManager.getInstance().rejectCall(mRingingCall); in testBasicRejectCall()
DDefaultPhoneNotifierTest.java59 GsmCdmaCall mRingingCall; field in DefaultPhoneNotifierTest
192 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testNotifyPreciseCallState()
208 doReturn(mRingingCall).when(mPhone).getRingingCall(); in testNotifyPreciseCallState()
235 doReturn(Call.State.ALERTING).when(mRingingCall).getState(); in testNotifyPreciseCallState()
DGsmCdmaCallTrackerTest.java232 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in setupRingingCall()
240 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in setupRingingCall()
266 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testMTCallAccept()
279 Connection connection = mCTUT.mRingingCall.getConnections().get(0); in testMTCallReject()
405 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mRingingCall.getState()); in testUpdatePhoneType()
DGsmCdmaConnectionTest.java55 mCT.mRingingCall = new GsmCdmaCall(mCT); in setUp()
DGsmCdmaPhoneTest.java458 mCT.mRingingCall = mGsmCdmaCall; in testHandleInCallMmiCommands()
486 mCT.mRingingCall = mGsmCdmaCall; in testDial()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java339 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
345 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
346 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in testImsMTCall()
348 (ImsPhoneConnection) mCTUT.mRingingCall.getConnections().get(0); in testImsMTCall()
358 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
367 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
444 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
452 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
453 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testImsMTCallReject()
493 assertEquals(ImsPhoneCall.State.WAITING, mCTUT.mRingingCall.getState()); in testImsMTCallAcceptHold()
[all …]
DImsPhoneTest.java104 private ImsPhoneCall mRingingCall; field in ImsPhoneTest
135 mImsCT.mRingingCall = mRingingCall; in setUp()
138 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
179 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
189 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
217 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallWaiting()
257 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallHold()
362 assertEquals(mRingingCall, mImsPhoneUT.getRingingCall()); in testGettersAndPassThroughs()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java208 (isUnknown ? mForegroundCall : mRingingCall), isUnknown); in onIncomingCall()
403 public ImsPhoneCall mRingingCall = new ImsPhoneCall(this, ImsPhoneCall.CONTEXT_RINGING); field in ImsPhoneCallTracker
1015 mRingingCall.dispose(); in dispose()
1538 if ((mRingingCall.getState() == ImsPhoneCall.State.WAITING) in acceptCall()
1544 ImsCall ringingCall = mRingingCall.getImsCall(); in acceptCall()
1545 if (mForegroundCall.hasConnections() && mRingingCall.hasConnections()) { in acceptCall()
1556 mPhone.getVoiceCallSessionStats().onImsAcceptCall(mRingingCall.getConnections()); in acceptCall()
1565 } else if (mRingingCall.getState().isRinging()) { in acceptCall()
1570 ImsCall imsCall = mRingingCall.getImsCall(); in acceptCall()
1573 mRingingCall.getConnections()); in acceptCall()
[all …]
DImsPhone.java590 return mCT.mRingingCall; in getRingingCall()