Home
last modified time | relevance | path

Searched refs:mImsStateTracker (Results 1 – 11 of 11) sorted by relevance

/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DImsStateTrackerTest.java90 private ImsStateTracker mImsStateTracker; field in ImsStateTrackerTest
109 mImsStateTracker = new ImsStateTracker(mContext, SLOT_0, mLooper); in setUp()
118 mImsStateTracker.destroy(); in tearDown()
119 mImsStateTracker = null; in tearDown()
131 assertEquals(SLOT_0, mImsStateTracker.getSlotId()); in testInit()
132 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, mImsStateTracker.getSubId()); in testInit()
138 mImsStateTracker.start(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in testStartWithInvalidSubId()
140 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, mImsStateTracker.getSubId()); in testStartWithInvalidSubId()
147 mImsStateTracker.start(SUB_1); in testStart()
149 assertEquals(SUB_1, mImsStateTracker.getSubId()); in testStart()
[all …]
DTelephonyDomainSelectionServiceTest.java74 return mImsStateTracker;
132 @Mock private ImsStateTracker mImsStateTracker; field in TelephonyDomainSelectionServiceTest
189 mImsStateTracker = null; in tearDown()
212 verify(mImsStateTracker).start(eq(SUB_1)); in testOnDomainSelection()
229 verify(mImsStateTracker, never()).start(anyInt()); in testOnDomainSelectionWithInvalidSelectorType()
246 verify(mImsStateTracker).start(eq(SUB_1)); in testOnDomainSelectionTwiceWithDestroy()
262 verify(mImsStateTracker).start(eq(SUB_2)); in testOnDomainSelectionTwiceWithDestroy()
279 verify(mImsStateTracker).start(eq(SUB_1)); in testOnDomainSelectionTwiceWithoutDestroy()
292 verify(mImsStateTracker).start(eq(SUB_2)); in testOnDomainSelectionTwiceWithoutDestroy()
303 verify(mImsStateTracker).updateServiceState(eq(mServiceState)); in testOnServiceStateUpdated()
[all …]
DSmsDomainSelectorTest.java66 @Mock private ImsStateTracker mImsStateTracker; field in SmsDomainSelectorTest
86 mLooper, mImsStateTracker, mDomainSelectorDestroyListener); in setUp()
98 verify(mImsStateTracker).removeImsStateListener(eq(mDomainSelector)); in tearDown()
109 mImsStateTracker = null; in tearDown()
367 when(mImsStateTracker.isMmTelFeatureAvailable()).thenReturn(true); in setUpImsStateTracker()
368 when(mImsStateTracker.isImsRegistered()) in setUpImsStateTracker()
370 when(mImsStateTracker.isImsRegisteredOverWlan()) in setUpImsStateTracker()
372 when(mImsStateTracker.getImsAccessNetworkType()).thenReturn(accessNetworkType); in setUpImsStateTracker()
373 when(mImsStateTracker.isImsSmsCapable()).thenReturn(smsCapable); in setUpImsStateTracker()
378 when(mImsStateTracker.isMmTelFeatureAvailable()).thenReturn(true); in setUpImsStateTracker()
[all …]
DEmergencySmsDomainSelectorTest.java80 @Mock private ImsStateTracker mImsStateTracker; field in EmergencySmsDomainSelectorTest
123 mLooper, mImsStateTracker, mDomainSelectorDestroyListener); in setUp()
127 verify(mImsStateTracker).addServiceStateListener(serviceStateListenerCaptor.capture()); in setUp()
133 verify(mImsStateTracker).addBarringInfoListener(barringInfoListenerCaptor.capture()); in setUp()
147 verify(mImsStateTracker).removeImsStateListener(eq(mDomainSelector)); in tearDown()
148 verify(mImsStateTracker).removeBarringInfoListener(eq(mDomainSelector)); in tearDown()
149 verify(mImsStateTracker).removeServiceStateListener(eq(mDomainSelector)); in tearDown()
976 when(mImsStateTracker.isMmTelFeatureAvailable()).thenReturn(mmTelFeatureAvailable); in setUpImsStateTracker()
977 when(mImsStateTracker.isImsRegistered()) in setUpImsStateTracker()
979 when(mImsStateTracker.isImsRegisteredOverWlan()) in setUpImsStateTracker()
[all …]
DDomainSelectorBaseTest.java75 @Mock private ImsStateTracker mImsStateTracker; field in DomainSelectorBaseTest
90 mImsStateTracker, mDomainSelectorDestroyListener, TAG); in setUp()
106 mImsStateTracker = null; in tearDown()
DEmergencyCallDomainSelectorTest.java164 @Mock private ImsStateTracker mImsStateTracker; field in EmergencyCallDomainSelectorTest
4371 mImsStateTracker, mDestroyListener, mCsrdCtrl, mEpdnHelper);
4416 doReturn(isWifi).when(mImsStateTracker).isImsRegisteredOverWlan();
4417 doReturn(true).when(mImsStateTracker).isImsRegistered();
4419 doReturn(true).when(mImsStateTracker).isImsVoiceCapable();
4424 doReturn(false).when(mImsStateTracker).isImsRegistered();
4426 doReturn(false).when(mImsStateTracker).isImsVoiceCapable();
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DNormalCallDomainSelector.java76 mImsStateTracker.addServiceStateListener(this); in NormalCallDomainSelector()
77 mImsStateTracker.addImsStateListener(this); in NormalCallDomainSelector()
170 mImsStateTracker.removeServiceStateListener(this); in finishSelection()
171 mImsStateTracker.removeImsStateListener(this); in finishSelection()
211 + mImsStateTracker.isImsRegistered()); in onImsRegistrationStateChanged()
218 logd("onImsMmTelCapabilitiesChanged. ImsVoiceCap: " + mImsStateTracker.isImsVoiceCapable() in onImsMmTelCapabilitiesChanged()
219 + " ImsVideoCap: " + mImsStateTracker.isImsVideoCapable()); in onImsMmTelCapabilitiesChanged()
240 if (mImsStateTracker.isImsRegisteredOverWlan()) { in notifyPsSelected()
391 if (mImsStateTracker.isImsRegistered()) { in selectDomain()
406 if (!mImsStateTracker.isMmTelFeatureAvailable()) { in selectDomain()
[all …]
DSmsDomainSelector.java57 mImsStateTracker.removeImsStateListener(this); in destroy()
109 mImsStateTracker.addImsStateListener(this); in selectDomain()
129 return mImsStateTracker.isImsSmsCapable() in isSmsOverImsAvailable()
130 && mImsStateTracker.isImsRegistered() in isSmsOverImsAvailable()
131 && mImsStateTracker.isMmTelFeatureAvailable(); in isSmsOverImsAvailable()
140 logi("selectDomain: " + mImsStateTracker.imsStateToString()); in selectDomain()
143 if (mImsStateTracker.isImsRegisteredOverWlan()) { in selectDomain()
DEmergencySmsDomainSelector.java66 mImsStateTracker.addServiceStateListener(this); in EmergencySmsDomainSelector()
67 mImsStateTracker.addBarringInfoListener(this); in EmergencySmsDomainSelector()
75 mImsStateTracker.removeServiceStateListener(this); in destroy()
76 mImsStateTracker.removeBarringInfoListener(this); in destroy()
175 logi("selectDomain: " + mImsStateTracker.imsStateToString()); in selectDomain()
181 if (mImsStateTracker.isImsRegisteredOverWlan()) { in selectDomain()
283 + ", mmTelFeatureAvailable=" + mImsStateTracker.isMmTelFeatureAvailable() in isImsEmergencySmsAvailable()
287 && mImsStateTracker.isMmTelFeatureAvailable() in isImsEmergencySmsAvailable()
DDomainSelectorBase.java56 protected final ImsStateTracker mImsStateTracker; field in DomainSelectorBase
70 mImsStateTracker = imsStateTracker; in DomainSelectorBase()
DEmergencyCallDomainSelector.java282 mImsStateTracker.addBarringInfoListener(this); in EmergencyCallDomainSelector()
283 mImsStateTracker.addImsStateListener(this); in EmergencyCallDomainSelector()
651 mImsRegistered = mImsStateTracker.isImsRegistered(); in onImsRegistrationStateChanged()
660 mIsVoiceCapable = mImsStateTracker.isImsVoiceCapable(); in onImsMmTelCapabilitiesChanged()
1553 ret = mImsStateTracker.isImsRegisteredOverWlan(); in isImsRegisteredOverWifi()
1568 ret = mImsStateTracker.isImsRegisteredOverCrossSim(); in isImsRegisteredOverCrossSim()
1928 mImsStateTracker.removeBarringInfoListener(this); in destroy()
1929 mImsStateTracker.removeImsStateListener(this); in destroy()