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
74 mRingingCall = new SipCall(); in SipPhone()
106 if (mRingingCall.getState().isAlive()) { in takeIncomingCall()
128 SipConnection connection = mRingingCall.initIncomingCall(sipAudioCall, in takeIncomingCall()
133 mRingingCall.reset(); in takeIncomingCall()
143 mRingingCall.reset(); in takeIncomingCall()
153 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall()
154 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall()
157 mRingingCall.setMute(false); in acceptCall()
158 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());
560 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in acceptCall()
565 } else if (mRingingCall.getState() == GsmCdmaCall.State.WAITING) { in acceptCall()
569 GsmCdmaConnection cwConn = (GsmCdmaConnection)(mRingingCall.getLatestConnection()); in acceptCall()
575 cwConn.updateParent(mRingingCall, mForegroundCall); in acceptCall()
588 if (mRingingCall.getState().isRinging()) { in rejectCall()
605 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
674 if (mRingingCall.isRinging()) { in checkForDialIssues()
714 mRingingCall.clearDisconnected(); in internalClearDisconnected()
[all …]
DGsmCdmaConnection.java962 return mParent == null || mParent == mOwner.mRingingCall in isConnectingInOrOut()
982 return mOwner.mRingingCall; in parentFromDCState()
DServiceStateTracker.java4488 mPhone.mCT.mRingingCall.hangupIfAlive(); in powerOffRadioSafely()
4691 mPhone.mCT.mRingingCall.hangupIfAlive(); in hangupAndPowerOff()
DGsmCdmaPhone.java937 return mCT.mRingingCall; in getRingingCall()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallManagerTest.java56 GsmCdmaCall mRingingCall; field in CallManagerTest
105 doReturn(mRingingCall).when(mPhone).getRingingCall(); in setUp()
108 doReturn(mPhone).when(mRingingCall).getPhone(); in setUp()
111 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
114 doReturn(true).when(mRingingCall).isIdle(); in setUp()
157 CallManager.getInstance().rejectCall(mRingingCall); in testBasicRejectCall()
DDefaultPhoneNotifierTest.java59 GsmCdmaCall mRingingCall; field in DefaultPhoneNotifierTest
190 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testNotifyPreciseCallState()
206 doReturn(mRingingCall).when(mPhone).getRingingCall(); in testNotifyPreciseCallState()
233 doReturn(Call.State.ALERTING).when(mRingingCall).getState(); in testNotifyPreciseCallState()
DGsmCdmaCallTrackerTest.java252 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in setupRingingCall()
262 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in setupRingingCall()
290 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testMTCallAccept()
303 Connection connection = mCTUT.mRingingCall.getConnections().get(0); in testMTCallReject()
438 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mRingingCall.getState()); in testUpdatePhoneType()
DGsmCdmaConnectionTest.java48 mCT.mRingingCall = new GsmCdmaCall(mCT); in setUp()
DGsmCdmaPhoneTest.java300 mCT.mRingingCall = mGsmCdmaCall; in testHandleInCallMmiCommands()
328 mCT.mRingingCall = mGsmCdmaCall; in testDial()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java354 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
360 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
361 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in testImsMTCall()
363 (ImsPhoneConnection) mCTUT.mRingingCall.getConnections().get(0); in testImsMTCall()
371 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
380 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
390 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
398 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
399 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testImsMTCallReject()
439 assertEquals(ImsPhoneCall.State.WAITING, mCTUT.mRingingCall.getState()); in testImsMTCallAcceptHold()
[all …]
DImsPhoneTest.java90 private ImsPhoneCall mRingingCall; field in ImsPhoneTest
125 mImsCT.mRingingCall = mRingingCall; in setUp()
128 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
160 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
170 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
198 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallWaiting()
224 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallHold()
333 assertEquals(mRingingCall, mImsPhoneUT.getRingingCall()); in testGettersAndPassThroughs()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java194 (isUnknown ? mForegroundCall : mRingingCall), isUnknown); in onIncomingCall()
338 public ImsPhoneCall mRingingCall = new ImsPhoneCall(this, ImsPhoneCall.CONTEXT_RINGING); field in ImsPhoneCallTracker
691 mRingingCall.dispose(); in dispose()
1132 if ((mRingingCall.getState() == ImsPhoneCall.State.WAITING) in acceptCall()
1138 ImsCall ringingCall = mRingingCall.getImsCall(); in acceptCall()
1139 if (mForegroundCall.hasConnections() && mRingingCall.hasConnections()) { in acceptCall()
1158 } else if (mRingingCall.getState().isRinging()) { in acceptCall()
1163 ImsCall imsCall = mRingingCall.getImsCall(); in acceptCall()
1182 if (mRingingCall.getState().isRinging()) { in rejectCall()
1183 hangup(mRingingCall); in rejectCall()
[all …]
DImsPhone.java445 return mCT.mRingingCall; in getRingingCall()