Searched refs:mImsPhone (Results 1 – 10 of 10) sorted by relevance
84 replaceInstance(ImsPhoneCallTracker.class, "mPhone", mImsCT, mImsPhone); in setUp()99 mConnectionUT = new ImsPhoneConnection(mImsPhone, mImsCall, mImsCT, mForeGroundCall, false); in testImsIncomingConnectionCorrectness()116 mConnectionUT = new ImsPhoneConnection(mImsPhone, String.format("+1 (700).555-41NN%c1234", in testImsIncomingConnectionCorrectness()129 mConnectionUT = new ImsPhoneConnection(mImsPhone, "+1 (700).555-41NN1234", mImsCT, in testImsUpdateStateForeGround()144 mConnectionUT = new ImsPhoneConnection(mImsPhone, mImsCall, mImsCT, mBackGroundCall, false); in testImsUpdateStateBackGround()157 mConnectionUT = new ImsPhoneConnection(mImsPhone, "+1 (700).555-41NN1234", mImsCT, in testImsUpdateStatePendingHold()169 mConnectionUT = new ImsPhoneConnection(mImsPhone, mImsCall, mImsCT, mForeGroundCall, false); in testUpdateAddressDisplay()202 mConnectionUT = new ImsPhoneConnection(mImsPhone, String.format("+1 (700).555-41NN%c1234", in testPostDialWait()225 mConnectionUT = new ImsPhoneConnection(mImsPhone, String.format("+1 (700).555-41NN%c1234", in testPostDialPause()255 mConnectionUT = new ImsPhoneConnection(mImsPhone, mImsCall, mImsCT, mForeGroundCall, false); in testSetWifiDeprecated()[all …]
57 replaceInstance(ImsPhoneCallTracker.class, "mPhone", mImsCT, mImsPhone); in setUp()60 when(mImsCT.getPhone()).thenReturn(mImsPhone); in setUp()135 verify(mImsPhone, times(1)).startRingbackTone(); in testUpdateRingBackTone()138 verify(mImsPhone, times(1)).stopRingbackTone(); in testUpdateRingBackTone()150 verify(mImsPhone, times(1)).startRingbackTone(); in testStopRingingOnHandover()155 verify(mImsPhone, times(1)).stopRingbackTone(); in testStopRingingOnHandover()
51 ImsPhone mImsPhone; field in ImsExternalCallTrackerTest61 mTracker = new ImsExternalCallTracker(mImsPhone, mImsPullCall, mCallNotifier); in setUp()
186 mImsManagerInstances.put(mImsPhone.getPhoneId(), mImsManager); in setUp()234 mCTUT = new ImsPhoneCallTracker(mImsPhone, Runnable::run); in setUp()321 verify(mImsPhone, times(0)).notifyForVideoCapabilityChanged(anyBoolean()); in testImsFeatureCapabilityChange()322 verify(mImsPhone, times(1)).onFeatureCapabilityChanged(); in testImsFeatureCapabilityChange()331 verify(mImsPhone, times(1)).notifyForVideoCapabilityChanged(eq(true)); in testImsFeatureCapabilityChange()343 verify(mImsPhone, times(1)).notifyNewRingingConnection((Connection) any()); in testImsMTCall()344 verify(mImsPhone, times(1)).notifyIncomingRing(); in testImsMTCall()491 verify(mImsPhone, times(2)).notifyNewRingingConnection((Connection) any()); in testImsMTCallAcceptHold()492 verify(mImsPhone, times(2)).notifyIncomingRing(); in testImsMTCallAcceptHold()871 verify(mImsPhone, never()).startOnHoldTone(nullable(Connection.class)); in testNoRemoteHoldtone()[all …]
150 final boolean isImsEnabled = mImsPhone != null && (mImsPhone.isVolteEnabled() in getServiceState()151 || mImsPhone.isVideoEnabled() in getServiceState()152 || mImsPhone.isWifiCallingEnabled()); in getServiceState()156 mImsPhone.getServiceState()); in getServiceState()
538 if (mImsPhone != null) { in getServiceState()540 mImsPhone.getServiceState()); in getServiceState()560 if (mImsPhone != null) { in getState()561 PhoneConstants.State imsState = mImsPhone.getState(); in getState()808 || (mImsPhone != null && mImsPhone.isInEmergencySmsMode()); in isInEmergencySmsMode()888 Phone imsPhone = mImsPhone; in acceptCall()928 if (mImsPhone != null && mImsPhone.canConference()) { in canConference()941 if (mImsPhone != null && mImsPhone.canConference()) { in conference()944 mImsPhone.conference(); in conference()1020 Phone imsPhone = mImsPhone; in getRingingCall()[all …]
331 protected Phone mImsPhone = null; field in Phone603 if (mImsPhone == null) { in createImsPhone()604 mImsPhone = PhoneFactory.makeImsPhone(mNotifier, this); in createImsPhone()605 CallManager.getInstance().registerPhone(mImsPhone); in createImsPhone()606 mImsPhone.registerForSilentRedial( in createImsPhone()713 if (mImsPhone != null) { in handleMessage()715 mImsPhone.notifyRedialConnectionChanged(cn); in handleMessage()719 if (mImsPhone != null) { in handleMessage()720 mImsPhone.notifyRedialConnectionChanged(null); in handleMessage()787 Phone imsPhone = mImsPhone; in handleSrvccStateChanged()[all …]
195 doReturn(imsServiceState).when(mImsPhone).getServiceState(); in testGetMergedServiceState()197 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testGetMergedServiceState()276 doReturn(imsServiceState).when(mImsPhone).getServiceState(); in testGetMergedServiceStateNoCsfb()278 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testGetMergedServiceStateNoCsfb()485 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testDial()928 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testEcmCancelledPreservedThroughSrvcc()931 doReturn(true).when(mImsPhone).isEcmCanceledForEmergency(); in testEcmCancelledPreservedThroughSrvcc()1365 doReturn(mImsServiceState).when(mImsPhone).getServiceState(); in setupTestSendUssd()1367 doReturn(true).when(mImsPhone).isWifiCallingEnabled(); in setupTestSendUssd()1370 doReturn(false).when(mImsPhone).isUtEnabled(); in setupTestSendUssd()[all …]
154 protected ImsPhone mImsPhone; field in TelephonyTest504 doReturn(mContext).when(mImsPhone).getContext(); in setUp()508 doReturn(mServiceState).when(mImsPhone).getServiceState(); in setUp()509 doReturn(mPhone).when(mImsPhone).getDefaultPhone(); in setUp()526 doReturn(mVoiceCallSessionStats).when(mImsPhone).getVoiceCallSessionStats(); in setUp()
1454 doReturn(mImsPhone).when(mPhone).getImsPhone(); in singleCall_srvccFailed()1455 doReturn(new ArrayList(List.of(mImsConnection0))).when(mImsPhone).getHandoverConnection(); in singleCall_srvccFailed()1528 doReturn(mImsPhone).when(mPhone).getImsPhone(); in singleCall_srvccCanceled()1529 doReturn(new ArrayList(List.of(mImsConnection0))).when(mImsPhone).getHandoverConnection(); in singleCall_srvccCanceled()1593 doReturn(mImsPhone).when(mPhone).getImsPhone(); in singleCall_srvccSuccess()1594 doReturn(new ArrayList(List.of(mImsConnection0))).when(mImsPhone).getHandoverConnection(); in singleCall_srvccSuccess()1678 doReturn(mImsPhone).when(mPhone).getImsPhone(); in concurrentCalls_srvcc()1680 .when(mImsPhone).getHandoverConnection(); in concurrentCalls_srvcc()1807 doReturn(mImsPhone).when(mPhone).getImsPhone(); in singleWifiCall_preferred()1808 doReturn(true).when(mImsPhone).isWifiCallingEnabled(); in singleWifiCall_preferred()[all …]