/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/ |
D | SubscriptionManagerUnitTest.java | 30 private final SubscriptionManager<Object> mSubscriptionManager = new SubscriptionManager<>(); field in SubscriptionManagerUnitTest 64 mSubscriptionManager.stageNewOptions(mClient1, List.of( in testStageNewOptions_Commit_GetClients() 68 mSubscriptionManager.commit(); in testStageNewOptions_Commit_GetClients() 71 mSubscriptionManager.getClients(PROPERTY1, AREA1)).isEqualTo(Set.of(mClient1)); in testStageNewOptions_Commit_GetClients() 73 mSubscriptionManager.getClients(PROPERTY1, AREA2)).isEqualTo(Set.of(mClient1)); in testStageNewOptions_Commit_GetClients() 75 mSubscriptionManager.getClients(PROPERTY2, AREA1)).isNull(); in testStageNewOptions_Commit_GetClients() 80 mSubscriptionManager.stageNewOptions(mClient1, List.of( in testStageNewOptions_Commit_GetCurrentSubscribedPropIds() 85 mSubscriptionManager.commit(); in testStageNewOptions_Commit_GetCurrentSubscribedPropIds() 88 mSubscriptionManager.getCurrentSubscribedPropIds()) in testStageNewOptions_Commit_GetCurrentSubscribedPropIds() 94 mSubscriptionManager.stageNewOptions(mClient1, List.of( in testStageNewOptions_UpdateRateChangedToLowerRate() [all …]
|
/packages/services/Mms/tests/unittests/src/com/android/mms/service/ |
D | MmsHttpClientTest.java | 46 private SubscriptionManager mSubscriptionManager; field in MmsHttpClientTest 61 mSubscriptionManager = mock(SubscriptionManager.class); in setUp() 68 .thenReturn(mSubscriptionManager); in setUp() 75 mSubscriptionManager = null; in tearDown() 92 verify(mSubscriptionManager, never()).getPhoneNumber(subId); in getPhoneNumberForMacroLine1() 96 when(mSubscriptionManager.getPhoneNumber(subId)).thenReturn(subscriberPhoneNumber); in getPhoneNumberForMacroLine1() 99 verify(mSubscriptionManager).getPhoneNumber(subId); in getPhoneNumberForMacroLine1() 102 reset(mSubscriptionManager); in getPhoneNumberForMacroLine1() 103 when(mSubscriptionManager.getPhoneNumber(subId)).thenReturn(subscriberPhoneNumber); in getPhoneNumberForMacroLine1() 107 verify(mSubscriptionManager).getPhoneNumber(subId); in getPhoneNumberForMacroLine1() [all …]
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSProfileSelectorTest.java | 115 this.mSubscriptionManager = ONSProfileSelectorTest.this.mSubscriptionManager; in init() 199 doReturn(new ArrayList<>()).when(mSubscriptionManager) in testStartProfileSelectionWithNoOpportunisticSub() 265 doReturn(subscriptionInfo1).when(mSubscriptionManager) in testStartProfileSelectionSuccess() 267 doReturn(oppSubscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionSuccess() 269 doReturn(activeSubscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionSuccess() 271 doReturn(activeSubscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionSuccess() 273 doReturn(true).when(mSubscriptionManager).isActiveSubId(subId); in testStartProfileSelectionSuccess() 322 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testStartProfileSelectionWithDifferentPrioritySubInfo() 323 doReturn(subscriptionInfo_2).when(mSubscriptionManager).getActiveSubscriptionInfo(8); in testStartProfileSelectionWithDifferentPrioritySubInfo() 324 doReturn(subscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionWithDifferentPrioritySubInfo() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/ |
D | EnableAutoDataSwitchDialogFragmentTest.java | 58 private SubscriptionManager mSubscriptionManager; field in EnableAutoDataSwitchDialogFragmentTest 70 doReturn(mSubscriptionManager).when(mContext).getSystemService(SubscriptionManager.class); in setUp() 71 doReturn(mSubscriptionManager).when(mSubscriptionManager).createForAllUserProfiles(); in setUp() 77 doReturn(Arrays.asList(mSim1, mSim2)).when(mSubscriptionManager) in setUp() 102 doReturn(Collections.singletonList(mSim1)).when(mSubscriptionManager) in updateDialog_getMessage_noBackupSubExists() 120 doReturn(userHandle).when(mSubscriptionManager).getSubscriptionUserHandle(SIM1_ID); in updateDialog_getMessage_noManagedProfile() 121 doReturn(userHandle2).when(mSubscriptionManager).getSubscriptionUserHandle(SIM2_ID); in updateDialog_getMessage_noManagedProfile() 131 doReturn(userHandle).when(mSubscriptionManager).getSubscriptionUserHandle(SIM1_ID); in updateDialog_getMessage_hasManagedProfile() 132 doReturn(userHandle2).when(mSubscriptionManager).getSubscriptionUserHandle(SIM2_ID); in updateDialog_getMessage_hasManagedProfile() 142 doReturn(userHandle).when(mSubscriptionManager).getSubscriptionUserHandle(SIM1_ID); in updateDialog_getMessage_BothManagedProfile() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileNetworkUpdateManager.java | 52 private final SubscriptionManager mSubscriptionManager; field in MobileNetworkUpdateManager 63 mSubscriptionManager.getActiveSubscriptionInfoList( 76 mSubscriptionManager = sm; in MobileNetworkUpdateManager() 77 mSubscriptionInfos = mSubscriptionManager.getActiveSubscriptionInfoList(); in MobileNetworkUpdateManager() 94 mSubscriptionManager = subscriptionManager; in MobileNetworkUpdateManager() 95 mSubscriptionInfos = mSubscriptionManager.getActiveSubscriptionInfoList(); in MobileNetworkUpdateManager() 125 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onStart() 131 mSubscriptionManager.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onStop() 136 mSubscriptionInfos = mSubscriptionManager.getActiveSubscriptionInfoList(); in updateSubscriptions() 165 mSubscriptionManager.getSelectableSubscriptionInfoList()) { in getSubscription()
|
D | SubscriptionsChangeListener.java | 43 private final SubscriptionManager mSubscriptionManager; field in SubscriptionsChangeListener 67 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in SubscriptionsChangeListener() 73 mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionsChangedListener); in start() 79 mSubscriptionManager.removeOnSubscriptionsChangedListener(mSubscriptionsChangedListener); in stop()
|
D | MobileDataTogglePreferenceController.java | 50 private final SubscriptionManager mSubscriptionManager; field in MobileDataTogglePreferenceController 81 mSubscriptionManager = subscriptionManager; in MobileDataTogglePreferenceController() 139 boolean needToDisableOthers = mSubscriptionManager.isActiveSubscriptionId(defaultSubId) in handlePreferenceChanged() 166 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(getSubId()); in isOpportunistic() 188 mSubscriptionManager.getDefaultDataSubscriptionInfo(); in getConfirmMultisimEnableDialog() 190 mSubscriptionManager.getActiveSubscriptionInfo(getSubId()); in getConfirmMultisimEnableDialog()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | ResetSubscriptionContractTest.java | 46 private SubscriptionManager mSubscriptionManager; field in ResetSubscriptionContractTest 69 return mSubscriptionManager; in createTestObject() 81 doReturn(mSubscriptionInfo1).when(mSubscriptionManager) 84 doReturn(mSubscriptionInfo2).when(mSubscriptionManager) 89 verify(mSubscriptionManager).addOnSubscriptionsChangedListener(any(), any()); 97 doReturn(mSubscriptionInfo1).when(mSubscriptionManager) 100 doReturn(null).when(mSubscriptionManager) 105 verify(mSubscriptionManager).addOnSubscriptionsChangedListener(any(), any());
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | ProviderModelSliceHelper.java | 68 private final SubscriptionManager mSubscriptionManager; field in ProviderModelSliceHelper 76 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in ProviderModelSliceHelper() 85 || mSubscriptionManager == null || mTelephonyManager == null in hasCarrier() 86 || mSubscriptionManager.getActiveSubscriptionIdList().length <= 0) { in hasCarrier() 138 if (mSubscriptionManager != null && shouldInflateSignalStrength( in getDrawableWithSignalStrength() 139 mSubscriptionManager.getDefaultDataSubscriptionId())) { in getDrawableWithSignalStrength() 151 if (mSubscriptionManager == null || mSubscriptionManager.getDefaultDataSubscriptionId() in updateTelephony() 152 == mSubscriptionManager.INVALID_SUBSCRIPTION_ID) { in updateTelephony() 156 mSubscriptionManager.getDefaultDataSubscriptionId()); in updateTelephony() 214 return mSubscriptionManager; in getSubscriptionManager() [all …]
|
D | SubscriptionsChangeListener.java | 46 private SubscriptionManager mSubscriptionManager; field in SubscriptionsChangeListener 56 mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in SubscriptionsChangeListener() 75 mSubscriptionManager.addOnSubscriptionsChangedListener( in start() 87 mSubscriptionManager.removeOnSubscriptionsChangedListener( in stop()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | DisabledSubscriptionControllerTest.java | 48 private SubscriptionManager mSubscriptionManager; field in DisabledSubscriptionControllerTest 60 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp() 76 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in displayPreference_subscriptionEnabled_categoryIsVisible() 83 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in displayPreference_subscriptionDisabled_categoryIsNotVisible() 90 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible() 92 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible() 99 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible() 101 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible()
|
D | NrDisabledInDsdsFooterPreferenceControllerTest.java | 48 private SubscriptionManager mSubscriptionManager; field in NrDisabledInDsdsFooterPreferenceControllerTest 56 doReturn(mSubscriptionManager).when(mContext).getSystemService( in setUp() 71 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_dataOnAndDsdsAnd5GSupported_Available() 81 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_5gNotSupported_notAvailable() 91 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_mobileDataOff_notAvailable() 101 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); in isAvailable_singleSimMode_notAvailable()
|
D | TelephonyBasePreferenceControllerTest.java | 44 private SubscriptionManager mSubscriptionManager; field in TelephonyBasePreferenceControllerTest 57 .thenReturn(mSubscriptionManager); in setUp() 58 when(mSubscriptionManager.createForAllUserProfiles()).thenReturn(mSubscriptionManager); in setUp() 72 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn( in isAvailable_noIdSetHoweverHasDefaultOne_returnTrue()
|
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/ |
D | SimPinReplayManagerTest.java | 32 SubscriptionManager mSubscriptionManager; field in SimPinReplayManagerTest 41 mSubscriptionManager = mock(SubscriptionManager.class); in setUp() 50 return mSubscriptionManager; in setUp() 66 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); // has sim in prepareSimPinReplay_success() 84 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {}); // no sim in prepareSimPinReplay_noSim() 94 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); // has sim in prepareSimPinReplay_noSimPin() 107 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); // has sim in prepareSimPinReplay_carrierDisableSimPin() 124 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); // has sim in prepareSimPinReplay_carrierEnabled() 143 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); // has sim in prepareSimPinReplay_prepareError() 162 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); // has sim in prepareSimPinReplay_preparePinRequired()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileConfigurator.java | 54 private final SubscriptionManager mSubscriptionManager; field in ONSProfileConfigurator 64 mSubscriptionManager = subscriptionManager; in ONSProfileConfigurator() 137 mSubscriptionManager.addSubscriptionsIntoGroup(subList, groupUuid); in groupWithPSIMAndSetOpportunistic() 146 mSubscriptionManager.setOpportunistic(true, in groupWithPSIMAndSetOpportunistic() 165 List<SubscriptionInfo> subInfoList = mSubscriptionManager in activateSubscription() 189 List<SubscriptionInfo> subList = mSubscriptionManager.getOpportunisticSubscriptions(); in deleteInactiveOpportunisticSubscriptions() 196 if (!mSubscriptionManager.isActiveSubscriptionId(subId)) { in deleteInactiveOpportunisticSubscriptions() 224 List<SubscriptionInfo> oppSubList = mSubscriptionManager.getAvailableSubscriptionInfoList(); in getOpportunisticSubIdsofPSIMOperator() 254 List<SubscriptionInfo> subInfoList = mSubscriptionManager in deleteSubscription() 279 puid = mSubscriptionManager.createSubscriptionGroup(pSubList); in getPSIMGroupId() [all …]
|
D | ONSProfileSelector.java | 97 protected SubscriptionManager mSubscriptionManager; field in ONSProfileSelector 174 if (mSubscriptionManager.isActiveSubId(subId)) { 355 return mSubscriptionManager.isActiveSubscriptionId(subId); in isAvtiveSub() 375 List<SubscriptionInfo> subInfoList = mSubscriptionManager in switchToSubscription() 389 List<SubscriptionInfo> subscriptionInfos = mSubscriptionManager in getAvailableESIMPortIndex() 571 … if (!mSubscriptionManager.isActiveSubId(filteredAvailableNetworks.get(0).getSubId())) { in checkProfileUpdate() 614 mSubscriptionManager.getActiveSubscriptionInfoList(false); in isActiveSub() 654 mSubscriptionManager.getOpportunisticSubscriptions(); in isOpportunisticSubEmbedded() 672 mSubscriptionManager.getActiveSubscriptionInfoList(false); in getActiveOpportunisticSubId() 714 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(subId); in enableModem() [all …]
|
D | OpportunisticNetworkService.java | 73 @VisibleForTesting protected SubscriptionManager mSubscriptionManager; field in OpportunisticNetworkService 186 mSubscriptionManager.getActiveSubscriptionInfoList(false); in handleSimStateChange() 213 || mSubscriptionManager.canManageSubscription( in hasOpportunisticSubPrivilege() 236 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "setEnable"); 270 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "isEnabled"); 299 … mSubscriptionManager.getDefaultSubscriptionId(), "setPreferredDataSubscriptionId"); 393 mSubscriptionManager.getDefaultSubscriptionId(), "updateAvailableNetworks"); 500 mSubscriptionManager = (SubscriptionManager) mContext.getSystemService( in initialize() 503 mSubscriptionManager = mSubscriptionManager.createForAllUserProfiles(); in initialize() 506 mONSStats = new ONSStats(mContext, mSubscriptionManager); in initialize() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | MobileDataSliceTest.java | 65 private SubscriptionManager mSubscriptionManager; field in MobileDataSliceTest 78 doReturn(mSubscriptionManager).when(mContext).getSystemService(SubscriptionManager.class); in setUp() 80 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in setUp() 82 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn( in setUp() 111 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOn_updatesMobileData() 124 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_updatesMobileData() 137 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_airplaneModeOn_mobileDataDoesNotUpdate() 177 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn(new ArrayList<>()); in isMobileDataAvailable_noSubscriptions_slicePrimaryActionIsEmpty() 185 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn(null); in isMobileDataAvailable_nullSubscriptions_slicePrimaryActionIsEmpty() 194 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in airplaneModeEnabled_slicePrimaryActionIsEmpty()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | SubscriptionsPreferenceControllerTest.java | 91 private SubscriptionManager mSubscriptionManager; field in SubscriptionsPreferenceControllerTest 134 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp() 151 when(mSubscriptionManager.createForAllUserProfiles()).thenReturn(mSubscriptionManager); in setUp() 244 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasSim_showPreference() 245 doReturn(sub).when(mSubscriptionManager).getAvailableSubscriptionInfoList(); in displayPreference_providerAndHasSim_showPreference() 257 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasMultiSim_showOnePreference() 258 doReturn(sub).when(mSubscriptionManager).getAvailableSubscriptionInfoList(); in displayPreference_providerAndHasMultiSim_showOnePreference() 271 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasMultiSimAndActive_connectedAndRat() 290 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasMultiSimAndActiveCarrierWifi_connectedAndWPlus() 311 doReturn(sub.get(0)).when(mSubscriptionManager).getDefaultDataSubscriptionInfo(); in displayPreference_providerAndHasMultiSimButMobileDataOff_notAutoConnect() [all …]
|
D | ActiveSubscriptionsListenerTest.java | 68 private SubscriptionManager mSubscriptionManager; field in ActiveSubscriptionsListenerTest 79 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp() 80 doReturn(mSubscriptionManager).when(mSubscriptionManager).createForAllUserProfiles(); in setUp() 85 doReturn(mActiveSubscriptions).when(mSubscriptionManager).getActiveSubscriptionInfoList(); in setUp() 88 doReturn(mSubscriptionManager).when(mListener).getSubscriptionManager(); in setUp() 182 verify(mSubscriptionManager, times(numberOfAccess)).getActiveSubscriptionInfoList(); in start_alwaysFetchAndCacheResult() 194 verify(mSubscriptionManager, times(numberOfAccess)).getActiveSubscriptionInfoList(); in start_alwaysFetchAndCacheResult()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileDataDialogFragment.java | 52 private SubscriptionManager mSubscriptionManager; field in MobileDataDialogFragment 72 mSubscriptionManager = getContext().getSystemService(SubscriptionManager.class); in onCreate() 94 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in onCreateDialog() 96 mSubscriptionManager.getActiveSubscriptionInfo( in onCreateDialog() 97 mSubscriptionManager.getDefaultDataSubscriptionId()); in onCreateDialog() 143 mSubscriptionManager.setDefaultDataSubId(mSubId); in onClick()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsConfigManager.java | 51 private SubscriptionManager mSubscriptionManager; field in MmsConfigManager 64 mSubscriptionManager = SubscriptionManager.from(context); in init() 66 mSubscriptionManager = mSubscriptionManager.createForAllUserProfiles(); in init() 111 List<SubscriptionInfo> subs = mSubscriptionManager.getActiveSubscriptionInfoList(); in load()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/ |
D | TelephonyDomainSelectionServiceTest.java | 140 private SubscriptionManager mSubscriptionManager; field in TelephonyDomainSelectionServiceTest 161 mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in setUp() 163 doReturn(mSubscriptionManager).when(mSubscriptionManager).createForAllUserProfiles(); in setUp() 167 verify(mSubscriptionManager).addOnSubscriptionsChangedListener( in setUp() 190 mSubscriptionManager = null; in tearDown() 329 verify(mSubscriptionManager).removeOnSubscriptionsChangedListener(any()); in testOnDestroy() 335 when(mSubscriptionManager.getActiveSubscriptionInfoList()) in testHandleSubscriptionsChangedWithEmptySubscriptionInfo() 350 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subsInfoList); in testHandleSubscriptionsChangedWithActiveSubscriptionInfoAndInvalidSlotIndex() 364 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subsInfoList); in testHandleSubscriptionsChangedWithActiveSubscriptionInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | SimLockPreferenceControllerTest.java | 59 private SubscriptionManager mSubscriptionManager; field in SimLockPreferenceControllerTest 79 mSubscriptionManager); in setUp() 80 when(mSubscriptionManager.createForAllUserProfiles()).thenReturn(mSubscriptionManager); in setUp() 176 when(mSubscriptionManager.getActiveSubscriptionInfoList()) in setupMockIcc() 186 when(mSubscriptionManager.getActiveSubscriptionInfoList()) in setupMockSimReady()
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | ProviderUtilTest.java | 49 private SubscriptionManager mSubscriptionManager; field in ProviderUtilTest 60 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp() 72 doReturn(subscriptionInfoList).when(mSubscriptionManager) in getSelectionBySubIds_noSubscription() 88 doReturn(subscriptionInfoList).when(mSubscriptionManager) in getSelectionBySubIds_withDefaultSubId() 110 doReturn(subscriptionInfoList).when(mSubscriptionManager) in getSelectionBySubIds_withActiveSubscriptions()
|