/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
GsmCdmaCallTrackerTest.java | 96 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); 98 assertEquals(0, mCTUT.mForegroundCall.getConnections().size()); 107 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); 108 assertEquals(1, mCTUT.mForegroundCall.getConnections().size()); 125 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); 135 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); 137 assertEquals(1, mCTUT.mForegroundCall.getConnections().size()); 140 mCTUT.hangup(mCTUT.mForegroundCall); 146 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); 147 assertEquals(0, mCTUT.mForegroundCall.getConnections().size()) [all...] |
DefaultPhoneNotifierTest.java | 55 GsmCdmaCall mForeGroundCall; 192 doReturn(Call.State.IDLE).when(mForeGroundCall).getState(); 200 doReturn(mForeGroundCall).when(mPhone).getForegroundCall(); 217 doReturn(Call.State.ACTIVE).when(mForeGroundCall).getState();
|
GsmCdmaConnectionTest.java | 46 mCT.mForegroundCall = new GsmCdmaCall(mCT);
|
GsmCdmaPhoneTest.java | 259 mCT.mForegroundCall = mGsmCdmaCall; 287 mCT.mForegroundCall = mGsmCdmaCall;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
ImsPhoneConnectionTest.java | 63 private ImsPhoneCall mForeGroundCall; 73 replaceInstance(ImsPhoneCallTracker.class, "mForegroundCall", mImsCT, mForeGroundCall); 79 doReturn(ImsPhoneCall.State.IDLE).when(mForeGroundCall).getState(); 91 mConnectionUT = new ImsPhoneConnection(mImsPhone, mImsCall, mImsCT, mForeGroundCall, false); 102 verify(mForeGroundCall, times(1)).attach((Connection) any(), 107 PhoneNumberUtils.PAUSE), mImsCT, mForeGroundCall, false); 111 verify(mForeGroundCall, times(1)).attachFake((Connection) any(), 120 mForeGroundCall, false); 122 doReturn(Call.State.DIALING).when(mForeGroundCall).getState() [all...] |
ImsPhoneCallTrackerTest.java | 252 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); 253 assertEquals(1, mCTUT.mForegroundCall.getConnections().size()); 277 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); 280 mCTUT.hangup(mCTUT.mForegroundCall); 286 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); 294 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); 309 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); 323 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); 331 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); 342 assertEquals(Call.State.DIALING, mCTUT.mForegroundCall.getState()) [all...] |
ImsPhoneTest.java | 74 private ImsPhoneCall mForegroundCall; 110 mImsCT.mForegroundCall = mForegroundCall; 113 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); 164 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); 182 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); 191 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); 217 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); 230 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); 247 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState() [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
CallAudioManager.java | 56 private Call mForegroundCall; 211 if (mForegroundCall == call) { 234 if (call != mForegroundCall) { 267 if (call != mForegroundCall) { 277 if (call == mForegroundCall && shouldRingback) { 322 return mForegroundCall; 326 if (mForegroundCall != null && mForegroundCall.getState() != CallState.ON_HOLD) { 327 return mForegroundCall; 398 mRinger.startRinging(mForegroundCall); [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
SipPhone.java | 62 private SipCall mForegroundCall = new SipCall(); 75 mForegroundCall = new SipCall(); 113 if (mForegroundCall.getState().isAlive() 127 boolean makeCallWait = mForegroundCall.getState().isAlive(); 200 if (mForegroundCall.getState() == SipCall.State.ACTIVE) { 203 if (mForegroundCall.getState() != SipCall.State.IDLE) { 208 mForegroundCall.setMute(false); 210 Connection c = mForegroundCall.dial(dialString); 229 mForegroundCall.switchWith(mBackgroundCall); 231 if (mForegroundCall.getState().isAlive()) mForegroundCall.unhold() [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneCallTracker.java | 123 " fg = " + mForegroundCall.getState() + 131 (isUnknown? mForegroundCall: mRingingCall), isUnknown); 141 if ((mForegroundCall.getState() != ImsPhoneCall.State.IDLE) || 187 public ImsPhoneCall mForegroundCall = new ImsPhoneCall(this, 287 mForegroundCall.dispose(); 370 if (mForegroundCall.getState() == ImsPhoneCall.State.ACTIVE) { 390 fgState = mForegroundCall.getState(); 405 checkForTestEmergencyNumber(dialString), this, mForegroundCall, 543 if (mForegroundCall.getState().isAlive() 549 && mForegroundCall.getState().isAlive()) [all...] |
ImsPhoneConnection.java | 656 //mForegroundCall should be IDLE 661 mParent = mOwner.mForegroundCall; [all...] |
ImsPhone.java | 311 return mCT.mForegroundCall; [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
GsmCdmaCallTracker.java | 79 public GsmCdmaCall mForegroundCall = new GsmCdmaCall(this); 120 toNotify.addAll(mForegroundCall.getConnections()); 242 connCopy = (List<Connection>) mForegroundCall.mConnections.clone(); 271 if (mForegroundCall.getState() == GsmCdmaCall.State.ACTIVE) { 293 if (mForegroundCall.getState() != GsmCdmaCall.State.IDLE) { 299 this, mForegroundCall); 405 if (mForegroundCall.getState() == GsmCdmaCall.State.ACTIVE) { 410 this, mForegroundCall); 452 if (!mForegroundCall.isIdle()) { 458 checkForTestEmergencyNumber(dialString), this, mForegroundCall); [all...] |
GsmCdmaConnection.java | 883 return mOwner.mForegroundCall; [all...] |
ServiceStateTracker.java | [all...] |
GsmCdmaPhone.java | 827 return mCT.mForegroundCall; [all...] |