Home
last modified time | relevance | path

Searched refs:getActiveSubscriptionInfo (Results 1 – 25 of 78) sorted by relevance

1234

/packages/apps/Settings/src/com/android/settings/datausage/
DCellDataPreference.java121 SubscriptionInfo getActiveSubscriptionInfo(int subId) { in getActiveSubscriptionInfo() method in CellDataPreference
122 return getProxySubscriptionManager().getActiveSubscriptionInfo(subId); in getActiveSubscriptionInfo()
132 setEnabled(getActiveSubscriptionInfo(mSubId) != null); in updateEnabled()
140 final SubscriptionInfo currentSir = getActiveSubscriptionInfo(mSubId); in performClick()
141 final SubscriptionInfo nextSir = getActiveSubscriptionInfo( in performClick()
195 final SubscriptionInfo currentSir = getActiveSubscriptionInfo(mSubId); in showMultiSimDialog()
196 final SubscriptionInfo nextSir = getActiveSubscriptionInfo( in showMultiSimDialog()
215 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(subId); in disableDataForOtherSubscriptions()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DResetSubscriptionContractTest.java82 .getActiveSubscriptionInfo(SUB_ID_1);
85 .getActiveSubscriptionInfo(SUB_ID_2);
98 .getActiveSubscriptionInfo(SUB_ID_1);
101 .getActiveSubscriptionInfo(SUB_ID_2);
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileDownloaderTest.java106 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testNullSMDPAddress()
144 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadSuccessCallback()
189 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadFailureUnresolvableError()
227 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadFailureMemoryFullError()
277 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadFailureConnectionError()
334 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadFailureTimeout()
391 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadFailureOperationBusy()
448 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadFailureInvalidResponse()
492 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadOpCode()
634 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testMultipleDownloadRequests()
[all …]
DONSProfileSelectorTest.java266 .getActiveSubscriptionInfo(subId); in testStartProfileSelectionSuccess()
322 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testStartProfileSelectionWithDifferentPrioritySubInfo()
323 doReturn(subscriptionInfo_2).when(mSubscriptionManager).getActiveSubscriptionInfo(8); in testStartProfileSelectionWithDifferentPrioritySubInfo()
401 doReturn(subscriptionInfo1).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testStartProfileSelectionWithActivePrimarySimOnESim()
402 doReturn(subscriptionInfo2).when(mSubscriptionManager).getActiveSubscriptionInfo(6); in testStartProfileSelectionWithActivePrimarySimOnESim()
520 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testselectProfileForDataWithInActiveSub()
551 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testselectProfileForDataWithInvalidSubId()
586 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testselectProfileForDataWithValidSub()
630 doReturn(subscriptionInfo1).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testStartProfileSelectionSuccessWithSameArgumentsAgain()
631 doReturn(subscriptionInfo2).when(mSubscriptionManager).getActiveSubscriptionInfo(6); in testStartProfileSelectionSuccessWithSameArgumentsAgain()
[all …]
DONSProfileConfiguratorTest.java231 .getActiveSubscriptionInfo(TEST_SUB_ID); in testFindOpportunisticSubscription()
237 doReturn(mMockSubscriptionInfo2).when(mMockSubManager).getActiveSubscriptionInfo(2); in testFindOpportunisticSubscription()
DONSStatsTest.java195 doReturn(mSubInfoId1).when(mSubscriptionManager).getActiveSubscriptionInfo(1); in setUp()
196 doReturn(mSubInfoId2).when(mSubscriptionManager).getActiveSubscriptionInfo(2); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileDataSliceTest.java80 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); 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()
194 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in airplaneModeEnabled_slicePrimaryActionIsEmpty()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java241 public abstract SubscriptionInfo getActiveSubscriptionInfo(); in getActiveSubscriptionInfo() method
426 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in getSimCountry()
444 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in getCarrierName()
472 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in getMccMnc()
495 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in getSelfRawNumber()
508 public SubscriptionInfo getActiveSubscriptionInfo() { in getActiveSubscriptionInfo() method in PhoneUtils.PhoneUtilsLMR1
511 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in getActiveSubscriptionInfo()
602 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in isDataRoamingEnabled()
/packages/apps/Settings/src/com/android/settings/sim/
DCallsSimListDialogFragment.java59 SubscriptionInfo info = subscriptionManager.getActiveSubscriptionInfo(subId); in getCurrentSubscriptions()
66 result.add(subscriptionManager.getActiveSubscriptionInfo(subId)); in getCurrentSubscriptions()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DDataSubscriptionRepositoryTest.kt61 on { getActiveSubscriptionInfo(SUB_ID_10) } doReturn in <lambda>()
63 on { getActiveSubscriptionInfo(SUB_ID_20) } doReturn in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataDialogFragment.java94 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in onCreateDialog()
96 mSubscriptionManager.getActiveSubscriptionInfo( in onCreateDialog()
DConvertToEsimPreferenceController.java126 SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in getAvailabilityStatus()
191 SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in isActiveSubscription()
DMobileDataSlice.java165 final SubscriptionInfo defaultSubscription = subscriptionManager.getActiveSubscriptionInfo( in getDefaultSubscriptionId()
175 final SubscriptionInfo defaultSubscription = mSubscriptionManager.getActiveSubscriptionInfo( in getSummary()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DTelephonyUtils.java100 SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in isActivedSubId()
112 SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in getSlotId()
/packages/apps/Settings/src/com/android/settings/network/
DProxySubscriptionManager.java221 public SubscriptionInfo getActiveSubscriptionInfo(int subId) { in getActiveSubscriptionInfo() method in ProxySubscriptionManager
222 return mSubscriptionMonitor.getActiveSubscriptionInfo(subId); in getActiveSubscriptionInfo()
DActiveSubscriptionsListener.java233 public SubscriptionInfo getActiveSubscriptionInfo(int subId) {
265 final SubscriptionInfo activeSubInfo = getActiveSubscriptionInfo(subId);
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileDataTogglePreferenceController.java166 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(getSubId()); in isOpportunistic()
190 mSubscriptionManager.getActiveSubscriptionInfo(getSubId()); in getConfirmMultisimEnableDialog()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DMultinetworkPolicyTrackerTest.kt75 doReturn(null).`when`(it).getActiveSubscriptionInfo(anyInt()) in <lambda>()
175 doReturn(subscriptionInfo).`when`(subscriptionManager).getActiveSubscriptionInfo(testSubId) in testOnActiveDataSubscriptionIdChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DCellDataPreferenceTest.java49 SubscriptionInfo getActiveSubscriptionInfo(int subId) { in setUp()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastSettingsTest.java236 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in testGetResources()
340 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in testDisabledExtremeToggle()
462 doReturn(mockSubInfo).when(mockSubManager).getActiveSubscriptionInfo(anyInt()); in setSubscriptionManager()
/packages/services/Telephony/tests/src/com/android/phone/
DNotificationMgrTest.java199 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn(null); in testUpdateCfi_visible_noActiveSubscription_notificationNeverSent()
211 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn( in testUpdateCfi_visible_hasActiveSub_singleSIM_notificationSent()
222 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn( in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithoutDisplayName()
234 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn( in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithDisplayName()
DPhoneUtilsTest.java62 when(mMockSubscriptionManager.getActiveSubscriptionInfo( in setUp()
/packages/apps/Settings/src/com/android/settings/
DResetSubscriptionContract.java86 if (mgr.getActiveSubscriptionInfo(subId) == null) { in getAnyMissingSubscriptionId()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java111 when(mMockSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(info); in setUp()
309 when(mMockSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(subInfo); in setCarrierName()
/packages/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java315 SubscriptionInfo info = getActiveSubscriptionInfo(args.subscriptionId); in queryElementaryFilesItem()
634 ? getActiveSubscriptionInfo(args.subscriptionId) in validateSubscriptionAndEf()
762 private SubscriptionInfo getActiveSubscriptionInfo(int subId) { in getActiveSubscriptionInfo() method in SimPhonebookProvider
766 return mSubscriptionManager.getActiveSubscriptionInfo(subId); in getActiveSubscriptionInfo()

1234