Home
last modified time | relevance | path

Searched refs:mSubscriptionController (Results 1 – 17 of 17) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java155 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController).getSubId(0); in setUp()
160 doReturn(new int[]{}).when(mSubscriptionController) in setUp()
179 doReturn(Arrays.asList(mSubInfo)).when(mSubscriptionController) in testSimAbsent()
181 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController) in testSimAbsent()
188 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent()
194 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent()
200 doReturn(Arrays.asList(mSubInfo)).when(mSubscriptionController) in testSimAbsentAndInactive()
202 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController) in testSimAbsentAndInactive()
208 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive()
217 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsentAndInactive()
[all …]
DPhoneSwitcherTest.java386 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredData()
449 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataModemCommand()
490 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataWithValidation()
803 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataCallback()
945 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testValidationOffSwitch_shouldSwitchOnNetworkAvailable()
981 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testValidationOffSwitch_shouldSwitchOnTimeOut()
1194 doReturn(mDefaultDataSub).when(mSubscriptionController).getDefaultDataSubId(); in initializeSubControllerMock()
1204 }).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in initializeSubControllerMock()
1215 }).when(mSubscriptionController).isActiveSubId(anyInt()); in initializeSubControllerMock()
1220 doReturn(mDefaultDataSub).when(mSubscriptionController).getDefaultDataSubId(); in setDefaultDataSubId()
DPhoneSubInfoControllerTest.java58 doReturn(0).when(mSubscriptionController).getPhoneId(eq(0)); in setUp()
59 doReturn(1).when(mSubscriptionController).getPhoneId(eq(1)); in setUp()
62 doReturn(true).when(mSubscriptionController).isActiveSubId(0, TAG, FEATURE_ID); in setUp()
63 doReturn(true).when(mSubscriptionController).isActiveSubId(1, TAG, FEATURE_ID); in setUp()
67 mServiceManagerMockedServices.put("isub", mSubscriptionController); in setUp()
68 doReturn(mSubscriptionController).when(mSubscriptionController) in setUp()
DGsmCdmaPhoneTest.java1022 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubscriptionController). in testCallForwardingIndicator()
1029 doReturn(subId1).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator()
1051 doReturn(subId2).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator()
1060 doReturn(subId1).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator()
1219 verify(mSubscriptionController, never()).getSubInfoForIccId(any()); in testReapplyUiccApplicationEnablementNotNeeded()
1227 verify(mSubscriptionController).getSubInfoForIccId(iccId); in testReapplyUiccApplicationEnablementNotNeeded()
DCellularNetworkValidatorTest.java75 doReturn(true).when(mSubscriptionController).isActiveSubId(anyInt()); in setUp()
DTelephonyTest.java192 protected SubscriptionController mSubscriptionController; field in TelephonyTest
651 replaceInstance(SubscriptionController.class, "sInstance", null, mSubscriptionController); in setUp()
DServiceStateTrackerTest.java1580 doReturn(mSubInfo).when(mSubscriptionController).getActiveSubscriptionInfo( in testSetPsNotifications()
1612 doReturn(mSubInfo).when(mSubscriptionController) in testSetCsNotifications()
1645 doReturn(mSubInfo).when(mSubscriptionController) in testSetCsNormalNotifications()
1677 doReturn(mSubInfo).when(mSubscriptionController) in testSetCsEmergencyNotifications()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsManagerTest.java94 doReturn(mSubId).when(mSubscriptionController).getSubId(mPhoneId); in setUp()
96 doReturn(mSubscriptionController).when(mBinder).queryLocalInterface(anyString()); in setUp()
99 doReturn("-1").when(mSubscriptionController).getSubscriptionProperty(anyInt(), anyString(), in setUp()
146 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
153 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
161 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
168 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
175 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
182 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
194 verify(mSubscriptionController, times(1)).setSubscriptionProperty( in testSetValues()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataEnabledSettingsTest.java67 doReturn(mRules).when(mSubscriptionController).getDataEnabledOverrideRules(anyInt()); in setUp()
74 }).when(mSubscriptionController).setDataEnabledOverrideRules(anyInt(), anyString()); in setUp()
92 verify(mSubscriptionController).setDataEnabledOverrideRules(anyInt(), in testSetDataAllowedInVoiceCall()
96 clearInvocations(mSubscriptionController); in testSetDataAllowedInVoiceCall()
99 verify(mSubscriptionController).setDataEnabledOverrideRules(anyInt(), in testSetDataAllowedInVoiceCall()
110 verify(mSubscriptionController).setDataEnabledOverrideRules(anyInt(), in testSetAlwaysAllowMmsData()
115 clearInvocations(mSubscriptionController); in testSetAlwaysAllowMmsData()
118 verify(mSubscriptionController).setDataEnabledOverrideRules(anyInt(), in testSetAlwaysAllowMmsData()
DTelephonyNetworkFactoryTest.java195 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testActive()
268 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testRequests()
282 doReturn(altSubId).when(mSubscriptionController).getSubIdUsingPhoneId(altPhoneId); in testRequests()
296 doReturn(unusedSubId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testRequests()
306 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testRequests()
323 doReturn(0).when(mSubscriptionController).getSubIdUsingPhoneId(0); in testHandoverNoLiveData()
362 doReturn(0).when(mSubscriptionController).getSubIdUsingPhoneId(0); in testHandoverActivatingData()
DDataEnabledOverrideTest.java67 doReturn(2).when(mSubscriptionController).getDefaultSmsSubId(); in testOverrideEnabled()
97 doReturn(2).when(mSubscriptionController).getDefaultSmsSubId(); in testUpdateRules()
210 doReturn(2).when(mSubscriptionController).getDefaultSmsSubId(); in testSetDataAllowedInVoiceCall()
DRetryManagerTest.java132 replaceInstance(SubscriptionController.class, "sInstance", null, mSubscriptionController); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorPhoneSwitcher.java169 final int ddsSubId = mSubscriptionController.getDefaultDataSubId(); in handleMessage()
170 final int ddsPhoneId = mSubscriptionController.getPhoneId(ddsSubId); in handleMessage()
251 final int primaryDataSubId = mSubscriptionController.getDefaultDataSubId(); in onEvaluate()
252 final int ddsPhoneId = mSubscriptionController.getPhoneId(primaryDataSubId); in onEvaluate()
266 int sub = mSubscriptionController.getSubIdUsingPhoneId(i); in onEvaluate()
423 …return mSubscriptionController.isActiveSubId(mPhoneSubscriptions[phoneId]) && isUiccApplicationEna… in isUiccProvisioned()
436 if (mSubscriptionController.isActiveSubId(mPhoneSubscriptions[phoneId])) { in deactivate()
524 int ddsSubId = mSubscriptionController.getDefaultDataSubId(); in handleConnectMaxFailure()
525 int ddsPhoneId = mSubscriptionController.getPhoneId(ddsSubId); in handleConnectMaxFailure()
533 int[] subId = mSubscriptionController.getSubId(phoneId); in enforceDds()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java160 protected final SubscriptionController mSubscriptionController; field in PhoneSwitcher
361 mSubscriptionController = SubscriptionController.getInstance(); in PhoneSwitcher()
722 int subId = mSubscriptionController.getSubIdUsingPhoneId(phoneIdForRequest); in createApnRepository()
798 final int primaryDataSubId = mSubscriptionController.getDefaultDataSubId(); in onEvaluate()
810 int sub = mSubscriptionController.getSubIdUsingPhoneId(i); in onEvaluate()
1053 if (mSubscriptionController.isActiveSubId(mOpptDataSubId)) { in getSubIdForDefaultNetworkRequests()
1096 mSubscriptionController.getSubIdUsingPhoneId(mPreferredDataPhoneId)); in updatePreferredDataPhoneId()
1129 mSubscriptionController.getSubIdUsingPhoneId(phoneId) == INVALID_SUBSCRIPTION_ID in shouldApplyNetworkRequest()
1180 if (!mSubscriptionController.isActiveSubId(subId) in setOpportunisticDataSubscription()
1272 if (!mSubscriptionController.isActiveSubId(subId)) { in confirmSwitch()
[all …]
DServiceStateTracker.java352 private SubscriptionController mSubscriptionController; field in ServiceStateTracker
406 mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), mCurShowPlmn, in onSubscriptionsChanged()
631 mSubscriptionController = SubscriptionController.getInstance(); in ServiceStateTracker()
2607 if (!mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), in notifySpnDisplayUpdate()
4207 SubscriptionInfo info = mSubscriptionController in setNotification()
4246 final int simNumber = mSubscriptionController.getSlotIndex(mSubId) + 1; in setNotification()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java73 private final SubscriptionController mSubscriptionController; field in TelephonyNetworkFactory
99 mSubscriptionController = SubscriptionController.getInstance(); in TelephonyNetworkFactory()
101 setCapabilityFilter(makeNetworkFilter(mSubscriptionController, mPhone.getPhoneId())); in TelephonyNetworkFactory()
273 final int newSubscriptionId = mSubscriptionController.getSubIdUsingPhoneId( in onSubIdChange()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccProfileTest.java564 doReturn(mSubscriptionInfo).when(mSubscriptionController) in testSetOperatorBrandOverride()
582 doReturn(mSubscriptionInfo).when(mSubscriptionController) in testSetOperatorBrandOverrideIccNotMatch()