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.java81 public GsmCdmaCall mRingingCall = new GsmCdmaCall(this); field in GsmCdmaCallTracker
123 toNotify.addAll(mRingingCall.getConnections());
523 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in acceptCall()
528 } else if (mRingingCall.getState() == GsmCdmaCall.State.WAITING) { in acceptCall()
532 GsmCdmaConnection cwConn = (GsmCdmaConnection)(mRingingCall.getLatestConnection()); in acceptCall()
538 cwConn.updateParent(mRingingCall, mForegroundCall); in acceptCall()
551 if (mRingingCall.getState().isRinging()) { in rejectCall()
567 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
622 && !mRingingCall.isRinging() in canDial()
641 !mRingingCall.isRinging(), in canDial()
[all …]
DGsmCdmaConnection.java921 return mParent == null || mParent == mOwner.mRingingCall in isConnectingInOrOut()
941 return mOwner.mRingingCall; in parentFromDCState()
DServiceStateTracker.java3952 mPhone.mCT.mRingingCall.hangupIfAlive(); in powerOffRadioSafely()
4168 mPhone.mCT.mRingingCall.hangupIfAlive(); in hangupAndPowerOff()
DGsmCdmaPhone.java840 return mCT.mRingingCall; in getRingingCall()
/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()
157 CallManager.getInstance().acceptCall(mRingingCall); in testBasicAcceptCall()
164 CallManager.getInstance().rejectCall(mRingingCall); in testBasicRejectCall()
DDefaultPhoneNotifierTest.java61 GsmCdmaCall mRingingCall; field in DefaultPhoneNotifierTest
196 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testNotifyPreciseCallState()
212 doReturn(mRingingCall).when(mPhone).getRingingCall(); in testNotifyPreciseCallState()
233 doReturn(Call.State.ALERTING).when(mRingingCall).getState(); in testNotifyPreciseCallState()
DGsmCdmaCallTrackerTest.java241 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testMTCallRinging()
248 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in testMTCallRinging()
271 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testMTCallAccept()
280 Connection connection = mCTUT.mRingingCall.getConnections().get(0); in testMTCallReject()
412 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mRingingCall.getState()); in testUpdatePhoneType()
DGsmCdmaConnectionTest.java48 mCT.mRingingCall = new GsmCdmaCall(mCT); in setUp()
DGsmCdmaPhoneTest.java334 mCT.mRingingCall = mGsmCdmaCall; in testHandleInCallMmiCommands()
362 mCT.mRingingCall = mGsmCdmaCall; in testDial()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java346 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
352 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCall()
353 assertEquals(1, mCTUT.mRingingCall.getConnections().size()); in testImsMTCall()
355 (ImsPhoneConnection) mCTUT.mRingingCall.getConnections().get(0); in testImsMTCall()
363 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
372 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallAccept()
382 assertTrue(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
390 assertFalse(mCTUT.mRingingCall.isRinging()); in testImsMTCallReject()
391 assertEquals(0, mCTUT.mRingingCall.getConnections().size()); in testImsMTCallReject()
431 assertEquals(ImsPhoneCall.State.WAITING, mCTUT.mRingingCall.getState()); in testImsMTCallAcceptHold()
[all …]
DImsPhoneTest.java85 private ImsPhoneCall mRingingCall; field in ImsPhoneTest
120 mImsCT.mRingingCall = mRingingCall; in setUp()
123 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
155 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
165 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
193 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallWaiting()
219 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallHold()
330 assertEquals(mRingingCall, mImsPhoneUT.getRingingCall()); in testGettersAndPassThroughs()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java177 (isUnknown ? mForegroundCall : mRingingCall), isUnknown); in onIncomingCall()
290 public ImsPhoneCall mRingingCall = new ImsPhoneCall(this, ImsPhoneCall.CONTEXT_RINGING); field in ImsPhoneCallTracker
817 mRingingCall.dispose(); in dispose()
1236 if ((mRingingCall.getState() == ImsPhoneCall.State.WAITING) in acceptCall()
1242 ImsCall ringingCall = mRingingCall.getImsCall(); in acceptCall()
1243 if (mForegroundCall.hasConnections() && mRingingCall.hasConnections()) { in acceptCall()
1262 } else if (mRingingCall.getState().isRinging()) { in acceptCall()
1267 ImsCall imsCall = mRingingCall.getImsCall(); in acceptCall()
1286 if (mRingingCall.getState().isRinging()) { in rejectCall()
1287 hangup(mRingingCall); in rejectCall()
[all …]
DImsPhone.java406 return mCT.mRingingCall; in getRingingCall()