/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionInfoUpdaterTest.java | 153 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController).getSubId(0); in setUp() 158 doReturn(new int[]{}).when(mSubscriptionController) in setUp() 177 doReturn(Arrays.asList(mSubInfo)).when(mSubscriptionController) in testSimAbsent() 179 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController) in testSimAbsent() 186 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent() 192 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent() 198 doReturn(Arrays.asList(mSubInfo)).when(mSubscriptionController) in testSimAbsentAndInactive() 200 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionController) in testSimAbsentAndInactive() 206 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive() 215 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsentAndInactive() [all …]
|
D | PhoneSwitcherTest.java | 387 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredData() 450 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataModemCommand() 497 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()
|
D | PhoneSubInfoControllerTest.java | 55 doReturn(0).when(mSubscriptionController).getPhoneId(eq(0)); in setUp() 56 doReturn(1).when(mSubscriptionController).getPhoneId(eq(1)); in setUp() 59 doReturn(true).when(mSubscriptionController).isActiveSubId(0, TAG, FEATURE_ID); in setUp() 60 doReturn(true).when(mSubscriptionController).isActiveSubId(1, TAG, FEATURE_ID); in setUp() 64 mServiceManagerMockedServices.put("isub", mSubscriptionController); in setUp() 65 doReturn(mSubscriptionController).when(mSubscriptionController) in setUp()
|
D | GsmCdmaPhoneTest.java | 1060 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubscriptionController). in testCallForwardingIndicator() 1067 doReturn(subId1).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator() 1089 doReturn(subId2).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator() 1098 doReturn(subId1).when(mSubscriptionController).getSubIdUsingPhoneId(anyInt()); in testCallForwardingIndicator() 1257 verify(mSubscriptionController, never()).getSubInfoForIccId(any()); in testReapplyUiccApplicationEnablementNotNeeded() 1265 verify(mSubscriptionController).getSubInfoForIccId(iccId); in testReapplyUiccApplicationEnablementNotNeeded()
|
D | CellularNetworkValidatorTest.java | 75 doReturn(true).when(mSubscriptionController).isActiveSubId(anyInt()); in setUp()
|
D | TelephonyTest.java | 189 protected SubscriptionController mSubscriptionController; field in TelephonyTest 641 replaceInstance(SubscriptionController.class, "sInstance", null, mSubscriptionController); in setUp()
|
D | ServiceStateTrackerTest.java | 1580 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/ |
D | ImsManagerTest.java | 94 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/ |
D | DataEnabledSettingsTest.java | 67 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()
|
D | TelephonyNetworkFactoryTest.java | 190 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testActive() 263 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testRequests() 277 doReturn(altSubId).when(mSubscriptionController).getSubIdUsingPhoneId(altPhoneId); in testRequests() 291 doReturn(unusedSubId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testRequests() 301 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testRequests() 318 doReturn(0).when(mSubscriptionController).getSubIdUsingPhoneId(0); in testHandoverNoLiveData()
|
D | DataEnabledOverrideTest.java | 67 doReturn(2).when(mSubscriptionController).getDefaultSmsSubId(); in testOverrideEnabled() 97 doReturn(2).when(mSubscriptionController).getDefaultSmsSubId(); in testUpdateRules() 210 doReturn(2).when(mSubscriptionController).getDefaultSmsSubId(); in testSetDataAllowedInVoiceCall()
|
D | RetryManagerTest.java | 132 replaceInstance(SubscriptionController.class, "sInstance", null, mSubscriptionController); in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/ |
D | VendorPhoneSwitcher.java | 169 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/ |
D | PhoneSwitcher.java | 159 protected final SubscriptionController mSubscriptionController; field in PhoneSwitcher 352 mSubscriptionController = SubscriptionController.getInstance(); in PhoneSwitcher() 713 int subId = mSubscriptionController.getSubIdUsingPhoneId(phoneIdForRequest); in createApnRepository() 789 final int primaryDataSubId = mSubscriptionController.getDefaultDataSubId(); in onEvaluate() 801 int sub = mSubscriptionController.getSubIdUsingPhoneId(i); in onEvaluate() 1044 if (mSubscriptionController.isActiveSubId(mOpptDataSubId)) { in getSubIdForDefaultNetworkRequests() 1086 mPreferredDataSubId = mSubscriptionController.getSubIdUsingPhoneId(mPreferredDataPhoneId); in updatePreferredDataPhoneId() 1119 mSubscriptionController.getSubIdUsingPhoneId(phoneId) == INVALID_SUBSCRIPTION_ID in shouldApplyNetworkRequest() 1170 if (!mSubscriptionController.isActiveSubId(subId) in setOpportunisticDataSubscription() 1262 if (!mSubscriptionController.isActiveSubId(subId)) { in confirmSwitch() [all …]
|
D | ServiceStateTracker.java | 351 private SubscriptionController mSubscriptionController; field in ServiceStateTracker 420 mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), mCurShowPlmn, in onSubscriptionsChanged() 641 mSubscriptionController = SubscriptionController.getInstance(); in ServiceStateTracker() 2618 if (!mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), in notifySpnDisplayUpdate() 4220 SubscriptionInfo info = mSubscriptionController in setNotification() 4259 final int simNumber = mSubscriptionController.getSlotIndex(mSubId) + 1; in setNotification()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 73 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/ |
D | UiccProfileTest.java | 565 doReturn(mSubscriptionInfo).when(mSubscriptionController) in testSetOperatorBrandOverride() 583 doReturn(mSubscriptionInfo).when(mSubscriptionController) in testSetOperatorBrandOverrideIccNotMatch()
|