Home
last modified time | relevance | path

Searched refs:SubscriptionInfo (Results 1 – 25 of 263) sorted by relevance

1234567891011

/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileSelectorTest.java32 import android.telephony.SubscriptionInfo;
73 SubscriptionInfo mSubInfo;
228 List<SubscriptionInfo> activeSubscriptionInfoList = new ArrayList<SubscriptionInfo>(); in testStartProfileSelectionSuccess()
229 List<SubscriptionInfo> oppSubscriptionInfoList = new ArrayList<SubscriptionInfo>(); in testStartProfileSelectionSuccess()
230 SubscriptionInfo subscriptionInfo1 = new SubscriptionInfo(subId, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionSuccess()
233 SubscriptionInfo subscriptionInfo2 = new SubscriptionInfo(6, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionSuccess()
313 List<SubscriptionInfo> subscriptionInfoList = new ArrayList<SubscriptionInfo>(); in testStartProfileSelectionWithDifferentPrioritySubInfo()
314 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionWithDifferentPrioritySubInfo()
318 SubscriptionInfo subscriptionInfo_2 = new SubscriptionInfo(8, "", 1, "Vzw", "Vzw", 1, 1, in testStartProfileSelectionWithDifferentPrioritySubInfo()
390 … List<SubscriptionInfo> opportunisticSubscriptionInfoList = new ArrayList<SubscriptionInfo>(); in testStartProfileSelectionWithActivePrimarySimOnESim()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionUtilTest.java40 import android.telephony.SubscriptionInfo;
100 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
108 final SubscriptionInfo info = mock(SubscriptionInfo.class); in getAvailableSubscriptions_oneSubscription_oneResult()
111 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_oneSubscription_oneResult()
120 final SubscriptionInfo info = mock(SubscriptionInfo.class); in hasSubscriptionWithRacCarrier_containsRac_returnTrue()
130 final SubscriptionInfo info = mock(SubscriptionInfo.class); in hasSubscriptionWithRacCarrier_doesNotContainsRac_returnFalse()
154 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in getAvailableSubscriptions_twoSubscriptions_twoResults()
155 final SubscriptionInfo info2 = mock(SubscriptionInfo.class); in getAvailableSubscriptions_twoSubscriptions_twoResults()
160 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_twoSubscriptions_twoResults()
170 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mSubMgr); in getActiveSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
[all …]
DUiccSlotUtilTest.java30 import android.telephony.SubscriptionInfo;
68 private List<SubscriptionInfo> mSubscriptionInfoList = new ArrayList<>();
379 Collection<SubscriptionInfo> activeSubscriptionInfoList = in getExcludedLogicalSlotIndex_fromPsimActiveToEsimPort0Active_logicalSlot0()
381 SubscriptionInfo removedSubInfo = null; in getExcludedLogicalSlotIndex_fromPsimActiveToEsimPort0Active_logicalSlot0()
393 Collection<SubscriptionInfo> activeSubscriptionInfoList = in getExcludedLogicalSlotIndex_fromEsimPort0ActiveToPsimActive_logicalSlot0()
395 SubscriptionInfo removedSubInfo = null; in getExcludedLogicalSlotIndex_fromEsimPort0ActiveToPsimActive_logicalSlot0()
407 Collection<SubscriptionInfo> activeSubscriptionInfoList = in getExcludedLogicalSlotIndex_fromPsimAndPort0ToPsimAndPort1_logicalSlot1()
409 SubscriptionInfo removedSubInfo = createSubscriptionInfo(1, 0); in getExcludedLogicalSlotIndex_fromPsimAndPort0ToPsimAndPort1_logicalSlot1()
421 Collection<SubscriptionInfo> activeSubscriptionInfoList = in getExcludedLogicalSlotIndex_fromPsimAndPort1ToPsimAndPort0_logicalSlot1()
423 SubscriptionInfo removedSubInfo = createSubscriptionInfo(1, 1); in getExcludedLogicalSlotIndex_fromPsimAndPort1ToPsimAndPort0_logicalSlot1()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionUtil.java33 import android.telephony.SubscriptionInfo;
83 private static List<SubscriptionInfo> sAvailableResultsForTesting;
84 private static List<SubscriptionInfo> sActiveResultsForTesting;
88 public static void setAvailableSubscriptionsForTesting(List<SubscriptionInfo> results) { in setAvailableSubscriptionsForTesting()
93 public static void setActiveSubscriptionsForTesting(List<SubscriptionInfo> results) { in setActiveSubscriptionsForTesting()
102 public static List<SubscriptionInfo> getActiveSubscriptions(SubscriptionManager manager) { in getActiveSubscriptions()
111 final List<SubscriptionInfo> subscriptions = manager.getActiveSubscriptionInfoList(); in getActiveSubscriptions()
146 public static List<SubscriptionInfo> getAvailableSubscriptions(Context context) { in getAvailableSubscriptions()
164 public static SubscriptionInfo getAvailableSubscriptionBySubIdAndShowingForUser(Context context, in getAvailableSubscriptionBySubIdAndShowingForUser()
167 final SubscriptionInfo subInfo = subscriptionManager.getAccessibleSubscriptionInfo(subId); in getAvailableSubscriptionBySubIdAndShowingForUser()
[all …]
DActiveSubscriptionsListener.java26 import android.telephony.SubscriptionInfo;
69 private List<SubscriptionInfo> mCachedActiveSubscriptionInfo;
204 public List<SubscriptionInfo> getActiveSubscriptionsInfo() {
217 for (SubscriptionInfo subInfo : mCachedActiveSubscriptionInfo) {
233 public SubscriptionInfo getActiveSubscriptionInfo(int subId) {
234 final List<SubscriptionInfo> subInfoList = getActiveSubscriptionsInfo();
238 for (SubscriptionInfo subInfo : subInfoList) {
251 public List<SubscriptionInfo> getAccessibleSubscriptionsInfo() {
261 public SubscriptionInfo getAccessibleSubscriptionInfo(int subId) {
265 final SubscriptionInfo activeSubInfo = getActiveSubscriptionInfo(subId);
[all …]
DSimOnboardingService.kt23 import android.telephony.SubscriptionInfo in <lambda>()
47 var targetSubInfo: SubscriptionInfo? = null in <lambda>()
48 var availableSubInfoList: List<SubscriptionInfo> = listOf() in <lambda>()
49 var activeSubInfoList: List<SubscriptionInfo> = listOf() in <lambda>()
110 var userSelectedSubInfoList : MutableList<SubscriptionInfo> = mutableListOf() in <lambda>()
208 fun getSelectableSubscriptionInfoList(): List<SubscriptionInfo> { in <lambda>()
209 var list: MutableList<SubscriptionInfo> = mutableListOf() in <lambda>()
221 fun getSelectedSubscriptionInfoList(): List<SubscriptionInfo> { in <lambda>()
229 fun getSelectedSubscriptionInfoListWithRenaming(): List<SubscriptionInfo> { in <lambda>()
235 SubscriptionInfo.Builder(it).setDisplayName(getSubscriptionInfoDisplayName(it)).build() in <lambda>()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DSubscriptionUtilsTest.java24 import android.telephony.SubscriptionInfo;
48 SubscriptionInfo info = createSubscriptionInfo(/* subId= */ 1, in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned()
50 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned()
54 List<SubscriptionInfo> infos = SubscriptionUtils.getAvailableSubscriptions( in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned()
67 SubscriptionInfo info = createSubscriptionInfo(/* subId= */ 1, simSlotIdx, cardString, in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()
71 List<SubscriptionInfo> allSims = Lists.newArrayList(info); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()
75 List<SubscriptionInfo> infos = SubscriptionUtils.getAvailableSubscriptions( in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()
86 SubscriptionInfo info = createSubscriptionInfo(/* subId= */ 1, in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
88 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
92 List<SubscriptionInfo> infos = SubscriptionUtils.getAvailableSubscriptions( in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
[all …]
DMobileNetworkEntryPreferenceControllerTest.java47 import android.telephony.SubscriptionInfo;
347 SubscriptionInfo info = createSubscriptionInfo(/* subId= */ 1, in onCreate_oneSim_enabled()
349 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onCreate_oneSim_enabled()
359 SubscriptionInfo info = createSubscriptionInfo(/* subId= */ 1, in onCreate_dataEnabled_oneSim_summaryIsDisplayName()
361 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onCreate_dataEnabled_oneSim_summaryIsDisplayName()
370 SubscriptionInfo info = createSubscriptionInfo(/* subId= */ 1, in onCreate_dataDisabled_summaryIsOff()
372 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onCreate_dataDisabled_summaryIsOff()
383 SubscriptionInfo info1 = createSubscriptionInfo(/* subId= */ 1, in onCreate_multiSim_enabled()
385 SubscriptionInfo info2 = createSubscriptionInfo(/* subId= */ 2, in onCreate_multiSim_enabled()
387 List<SubscriptionInfo> selectable = Lists.newArrayList(info1, info2); in onCreate_multiSim_enabled()
[all …]
DMobileNetworkListPreferenceControllerTest.java27 import android.telephony.SubscriptionInfo;
92 SubscriptionInfo info = createSubscriptionInfo(/* subId= */ 1, in onCreate_containsElements()
94 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onCreate_containsElements()
105 SubscriptionInfo info = createSubscriptionInfo(SUB_ID, /* simSlotIndex= */ 1, in onPreferenceClicked_launchesFragment()
107 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onPreferenceClicked_launchesFragment()
122 private SubscriptionInfo createSubscriptionInfo(int subId, int simSlotIndex, in createSubscriptionInfo()
124 SubscriptionInfo subInfo = new SubscriptionInfo(subId, /* iccId= */ "", in createSubscriptionInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java37 import android.telephony.SubscriptionInfo;
155 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in getSummary_oneSubscription_correctSummaryAndClickHandler()
177 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler()
196 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
230 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in addButton_oneSubscriptionNoEuiccMgr_noAddClickListener()
247 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in addButton_oneSubscription_hasAddClickListener()
257 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in addButton_twoSubscriptions_hasAddClickListener()
258 final SubscriptionInfo sub2 = mock(SubscriptionInfo.class); in addButton_twoSubscriptions_hasAddClickListener()
268 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in addButton_oneSubscriptionAirplaneModeTurnedOn_addButtonGetsDisabled()
285 final SubscriptionInfo sub1 = mock(SubscriptionInfo.class); in onResume_oneSubscriptionAirplaneMode_isDisabled()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceControllerTest.java38 import android.telephony.SubscriptionInfo;
222 List<SubscriptionInfo> subscriptionInfoList = Collections.singletonList( in refreshUi_oneSubscription_hidesPreference()
234 List<SubscriptionInfo> subscriptionInfoList = Collections.singletonList( in refreshUi_oneSubscription_setsValue()
246 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(createSubInfo(SUBID_1, "sub1"), in refreshUi_multipleSubscriptions_showsPreference()
260 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList( in refreshUi_multipleSubscriptions_populatesEntries()
276 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList( in refreshUi_defaultSelection_fourthPriority_system()
290 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(createSubInfo(SUBID_1, "sub1"), in refreshUi_defaultSelection_thirdPriority_sms()
305 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(createSubInfo(SUBID_1, "sub1"), in refreshUi_defaultSelection_secondPriority_voice()
321 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(createSubInfo(SUBID_1, "sub1"), in refreshUi_defaultSelection_firstPriority_data()
338 SubscriptionInfo subInfo = createSubInfo( in refreshUi_title_fourthPriority_subscriptionNetworkIds()
[all …]
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileConfigurator.java28 import android.telephony.SubscriptionInfo;
129 SubscriptionInfo opportunisticESIM, ParcelUuid groupUuid) { in groupWithPSIMAndSetOpportunistic()
165 List<SubscriptionInfo> subInfoList = mSubscriptionManager in activateSubscription()
167 for (SubscriptionInfo subInfo : subInfoList) { in activateSubscription()
189 List<SubscriptionInfo> subList = mSubscriptionManager.getOpportunisticSubscriptions(); in deleteInactiveOpportunisticSubscriptions()
194 for (SubscriptionInfo subInfo : subList) { in deleteInactiveOpportunisticSubscriptions()
224 List<SubscriptionInfo> oppSubList = mSubscriptionManager.getAvailableSubscriptionInfoList(); in getOpportunisticSubIdsofPSIMOperator()
225 for (SubscriptionInfo subInfo : oppSubList) { in getOpportunisticSubIdsofPSIMOperator()
254 List<SubscriptionInfo> subInfoList = mSubscriptionManager in deleteSubscription()
256 for (SubscriptionInfo subInfo : subInfoList) { in deleteSubscription()
[all …]
DONSProfileSelector.java36 import android.telephony.SubscriptionInfo;
99 protected List<SubscriptionInfo> mOppSubscriptionInfos;
101 protected List<SubscriptionInfo> mStandaloneOppSubInfos;
224 class SortSubInfo implements Comparator<SubscriptionInfo>
227 public int compare(SubscriptionInfo a, SubscriptionInfo b) in compare()
314 public SubscriptionInfo getOpprotunisticSubInfo(int subId) { in getOpprotunisticSubInfo()
318 for (SubscriptionInfo subscriptionInfo : mOppSubscriptionInfos) { in getOpprotunisticSubInfo()
330 for (SubscriptionInfo subscriptionInfo : mOppSubscriptionInfos) { in isOpprotunisticSub()
375 List<SubscriptionInfo> subInfoList = mSubscriptionManager in switchToSubscription()
377 for (SubscriptionInfo subInfo : subInfoList) { in switchToSubscription()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DSubscriptionInfoListViewModelTest.kt24 import android.telephony.SubscriptionInfo
63 private var activeSubscriptionInfoList: List<SubscriptionInfo>? = null in createViewModel()
122 val SUB_INFO_1: SubscriptionInfo = SubscriptionInfo.Builder().apply { in <lambda>()
126 val SUB_INFO_2: SubscriptionInfo = SubscriptionInfo.Builder().apply { in <lambda>()
130 val SUB_INFO_3: SubscriptionInfo = SubscriptionInfo.Builder().apply { in <lambda>()
137 val SUB_INFO_4: SubscriptionInfo = SubscriptionInfo.Builder().apply { in <lambda>()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DProviderUtilTest.java27 import android.telephony.SubscriptionInfo;
71 List<SubscriptionInfo> subscriptionInfoList = new ArrayList<>(); in getSelectionBySubIds_noSubscription()
82 SubscriptionInfo subscriptionInfo1 = new SubscriptionInfo.Builder() in getSelectionBySubIds_withDefaultSubId()
85 List<SubscriptionInfo> subscriptionInfoList = new ArrayList<>(); in getSelectionBySubIds_withDefaultSubId()
97 SubscriptionInfo subscriptionInfo1 = new SubscriptionInfo.Builder() in getSelectionBySubIds_withActiveSubscriptions()
101 List<SubscriptionInfo> subscriptionInfoList = new ArrayList<>(); in getSelectionBySubIds_withActiveSubscriptions()
103 SubscriptionInfo subscriptionInfo2 = new SubscriptionInfo.Builder() in getSelectionBySubIds_withActiveSubscriptions()
/packages/apps/Settings/src/com/android/settings/sim/
DSelectSpecificDataSimDialogFragment.java25 import android.telephony.SubscriptionInfo;
51 private SubscriptionInfo mSubscriptionInfo;
97 final SubscriptionInfo info = getTargetSubscriptionInfo(); in onClick()
104 private SubscriptionInfo getNonDefaultDataSubscriptionInfo(SubscriptionInfo dds) { in getNonDefaultDataSubscriptionInfo()
105 List<SubscriptionInfo> subInfos = getSubscriptionManager().getActiveSubscriptionInfoList(); in getNonDefaultDataSubscriptionInfo()
113 private SubscriptionInfo getDefaultDataSubInfo() { in getDefaultDataSubInfo()
129 SubscriptionInfo currentDataSubInfo = getDefaultDataSubInfo(); in updateDialog()
130 SubscriptionInfo newSubInfo = getNonDefaultDataSubscriptionInfo(currentDataSubInfo); in updateDialog()
183 private void setTargetSubscriptionInfo(SubscriptionInfo subInfo) { in setTargetSubscriptionInfo()
187 private SubscriptionInfo getTargetSubscriptionInfo() { in getTargetSubscriptionInfo()
DSimListDialogFragment.java25 import android.telephony.SubscriptionInfo;
61 List<SubscriptionInfo> mSubscriptions = new ArrayList<>();
115 final SubscriptionInfo subscription = mSubscriptions.get(selectionIndex); in onClick()
126 protected List<SubscriptionInfo> getCurrentSubscriptions() { in getCurrentSubscriptions()
139 List<SubscriptionInfo> currentSubscriptions = getCurrentSubscriptions(); in updateDialog()
156 final List<SubscriptionInfo> tmp = new ArrayList<>(arraySize); in updateDialog()
190 List<SubscriptionInfo> mSubscriptions;
192 public SelectSubscriptionAdapter(Context context, List<SubscriptionInfo> subscriptions) { in SelectSubscriptionAdapter()
203 public SubscriptionInfo getItem(int position) { in getItem()
209 final SubscriptionInfo info = mSubscriptions.get(position); in getItemId()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowSubscriptionManager.java19 import android.telephony.SubscriptionInfo;
34 private static SubscriptionInfo sDefaultDataSubscriptionInfo = null;
37 private List<SubscriptionInfo> mSelectableSubscriptionInfoList;
52 protected SubscriptionInfo getDefaultDataSubscriptionInfo() { in getDefaultDataSubscriptionInfo()
56 public static void setDefaultDataSubscriptionInfo(SubscriptionInfo subscriptionInfo) { in setDefaultDataSubscriptionInfo()
61 protected List<SubscriptionInfo> getSelectableSubscriptionInfoList() { in getSelectableSubscriptionInfoList()
65 public void setSelectableSubscriptionInfoList(List<SubscriptionInfo> infos) { in setSelectableSubscriptionInfoList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsTest.java29 import android.telephony.SubscriptionInfo;
102 final SubscriptionInfo info = mock(SubscriptionInfo.class); in setupFragment_oneSubscription_noCrash()
125 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in setupFragment_twoSubscriptions_correctSelection()
126 final SubscriptionInfo info2 = mock(SubscriptionInfo.class); in setupFragment_twoSubscriptions_correctSelection()
154 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
155 final SubscriptionInfo info2 = mock(SubscriptionInfo.class); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DSubscriptionRepositoryTest.kt20 import android.telephony.SubscriptionInfo
101 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sortedBySimSlotIndex()
105 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sortedBySimSlotIndex()
122 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_oneNotInSlot_inSlotSortedFirst()
126 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_oneNotInSlot_inSlotSortedFirst()
143 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndOneHasSlot_returnTheOneWithSimSlotIndex()
148 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndOneHasSlot_returnTheOneWithSimSlotIndex()
165 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndNonHasSlot_returnTheOneWithMinimumSubId()
169 SubscriptionInfo.Builder().apply { in getSelectableSubscriptionInfoList_sameGroupAndNonHasSlot_returnTheOneWithMinimumSubId()
186 val subInfo = SubscriptionInfo.Builder().apply { in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/helper/
DSelectableSubscriptions.java19 import android.telephony.SubscriptionInfo;
59 private Supplier<List<SubscriptionInfo>> mSubscriptions;
110 List<SubscriptionInfo> subInfoList = mSubscriptions.get(); in call()
128 protected List<SubscriptionInfo> getSubInfoList(Context context, in getSubInfoList()
129 Function<SubscriptionManager, List<SubscriptionInfo>> convertor) { in getSubInfoList()
131 List<SubscriptionInfo> result = (subManager == null) ? null : convertor.apply(subManager); in getSubInfoList()
139 protected List<SubscriptionInfo> getAvailableSubInfoList(Context context) { in getAvailableSubInfoList()
143 protected List<SubscriptionInfo> getActiveSubInfoList(Context context) { in getActiveSubInfoList()
/packages/apps/Settings/src/com/android/settings/accessibility/rtt/
DTelecomUtil.java22 import android.telephony.SubscriptionInfo;
52 Optional<SubscriptionInfo> info = getSubscriptionInfo(context, phoneAccountHandle); in getSubIdForPhoneAccountHandle()
53 return info.map(SubscriptionInfo::getSubscriptionId) in getSubIdForPhoneAccountHandle()
61 private static Optional<SubscriptionInfo> getSubscriptionInfo( in getSubscriptionInfo()
68 List<SubscriptionInfo> subscriptionInfos = in getSubscriptionInfo()
73 for (SubscriptionInfo info : subscriptionInfos) { in getSubscriptionInfo()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/network/
DSimOnboardingPrimarySimTest.kt20 import android.telephony.SubscriptionInfo
104 val SUB_INFO_1: SubscriptionInfo = SubscriptionInfo.Builder().apply { in <lambda>()
110 val SUB_INFO_2: SubscriptionInfo = SubscriptionInfo.Builder().apply { in <lambda>()
116 val SUB_INFO_3: SubscriptionInfo = SubscriptionInfo.Builder().apply { in <lambda>()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettings.java24 import android.telephony.SubscriptionInfo;
62 private List<SubscriptionInfo> mSil;
133 for (SubscriptionInfo subInfo : mSil) { in maybeSetViewForSubId()
246 protected List<SubscriptionInfo> getSelectableSubscriptions(Context context) { in getSelectableSubscriptions()
250 private List<SubscriptionInfo> updateSubList() { in updateSubList()
251 List<SubscriptionInfo> subInfoList = getSelectableSubscriptions(getContext()); in updateSubList()
256 List<SubscriptionInfo> selectedList = new ArrayList<SubscriptionInfo>(); in updateSubList()
257 for (SubscriptionInfo subInfo : subInfoList) { in updateSubList()
299 List<SubscriptionInfo> updateList = updateSubList();
335 protected int [] subscriptionIdList(List<SubscriptionInfo> subInfoList) {
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DSubscriptionUtils.java23 import android.telephony.SubscriptionInfo;
44 public static List<SubscriptionInfo> getAvailableSubscriptions( in getAvailableSubscriptions()
46 List<SubscriptionInfo> subscriptions = new ArrayList<>( in getAvailableSubscriptions()
70 for (SubscriptionInfo info : subscriptionManager.getAllSubscriptionInfoList()) { in getAvailableSubscriptions()
86 for (Iterator<SubscriptionInfo> iter = subscriptions.iterator(); iter.hasNext(); ) { in getAvailableSubscriptions()
87 SubscriptionInfo info = iter.next(); in getAvailableSubscriptions()

1234567891011