/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | MultiSimSettingControllerTest.java | 155 doReturn(mSubscriptionManagerService).when(mIBinder).queryLocalInterface(anyString()); in setUp() 159 doReturn(mSubscriptionManagerService).when(mIBinder) in setUp() 168 doReturn(1).when(mSubscriptionManagerService).getDefaultDataSubId(); in setUp() 169 doReturn(1).when(mSubscriptionManagerService).getDefaultVoiceSubId(); in setUp() 170 doReturn(1).when(mSubscriptionManagerService).getDefaultSmsSubId(); in setUp() 182 }).when(mSubscriptionManagerService).getSubscriptionInfo(anyInt()); in setUp() 188 }).when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in setUp() 198 }).when(mSubscriptionManagerService).getActiveSubscriptionInfoList( in setUp() 211 }).when(mSubscriptionManagerService).getActiveSubIdList(anyBoolean()); in setUp() 222 }).when(mSubscriptionManagerService).getSubscriptionsInGroup( in setUp() [all …]
|
D | PhoneConfigurationManagerTest.java | 453 verify(mSubscriptionManagerService).markSubscriptionsInactive(1); in testSwitchMultiSimConfig_multiSimToSingleSim() 455 verify(mSubscriptionManagerService, never()).markSubscriptionsInactive(0); in testSwitchMultiSimConfig_multiSimToSingleSim() 486 Mockito.when(mSubscriptionManagerService.getDefaultVoiceSubId()).thenReturn(value); in testNoCallPreferenceIsSetAfterSwitchToDsdsMode() 488 }).when(mSubscriptionManagerService).setDefaultVoiceSubId(anyInt()); in testNoCallPreferenceIsSetAfterSwitchToDsdsMode() 494 mSubscriptionManagerService.setDefaultVoiceSubId(startingDefaultSubscriptionId); in testNoCallPreferenceIsSetAfterSwitchToDsdsMode() 496 mSubscriptionManagerService.getDefaultVoiceSubId()); in testNoCallPreferenceIsSetAfterSwitchToDsdsMode() 503 mSubscriptionManagerService.getDefaultVoiceSubId()); in testNoCallPreferenceIsSetAfterSwitchToDsdsMode()
|
D | GsmCdmaPhoneTest.java | 1123 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubscriptionManagerService) in testCallForwardingIndicator() 1130 doReturn(subId1).when(mSubscriptionManagerService).getSubId(anyInt()); in testCallForwardingIndicator() 1152 doReturn(subId2).when(mSubscriptionManagerService).getSubId(anyInt()); in testCallForwardingIndicator() 1161 doReturn(subId1).when(mSubscriptionManagerService).getSubId(anyInt()); in testCallForwardingIndicator() 1322 verify(mSubscriptionManagerService, never()).getAllSubInfoList(anyString(), anyString()); in testReapplyUiccApplicationEnablementNotNeeded() 1330 verify(mSubscriptionManagerService).getAllSubInfoList(anyString(), in testReapplyUiccApplicationEnablementNotNeeded() 1501 doReturn(null).when(mSubscriptionManagerService).getSubscriptionProperty(anyInt(), in testEventCarrierConfigChanged() 1741 doReturn(subId).when(mSubscriptionManagerService).getSubId(anyInt()); in testLoadAllowedNetworksFromSubscriptionDatabase_loadTheNullValue_isLoadedTrue() 1743 doReturn(null).when(mSubscriptionManagerService).getSubscriptionProperty(anyInt(), in testLoadAllowedNetworksFromSubscriptionDatabase_loadTheNullValue_isLoadedTrue() 1755 doReturn(subId).when(mSubscriptionManagerService).getSubId(anyInt()); in testLoadAllowedNetworksFromSubscriptionDatabase_subIdNotValid_isLoadedFalse() [all …]
|
D | TelephonyTest.java | 221 protected SubscriptionManagerService mSubscriptionManagerService; field in TelephonyTest 508 mSubscriptionManagerService = Mockito.mock(SubscriptionManagerService.class); in setUp() 608 mServiceManagerMockedServices.put("isub", mSubscriptionManagerService); in setUp() 609 doReturn(mSubscriptionManagerService).when(mSubscriptionManagerService) in setUp() 944 mSubscriptionManagerService); in setUp()
|
D | PhoneSubInfoControllerTest.java | 91 doReturn(0).when(mSubscriptionManagerService).getPhoneId(eq(0)); in setUp() 92 doReturn(1).when(mSubscriptionManagerService).getPhoneId(eq(1)); in setUp() 95 doReturn(true).when(mSubscriptionManagerService).isActiveSubId(0, TAG, FEATURE_ID); in setUp() 96 doReturn(true).when(mSubscriptionManagerService).isActiveSubId(1, TAG, FEATURE_ID); in setUp()
|
D | SimultaneousCallingTrackerTest.java | 133 doReturn(mSubInfo).when(mSubscriptionManagerService) in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MultiSimSettingController.java | 129 private final SubscriptionManagerService mSubscriptionManagerService; field in MultiSimSettingController 230 mSubscriptionManagerService = SubscriptionManagerService.getInstance(); in MultiSimSettingController() 384 SubscriptionInfo subInfo = mSubscriptionManagerService.getSubscriptionInfo(subId); in onUserDataEnabled() 385 int defaultDataSubId = mSubscriptionManagerService.getDefaultDataSubId(); in onUserDataEnabled() 392 mSubscriptionManagerService.setDefaultDataSubId(subId); in onUserDataEnabled() 404 mSubscriptionManagerService.setDataRoaming(enable ? 1 : 0, subId); in onRoamingDataEnabled() 472 int[] activeSubIds = mSubscriptionManagerService.getActiveSubIdList(false); in isCarrierConfigLoadedForAllSub() 550 List<SubscriptionInfo> infoList = mSubscriptionManagerService.getSubscriptionsInGroup( in onSubscriptionGroupChanged() 577 List<SubscriptionInfo> activeSubList = mSubscriptionManagerService in onSubscriptionGroupChanged() 602 mSubscriptionManagerService.syncGroupedSetting(refSubId); in onSubscriptionGroupChanged() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | PerSimStatusTest.java | 87 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 90 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 93 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 98 .setCountryIso("us").build()).when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 134 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 137 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 140 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 145 .setCountryIso("us").build()).when(mSubscriptionManagerService) in onPullAtom_perSimStatus() 238 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus_noImsManager() 241 .when(mSubscriptionManagerService) in onPullAtom_perSimStatus_noImsManager() [all …]
|
D | DataCallSessionStatsTest.java | 366 when(mSubscriptionManagerService.getSubscriptionInfoInternal(mPhone.getSubId())) in testIsProvisioningProfile() 393 when(mSubscriptionManagerService.getSubscriptionInfoInternal(mPhone.getSubId())) in testIsProvisioningProfile()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | DataSettingsManagerTest.java | 77 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in setUp() 117 verify(mSubscriptionManagerService, times(2)) in testGetPolicies() 150 doReturn(ddsSubId).when(mSubscriptionManagerService).getDefaultDataSubId(); in testUpdateDataEnabledAndNotifyOverride() 154 doReturn(ddsPhoneId).when(mSubscriptionManagerService).getPhoneId(ddsSubId); in testUpdateDataEnabledAndNotifyOverride()
|
D | AutoDataSwitchControllerTest.java | 117 doReturn(SUB_1).when(mSubscriptionManagerService).getSubId(PHONE_1); in setUp() 118 doReturn(SUB_2).when(mSubscriptionManagerService).getSubId(PHONE_2); in setUp() 144 doReturn(new int[]{SUB_1, SUB_2}).when(mSubscriptionManagerService) in setUp() 149 }).when(mSubscriptionManagerService).getPhoneId(anyInt()); in setUp() 158 }).when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in setUp() 635 doReturn(mockedInfo).when(mSubscriptionManagerService).getSubscriptionInfo(anyInt()); in testSetNotification() 639 verify(mSubscriptionManagerService, never()).getSubscriptionInfo(SUB_2); in testSetNotification() 644 verify(mSubscriptionManagerService).getSubscriptionInfo(SUB_2); in testSetNotification() 676 doReturn(new int[]{SUB_2}).when(mSubscriptionManagerService) in testSubscriptionChangedUnregister() 690 doReturn(new int[]{SUB_1, SUB_2}).when(mSubscriptionManagerService) in testSubscriptionChangedUnregister() [all …]
|
D | PhoneSwitcherTest.java | 586 doReturn(new SubscriptionInfoInternal.Builder(mSubscriptionManagerService in testSetPreferredData() 588 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(2); in testSetPreferredData() 632 doReturn(new int[1]).when(mSubscriptionManagerService).getActiveSubIdList(true); in testSetPreferredDataCasePriority_CbrsWaitsForVoiceCall() 688 doReturn(new int[1]).when(mSubscriptionManagerService).getActiveSubIdList(true); in testSetPreferredData_NoAutoSwitchWhenCbrs() 709 doReturn(new SubscriptionInfoInternal.Builder(mSubscriptionManagerService in testSetAutoSelectedValidationFeatureNotSupported() 711 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(2); in testSetAutoSelectedValidationFeatureNotSupported() 772 doReturn(new SubscriptionInfoInternal.Builder(mSubscriptionManagerService in testSetPreferredDataModemCommand() 774 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(2); in testSetPreferredDataModemCommand() 840 doReturn(new SubscriptionInfoInternal.Builder(mSubscriptionManagerService in testSetPreferredDataWithValidation() 842 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(2); in testSetPreferredDataWithValidation() [all …]
|
D | DataNetworkControllerTest.java | 890 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in setUp() 898 doReturn(0).when(mSubscriptionManagerService).getPhoneId(1); in setUp() 899 doReturn(1).when(mSubscriptionManagerService).getPhoneId(2); in setUp() 2038 doReturn(2).when(mSubscriptionManagerService).getDefaultDataSubId(); in testNotifyWhenSetDataEnabled() 2142 doReturn(2).when(mSubscriptionManagerService).getDefaultDataSubId(); in testIsDataEnabledOverriddenForApnDataDuringCall() 2188 doReturn(2).when(mSubscriptionManagerService).getDefaultDataSubId(); in testIsDataEnabledOverriddenForApnAutoDataSwitch() 5140 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in testIsEsimBootStrapProvisioningActivatedWithFlagEnabledAndProvisioningClass() 5150 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in testIsEsimBootStrapProvisioningActivatedWithFlagEnabledAndNoProvisioningClass() 5160 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in testIsEsimBootStrapProvisioningActivatedWithFlagDisabledAndNoProvisioningClass() 5170 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in testIsEsimBootStrapProvisioningActivatedWithFlagDisabledAndProvisioningClass() [all …]
|
D | CellularNetworkValidatorTest.java | 82 .when(mSubscriptionManagerService).getSubscriptionInfoInternal(anyInt()); in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/ |
D | AutoDataSwitchController.java | 147 private final SubscriptionManagerService mSubscriptionManagerService; field in AutoDataSwitchController 356 mSubscriptionManagerService = SubscriptionManagerService.getInstance(); 397 Set<Integer> activePhoneIds = Arrays.stream(mSubscriptionManagerService 399 .map(mSubscriptionManagerService::getPhoneId) 608 int ddsPhoneId = mSubscriptionManagerService.getPhoneId( 609 mSubscriptionManagerService.getDefaultDataSubId()); 649 int defaultDataSubId = mSubscriptionManagerService.getDefaultDataSubId(); 651 if (mSubscriptionManagerService.getActiveSubIdList(true).length < 2) return; 652 int defaultDataPhoneId = mSubscriptionManagerService.getPhoneId( 1036 SubscriptionInfoInternal subInfo = mSubscriptionManagerService [all …]
|
D | PhoneSwitcher.java | 188 private final SubscriptionManagerService mSubscriptionManagerService; field in PhoneSwitcher 492 mSubscriptionManagerService = SubscriptionManagerService.getInstance(); in PhoneSwitcher() 566 : mSubscriptionManagerService.getSubId(targetPhoneId); in PhoneSwitcher() 577 : mSubscriptionManagerService.getSubId(targetPhoneId); in PhoneSwitcher() 672 SubscriptionInfo info = mSubscriptionManagerService in isSimApplicationReady() 1165 int primaryDataSubId = mSubscriptionManagerService.getDefaultDataSubId(); in onEvaluate() 1429 SubscriptionInfoInternal subInfo = mSubscriptionManagerService in isActiveSubId() 1514 return findPhoneById(mSubscriptionManagerService.getPhoneId(subId)); in getPhoneBySubId() 1921 pw.println("DefaultDataSubId=" + mSubscriptionManagerService.getDefaultDataSubId()); 1922 pw.println("DefaultDataPhoneId=" + mSubscriptionManagerService.getPhoneId( [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/ |
D | EmergencyNumberTrackerTest.java | 343 doReturn(VALID_SLOT_INDEX_VALID_1).when(mSubscriptionManagerService).getSlotIndex( in testIsSimAbsent() 345 doReturn(VALID_SLOT_INDEX_VALID_2).when(mSubscriptionManagerService).getSlotIndex( in testIsSimAbsent() 350 doReturn(VALID_SLOT_INDEX_VALID_1).when(mSubscriptionManagerService).getSlotIndex( in testIsSimAbsent() 352 doReturn(INVALID_SLOT_INDEX_VALID).when(mSubscriptionManagerService).getSlotIndex( in testIsSimAbsent() 357 doReturn(INVALID_SLOT_INDEX_VALID).when(mSubscriptionManagerService).getSlotIndex( in testIsSimAbsent() 449 doReturn(INVALID_SLOT_INDEX_VALID).when(mSubscriptionManagerService).getSlotIndex( in testIsEmergencyNumber_FallbackToShortNumberXml_NoSims() 482 doReturn(VALID_SLOT_INDEX_VALID_1).when(mSubscriptionManagerService).getSlotIndex( in testIsEmergencyNumber_NoFallbackToShortNumberXml() 484 doReturn(INVALID_SLOT_INDEX_VALID).when(mSubscriptionManagerService).getSlotIndex( in testIsEmergencyNumber_NoFallbackToShortNumberXml() 488 doReturn(VALID_SLOT_INDEX_VALID_1).when(mSubscriptionManagerService).getSlotIndex( in testIsEmergencyNumber_NoFallbackToShortNumberXml() 490 doReturn(VALID_SLOT_INDEX_VALID_2).when(mSubscriptionManagerService).getSlotIndex( in testIsEmergencyNumber_NoFallbackToShortNumberXml()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/ |
D | CellularIdentifierDisclosureNotifierTest.java | 60 private SubscriptionManagerService mSubscriptionManagerService; field in CellularIdentifierDisclosureNotifierTest 75 mSubscriptionManagerService = mock(SubscriptionManagerService.class); in setUp() 256 when(mSubscriptionManagerService.getSubscriptionInfoInternal(SUB_ID_1)).thenReturn( in testLogDisclsoure() 269 mSafetySource, mSubscriptionManagerService, mStats); in getNotifier()
|
D | CellularNetworkSecuritySafetySourceTest.java | 72 doReturn(info0).when(mSubscriptionManagerService).getSubscriptionInfoInternal(eq(0)); in setUp() 77 doReturn(info1).when(mSubscriptionManagerService).getSubscriptionInfoInternal(eq(1)); in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/security/ |
D | CellularIdentifierDisclosureNotifier.java | 68 private SubscriptionManagerService mSubscriptionManagerService; field in CellularIdentifierDisclosureNotifier 97 mSubscriptionManagerService = subscriptionManagerService; in CellularIdentifierDisclosureNotifier() 147 mSubscriptionManagerService.getSubscriptionInfoInternal(subId); in runLogDisclosure()
|
D | CellularNetworkSecuritySafetySource.java | 86 private final SubscriptionManagerService mSubscriptionManagerService; field in CellularNetworkSecuritySafetySource 109 mSubscriptionManagerService = SubscriptionManagerService.getInstance(); in CellularNetworkSecuritySafetySource() 218 mSubscriptionManagerService.getSubscriptionInfoInternal(subId); in getNullCipherIssue() 302 mSubscriptionManagerService.getSubscriptionInfoInternal(subId); in getIdentifierDisclosureIssue()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneTest.java | 1017 .setCountryIso("gb").build()).when(mSubscriptionManagerService) in testSetPhoneNumberForSourceIms() 1027 verify(mSubscriptionManagerService).setNumberFromIms(subId, "+447539447777"); in testSetPhoneNumberForSourceIms() 1036 verify(mSubscriptionManagerService).setNumberFromIms(subId, "+447539446666"); in testSetPhoneNumberForSourceIms() 1046 verify(mSubscriptionManagerService).setNumberFromIms(subId, "+447539446677"); in testSetPhoneNumberForSourceIms() 1062 .setCountryIso("gb").build()).when(mSubscriptionManagerService) in testSetPhoneNumberForSourceImsNegativeCases() 1072 verify(mSubscriptionManagerService, never()).setNumberFromIms(anyInt(), anyString()); in testSetPhoneNumberForSourceImsNegativeCases() 1078 verify(mSubscriptionManagerService, never()).setNumberFromIms(anyInt(), anyString()); in testSetPhoneNumberForSourceImsNegativeCases() 1084 verify(mSubscriptionManagerService, never()).setNumberFromIms(anyInt(), anyString()); in testSetPhoneNumberForSourceImsNegativeCases() 1089 verify(mSubscriptionManagerService, never()).setNumberFromIms(anyInt(), anyString()); in testSetPhoneNumberForSourceImsNegativeCases() 1103 .setCountryIso("gb").build()).when(mSubscriptionManagerService) in testSetPhoneNumberForSourceIgnoreGlobalPhoneNumberFormat() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/metrics/ |
D | CarrierRoamingSatelliteSessionStats.java | 44 @NonNull private final SubscriptionManagerService mSubscriptionManagerService; field in CarrierRoamingSatelliteSessionStats 62 mSubscriptionManagerService = SubscriptionManagerService.getInstance(); in CarrierRoamingSatelliteSessionStats() 322 mSubscriptionManagerService.getSubscriptionInfoInternal(subId); in updateNtnRoamingInHomeCountry()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/ |
D | SatelliteController.java | 235 @NonNull private final SubscriptionManagerService mSubscriptionManagerService; field in SatelliteController 516 mSubscriptionManagerService = SubscriptionManagerService.getInstance(); in SatelliteController() 1475 int[] activeSubIds = mSubscriptionManagerService.getActiveSubIdList(true); in handleEventConfigDataUpdated() 3078 mSubscriptionManagerService.setSubscriptionProperty(subId, in onSatelliteEntitlementStatusUpdated() 3091 mSubscriptionManagerService.setSatelliteEntitlementPlmnList(subId, allowedPlmnList); in onSatelliteEntitlementStatusUpdated() 3849 int[] activeSubIds = mSubscriptionManagerService.getActiveSubIdList(true); in updateSupportedSatelliteServicesForActiveSubscriptions() 4024 mSubscriptionManagerService.getSatelliteEntitlementPlmnList(subId); in updateEntitlementPlmnListPerCarrier() 4093 mSubscriptionManagerService.getSubscriptionProperty(subId, in isSatelliteAttachEnabledForCarrierByUser() 4159 mSubscriptionManagerService.getSubscriptionProperty(subId, in updateRestrictReasonForEntitlementPerCarrier() 4207 mSubscriptionManagerService.setSubscriptionProperty(subId, in persistSatelliteAttachEnabledForCarrierSetting()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccProfileTest.java | 581 .setIccId("98765").build()).when(mSubscriptionManagerService) in testSetOperatorBrandOverride() 589 .setIccId(fakeIccId).build()).when(mSubscriptionManagerService) in testSetOperatorBrandOverride()
|