Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java158 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController).getSubId(0); in setUp()
163 doReturn(new int[]{}).when(mSubscriptionController) in setUp()
183 doReturn(Arrays.asList(mSubInfo)).when(mSubscriptionController) in testSimAbsent()
185 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController) in testSimAbsent()
192 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent()
198 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent()
204 doReturn(Arrays.asList(mSubInfo)).when(mSubscriptionController) in testSimAbsentAndInactive()
206 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController) in testSimAbsentAndInactive()
213 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive()
222 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsentAndInactive()
[all …]
DPhoneSubInfoControllerTest.java52 doReturn(0).when(mSubscriptionController).getPhoneId(eq(0)); in setUp()
53 doReturn(1).when(mSubscriptionController).getPhoneId(eq(1)); in setUp()
55 doReturn(true).when(mSubscriptionController).isActiveSubId(0, TAG); in setUp()
56 doReturn(true).when(mSubscriptionController).isActiveSubId(1, TAG); in setUp()
58 mServiceManagerMockedServices.put("isub", mSubscriptionController); in setUp()
59 doReturn(mSubscriptionController).when(mSubscriptionController) in setUp()
DPhoneSwitcherTest.java514 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataWithValidation()
968 mContext, mSubscriptionController, this.getLooper(), in initialize()
1063 doReturn(mDefaultDataSub).when(mSubscriptionController).getDefaultDataSubId(); in initializeSubControllerMock()
1073 }).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in initializeSubControllerMock()
1084 }).when(mSubscriptionController).isActiveSubId(anyInt()); in initializeSubControllerMock()
1089 doReturn(mDefaultDataSub).when(mSubscriptionController).getDefaultDataSubId(); in setDefaultDataSubId()
DGsmCdmaPhoneTest.java845 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubscriptionController). in testCallForwardingIndicator()
852 doReturn(subId1).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator()
874 doReturn(subId2).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator()
883 doReturn(subId1).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator()
DTelephonyTest.java156 protected SubscriptionController mSubscriptionController; field in TelephonyTest
560 replaceInstance(SubscriptionController.class, "sInstance", null, mSubscriptionController); in setUp()
DServiceStateTrackerTest.java1392 doReturn(mSubInfo).when(mSubscriptionController).getActiveSubscriptionInfo( in testSetPsNotifications()
1424 doReturn(mSubInfo).when(mSubscriptionController) in testSetCsNotifications()
1457 doReturn(mSubInfo).when(mSubscriptionController) in testSetCsNormalNotifications()
1489 doReturn(mSubInfo).when(mSubscriptionController) in testSetCsEmergencyNotifications()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsManagerTest.java93 doReturn(mSubId).when(mSubscriptionController).getSubId(mPhoneId); in setUp()
95 doReturn(mSubscriptionController).when(mBinder).queryLocalInterface(anyString()); in setUp()
98 doReturn("-1").when(mSubscriptionController) in setUp()
143 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
149 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
156 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
162 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
168 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
174 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues()
185 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()
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/
DSubscriptionMonitor.java55 private final SubscriptionController mSubscriptionController; field in SubscriptionMonitor
78 mSubscriptionController = subscriptionController; in SubscriptionMonitor()
85 mDefaultDataSubId = mSubscriptionController.getDefaultDataSubId(); in SubscriptionMonitor()
86 mDefaultDataPhoneId = mSubscriptionController.getPhoneId(mDefaultDataSubId); in SubscriptionMonitor()
91 mPhoneSubId[phoneId] = mSubscriptionController.getSubIdUsingPhoneId(phoneId); in SubscriptionMonitor()
102 mSubscriptionController = null; in SubscriptionMonitor()
114 final int newSubId = mSubscriptionController.getSubIdUsingPhoneId(phoneId);
147 final int newDefaultDataSubId = mSubscriptionController.getDefaultDataSubId();
156 mSubscriptionController.getPhoneId(INVALID_SUBSCRIPTION_ID);
DPhoneSwitcher.java154 private final SubscriptionController mSubscriptionController; field in PhoneSwitcher
299 mSubscriptionController = null; in PhoneSwitcher()
345 mSubscriptionController = subscriptionController; in PhoneSwitcher()
746 final int primaryDataSubId = mSubscriptionController.getDefaultDataSubId(); in onEvaluate()
758 int sub = mSubscriptionController.getSubIdUsingPhoneId(i); in onEvaluate()
1006 if (mSubscriptionController.isActiveSubId(mOpptDataSubId)) { in getSubIdForDefaultNetworkRequests()
1048 mPreferredDataSubId = mSubscriptionController.getSubIdUsingPhoneId(mPreferredDataPhoneId); in updatePreferredDataPhoneId()
1075 mSubscriptionController.getSubIdUsingPhoneId(phoneId) == INVALID_SUBSCRIPTION_ID in shouldApplyNetworkRequest()
1131 if (!mSubscriptionController.isActiveSubId(subId) in setOpportunisticDataSubscription()
1195 if (!mSubscriptionController.isActiveSubId(subId)) { in onValidationDone()
[all …]
DServiceStateTracker.java329 private SubscriptionController mSubscriptionController; field in ServiceStateTracker
378 mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), mCurShowPlmn, in onSubscriptionsChanged()
594 mSubscriptionController = SubscriptionController.getInstance(); in ServiceStateTracker()
2508 if (!mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), in notifySpnDisplayUpdate()
4016 SubscriptionInfo info = mSubscriptionController in setNotification()
4054 final int simNumber = mSubscriptionController.getSlotIndex(mSubId) + 1; in setNotification()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java70 private final SubscriptionController mSubscriptionController; field in TelephonyNetworkFactory
97 mSubscriptionController = SubscriptionController.getInstance(); in TelephonyNetworkFactory()
99 setCapabilityFilter(makeNetworkFilter(mSubscriptionController, mPhone.getPhoneId())); in TelephonyNetworkFactory()
260 final int newSubscriptionId = mSubscriptionController.getSubIdUsingPhoneId( in onSubIdChange()