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/
DGsmCdmaCallTracker.java77 public GsmCdmaCall mRingingCall = new GsmCdmaCall(this); field in GsmCdmaCallTracker
119 toNotify.addAll(mRingingCall.getConnections());
498 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in acceptCall()
503 } else if (mRingingCall.getState() == GsmCdmaCall.State.WAITING) { in acceptCall()
507 GsmCdmaConnection cwConn = (GsmCdmaConnection)(mRingingCall.getLatestConnection()); in acceptCall()
513 cwConn.updateParent(mRingingCall, mForegroundCall); in acceptCall()
526 if (mRingingCall.getState().isRinging()) { in rejectCall()
542 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
597 && !mRingingCall.isRinging() in canDial()
616 !mRingingCall.isRinging(), in canDial()
[all …]
DGsmCdmaConnection.java872 return mParent == null || mParent == mOwner.mRingingCall in isConnectingInOrOut()
892 return mOwner.mRingingCall; in parentFromDCState()
DServiceStateTracker.java4202 mPhone.mCT.mRingingCall.hangupIfAlive(); in powerOffRadioSafely()
4329 mPhone.mCT.mRingingCall.hangupIfAlive(); in hangupAndPowerOff()
DGsmCdmaPhone.java848 return mCT.mRingingCall; in getRingingCall()
/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/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java226 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
233 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
234 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in testImsMTCall()
241 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
250 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
260 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
268 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
269 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testImsMTCallReject()
310 assertEquals(ImsPhoneCall.State.WAITING, mCTUT.mRingingCall.getState()); in testImsMTCallAcceptHold()
324 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallAcceptHold()
DImsPhoneTest.java78 private ImsPhoneCall mRingingCall; field in ImsPhoneTest
112 mImsCT.mRingingCall = mRingingCall; in setUp()
115 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
145 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
155 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
183 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallWaiting()
209 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallHold()
320 assertEquals(mRingingCall, mImsPhoneUT.getRingingCall()); in testGettersAndPassThroughs()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallManagerTest.java57 GsmCdmaCall mRingingCall; field in CallManagerTest
106 doReturn(mRingingCall).when(mPhone).getRingingCall(); in setUp()
109 doReturn(mPhone).when(mRingingCall).getPhone(); in setUp()
112 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
115 doReturn(true).when(mRingingCall).isIdle(); in setUp()
155 CallManager.getInstance().acceptCall(mRingingCall); in testBasicAcceptCall()
162 CallManager.getInstance().rejectCall(mRingingCall); in testBasicRejectCall()
DDefaultPhoneNotifierTest.java59 GsmCdmaCall mRingingCall; field in DefaultPhoneNotifierTest
194 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testNotifyPreciseCallState()
210 doReturn(mRingingCall).when(mPhone).getRingingCall(); in testNotifyPreciseCallState()
231 doReturn(Call.State.ALERTING).when(mRingingCall).getState(); in testNotifyPreciseCallState()
DGsmCdmaCallTrackerTest.java227 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testMTCallRinging()
234 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in testMTCallRinging()
255 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testMTCallAccept()
264 Connection mConnection = mCTUT.mRingingCall.getConnections().get(0); in testMTCallReject()
DGsmCdmaConnectionTest.java48 mCT.mRingingCall = new GsmCdmaCall(mCT); in setUp()
DGsmCdmaPhoneTest.java261 mCT.mRingingCall = mGsmCdmaCall; in testHandleInCallMmiCommands()
289 mCT.mRingingCall = mGsmCdmaCall; in testDial()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java131 (isUnknown? mForegroundCall: mRingingCall), isUnknown);
186 public ImsPhoneCall mRingingCall = new ImsPhoneCall(this, ImsPhoneCall.CONTEXT_RINGING); field in ImsPhoneCallTracker
285 mRingingCall.dispose(); in dispose()
548 if ((mRingingCall.getState() == ImsPhoneCall.State.WAITING) in acceptCall()
554 } else if (mRingingCall.getState().isRinging()) { in acceptCall()
559 ImsCall imsCall = mRingingCall.getImsCall(); in acceptCall()
577 if (mRingingCall.getState().isRinging()) { in rejectCall()
578 hangup(mRingingCall); in rejectCall()
598 if (mRingingCall.getState() == ImsPhoneCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
710 && !mRingingCall.isRinging() in canDial()
[all …]
DImsPhone.java323 return mCT.mRingingCall; in getRingingCall()