Home
last modified time | relevance | path

Searched refs:subscriptionInfo (Results 1 – 24 of 24) sorted by relevance

/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java266 for (SubscriptionInfo subscriptionInfo : mOppSubscriptionInfos) { in getOpprotunisticSubInfo()
267 if (subscriptionInfo.getSubscriptionId() == subId) { in getOpprotunisticSubInfo()
268 return subscriptionInfo; in getOpprotunisticSubInfo()
278 for (SubscriptionInfo subscriptionInfo : mOppSubscriptionInfos) { in isOpprotunisticSub()
279 if (subscriptionInfo.getSubscriptionId() == subId) { in isOpprotunisticSub()
367 SubscriptionInfo subscriptionInfo; in getFilteredAvailableNetworks() local
372 subscriptionInfo = subscriptionInfoList.get(subscriptionInfoListIndex); in getFilteredAvailableNetworks()
374 if (subscriptionInfo.getSubscriptionId() == availableNetwork.getSubId()) { in getFilteredAvailableNetworks()
378 } else if (subscriptionInfo.getSubscriptionId() < availableNetwork.getSubId()) { in getFilteredAvailableNetworks()
411 for (SubscriptionInfo subscriptionInfo : subscriptionInfos) { in isPrimaryActiveOnOpportunisticSlot()
[all …]
DOpportunisticNetworkService.java129 for (SubscriptionInfo subscriptionInfo : subscriptionInfos) { in handleSimStateChange()
130 if (subscriptionInfo.getSubscriptionId() == onsConfigInput.getPrimarySub()) { in handleSimStateChange()
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileSelectorTest.java166 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionSuccess() local
170 subscriptionInfoList.add(subscriptionInfo); in testStartProfileSelectionSuccess()
235 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionWithActivePrimarySimOnESim() local
239 opportunisticSubscriptionInfoList.add(subscriptionInfo); in testStartProfileSelectionWithActivePrimarySimOnESim()
333 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testselectProfileForDataWithInActiveSub() local
335 subscriptionInfoList.add(subscriptionInfo); in testselectProfileForDataWithInActiveSub()
362 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testselectProfileForDataWithInvalidSubId() local
364 subscriptionInfoList.add(subscriptionInfo); in testselectProfileForDataWithInvalidSubId()
395 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testselectProfileForDataWithValidSub() local
397 subscriptionInfoList.add(subscriptionInfo); in testselectProfileForDataWithValidSub()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceControllerTest.java343 SubscriptionInfo subscriptionInfo = mock(SubscriptionInfo.class); in createSubInfo() local
344 when(subscriptionInfo.getSubscriptionId()).thenReturn(subId); in createSubInfo()
345 when(subscriptionInfo.getDisplayName()).thenReturn(displayName); in createSubInfo()
346 when(subscriptionInfo.getCarrierName()).thenReturn(carrierName); in createSubInfo()
347 when(subscriptionInfo.getNumber()).thenReturn(number); in createSubInfo()
348 when(subscriptionInfo.getSimSlotIndex()).thenReturn(111); in createSubInfo()
349 when(subscriptionInfo.getMcc()).thenReturn(222); in createSubInfo()
350 when(subscriptionInfo.getMnc()).thenReturn(333); in createSubInfo()
351 return subscriptionInfo; in createSubInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DPhoneNumberPreferenceController.java132 final SubscriptionInfo subscriptionInfo = getSubscriptionInfo(simSlot); in getPhoneNumber() local
133 if (subscriptionInfo == null) { in getPhoneNumber()
137 return getFormattedPhoneNumber(subscriptionInfo); in getPhoneNumber()
161 CharSequence getFormattedPhoneNumber(SubscriptionInfo subscriptionInfo) { in getFormattedPhoneNumber() argument
163 subscriptionInfo); in getFormattedPhoneNumber()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceController.java132 final SubscriptionInfo subscriptionInfo = getSubscriptionInfo(simSlot); in getPhoneNumber() local
133 if (subscriptionInfo == null) { in getPhoneNumber()
137 return getFormattedPhoneNumber(subscriptionInfo); in getPhoneNumber()
161 CharSequence getFormattedPhoneNumber(SubscriptionInfo subscriptionInfo) { in getFormattedPhoneNumber() argument
163 subscriptionInfo); in getFormattedPhoneNumber()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageUtils.java62 SubscriptionInfo subscriptionInfo = subscriptionManager.getDefaultDataSubscriptionInfo(); in getDefaultSubscriptionId() local
63 if (subscriptionInfo == null) { in getDefaultSubscriptionId()
68 subscriptionInfo = list.get(0); in getDefaultSubscriptionId()
70 return subscriptionInfo.getSubscriptionId(); in getDefaultSubscriptionId()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java167 SubscriptionInfo subscriptionInfo = subManager.getDefaultDataSubscriptionInfo(); in getDefaultSubscriptionId() local
168 if (subscriptionInfo == null) { in getDefaultSubscriptionId()
173 subscriptionInfo = list.get(0); in getDefaultSubscriptionId()
175 return subscriptionInfo.getSubscriptionId(); in getDefaultSubscriptionId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageUtils.java166 SubscriptionInfo subscriptionInfo = subManager.getDefaultDataSubscriptionInfo(); in getDefaultSubscriptionId() local
167 if (subscriptionInfo == null) { in getDefaultSubscriptionId()
172 subscriptionInfo = list.get(0); in getDefaultSubscriptionId()
174 return subscriptionInfo.getSubscriptionId(); in getDefaultSubscriptionId()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkFragment.java102 for (SubscriptionInfo subscriptionInfo : in onMobileNetworkUpdated()
104 if (subscriptionInfo.getSubscriptionId() == subId) { in onMobileNetworkUpdated()
105 info = subscriptionInfo; in onMobileNetworkUpdated()
DMobileNetworkUpdateManager.java147 for (SubscriptionInfo subscriptionInfo : in getSubscription()
149 if (subscriptionInfo.getSubscriptionId() == mCurSubscriptionId) { in getSubscription()
150 return subscriptionInfo; in getSubscription()
/packages/apps/Dialer/java/com/android/dialer/precall/impl/
DAssistedDialAction.java99 com.google.common.base.Optional<SubscriptionInfo> subscriptionInfo = in getAssistedDialingTelephonyManager() local
101 if (!subscriptionInfo.isPresent()) { in getAssistedDialingTelephonyManager()
107 telephonyManager.createForSubscriptionId(subscriptionInfo.get().getSubscriptionId()); in getAssistedDialingTelephonyManager()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/deviceinfo/
DDeviceInfoSlice.java99 final SubscriptionInfo subscriptionInfo = getFirstSubscriptionInfo(); in getPhoneNumber() local
100 if (subscriptionInfo == null) { in getPhoneNumber()
104 subscriptionInfo); in getPhoneNumber()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/
DDeviceInfoSlice.java99 final SubscriptionInfo subscriptionInfo = getFirstSubscriptionInfo(); in getPhoneNumber() local
100 if (subscriptionInfo == null) { in getPhoneNumber()
104 subscriptionInfo); in getPhoneNumber()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DParticipantData.java374 public boolean updateSubscriptionInfoForSelfIfChanged(final SubscriptionInfo subscriptionInfo) { in updateSubscriptionInfoForSelfIfChanged() argument
377 if (subscriptionInfo == null) { in updateSubscriptionInfoForSelfIfChanged()
386 final int slotId = subscriptionInfo.getSimSlotIndex(); in updateSubscriptionInfoForSelfIfChanged()
387 final int color = subscriptionInfo.getIconTint(); in updateSubscriptionInfoForSelfIfChanged()
388 final CharSequence name = subscriptionInfo.getDisplayName(); in updateSubscriptionInfoForSelfIfChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkActivity.java204 final SubscriptionInfo subscriptionInfo = mSubscriptionInfos.get(i); in updateBottomNavigationView() local
205 menu.add(0, subscriptionInfo.getSubscriptionId(), i, in updateBottomNavigationView()
206 subscriptionInfo.getDisplayName()) in updateBottomNavigationView()
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java165 Optional<SubscriptionInfo> subscriptionInfo = in isLocalEmergencyNumber() local
167 if (subscriptionInfo.isPresent() in isLocalEmergencyNumber()
169 context, subscriptionInfo.get().getSubscriptionId(), number)) { in isLocalEmergencyNumber()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkActivity.java205 final SubscriptionInfo subscriptionInfo = mSubscriptionInfos.get(i); in updateBottomNavigationView() local
206 menu.add(0, subscriptionInfo.getSubscriptionId(), i, in updateBottomNavigationView()
207 subscriptionInfo.getDisplayName()) in updateBottomNavigationView()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowSubscriptionManager.java56 public static void setDefaultDataSubscriptionInfo(SubscriptionInfo subscriptionInfo) { in setDefaultDataSubscriptionInfo() argument
57 sDefaultDataSubscriptionInfo = subscriptionInfo; in setDefaultDataSubscriptionInfo()
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DVoicemailSettingsFragment.java332 Optional<SubscriptionInfo> subscriptionInfo = in setupAdvancedSettingsPreference() local
334 if (subscriptionInfo.isPresent()) { in setupAdvancedSettingsPreference()
335 advancedSettingsIntent.putExtra(SUB_ID_EXTRA, subscriptionInfo.get().getSubscriptionId()); in setupAdvancedSettingsPreference()
/packages/apps/Contacts/src/com/android/contacts/database/
DSimContactDaoImpl.java259 for (SubscriptionInfo subscriptionInfo : subscriptions) { in getSimCardsFromSubscriptions()
260 result.add(SimCard.create(subscriptionInfo)); in getSimCardsFromSubscriptions()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java705 private static String getNormalizedNumber(SubscriptionInfo subscriptionInfo) {
706 if (subscriptionInfo == null) {
709 return PhoneNumberUtils.formatNumberToE164(subscriptionInfo.getNumber(),
710 subscriptionInfo.getCountryIso().toUpperCase(Locale.US));
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java993 for (final SubscriptionInfo subscriptionInfo : subscriptionList) { in forEachActiveSubscription()
994 runnable.runForSubscription(subscriptionInfo.getSubscriptionId()); in forEachActiveSubscription()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DParticipantRefresh.java450 final SubscriptionInfo subscriptionInfo = in refreshFromSelfProfile() local
452 if (participantData.updateSubscriptionInfoForSelfIfChanged(subscriptionInfo)) { in refreshFromSelfProfile()