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.java305 for (SubscriptionInfo subscriptionInfo : mOppSubscriptionInfos) { in getOpprotunisticSubInfo()
306 if (subscriptionInfo.getSubscriptionId() == subId) { in getOpprotunisticSubInfo()
307 return subscriptionInfo; in getOpprotunisticSubInfo()
317 for (SubscriptionInfo subscriptionInfo : mOppSubscriptionInfos) { in isOpprotunisticSub()
318 if (subscriptionInfo.getSubscriptionId() == subId) { in isOpprotunisticSub()
413 SubscriptionInfo subscriptionInfo; in getFilteredAvailableNetworks() local
418 subscriptionInfo = subscriptionInfoList.get(subscriptionInfoListIndex); in getFilteredAvailableNetworks()
420 if (subscriptionInfo.getSubscriptionId() == availableNetwork.getSubId()) { in getFilteredAvailableNetworks()
424 } else if (subscriptionInfo.getSubscriptionId() < availableNetwork.getSubId()) { in getFilteredAvailableNetworks()
457 for (SubscriptionInfo subscriptionInfo : subscriptionInfos) { in isPrimaryActiveOnOpportunisticSlot()
[all …]
DOpportunisticNetworkService.java136 for (SubscriptionInfo subscriptionInfo : subscriptionInfos) { in handleSimStateChange()
137 if (subscriptionInfo.getSubscriptionId() == carrierAppConfigInput.getPrimarySub()) { in handleSimStateChange()
438 … SubscriptionInfo subscriptionInfo = mSubscriptionManager.getDefaultVoiceSubscriptionInfo(); in handleCarrierAppAvailableNetworks() local
439 if (subscriptionInfo != null) { in handleCarrierAppAvailableNetworks()
440 onsConfigInput.setPrimarySub(subscriptionInfo.getSubscriptionId()); in handleCarrierAppAvailableNetworks()
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileSelectorTest.java181 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionSuccess() local
185 subscriptionInfoList.add(subscriptionInfo); in testStartProfileSelectionSuccess()
255 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionWithDifferentPrioritySubInfo() local
257 subscriptionInfoList.add(subscriptionInfo); in testStartProfileSelectionWithDifferentPrioritySubInfo()
328 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testStartProfileSelectionWithActivePrimarySimOnESim() local
332 opportunisticSubscriptionInfoList.add(subscriptionInfo); in testStartProfileSelectionWithActivePrimarySimOnESim()
428 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testselectProfileForDataWithInActiveSub() local
430 subscriptionInfoList.add(subscriptionInfo); in testselectProfileForDataWithInActiveSub()
458 SubscriptionInfo subscriptionInfo = new SubscriptionInfo(5, "", 1, "TMO", "TMO", 1, 1, in testselectProfileForDataWithInvalidSubId() local
460 subscriptionInfoList.add(subscriptionInfo); in testselectProfileForDataWithInvalidSubId()
[all …]
/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/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceController.java130 final SubscriptionInfo subscriptionInfo = getSubscriptionInfo(simSlot); in getPhoneNumber() local
131 if (subscriptionInfo == null) { in getPhoneNumber()
135 return getFormattedPhoneNumber(subscriptionInfo); in getPhoneNumber()
159 CharSequence getFormattedPhoneNumber(SubscriptionInfo subscriptionInfo) { in getFormattedPhoneNumber() argument
161 subscriptionInfo); in getFormattedPhoneNumber()
/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/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/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.java99 for (SubscriptionInfo subscriptionInfo : in onMobileNetworkUpdated()
101 if (subscriptionInfo.getSubscriptionId() == subId) { in onMobileNetworkUpdated()
102 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/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/
DDeviceInfoSlice.java97 final SubscriptionInfo subscriptionInfo = getFirstSubscriptionInfo(); in getPhoneNumber() local
98 if (subscriptionInfo == null) { in getPhoneNumber()
102 subscriptionInfo); in getPhoneNumber()
/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/Messaging/src/com/android/messaging/datamodel/data/
DParticipantData.java408 public boolean updateSubscriptionInfoForSelfIfChanged(final SubscriptionInfo subscriptionInfo) { in updateSubscriptionInfoForSelfIfChanged() argument
411 if (subscriptionInfo == null) { in updateSubscriptionInfoForSelfIfChanged()
420 final int slotId = subscriptionInfo.getSimSlotIndex(); in updateSubscriptionInfoForSelfIfChanged()
421 final int color = subscriptionInfo.getIconTint(); in updateSubscriptionInfoForSelfIfChanged()
422 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/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/Settings/src/com/android/settings/network/telephony/
DMobileNetworkActivity.java256 final SubscriptionInfo subscriptionInfo = mSubscriptionInfos.get(i); in updateBottomNavigationView() local
257 menu.add(0, subscriptionInfo.getSubscriptionId(), i, in updateBottomNavigationView()
258 subscriptionInfo.getDisplayName()) in updateBottomNavigationView()
/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/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDeviceInfoUtils.java36 SubscriptionInfo subscriptionInfo) { in getBidiFormattedPhoneNumber() argument
/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/datamodel/
DParticipantRefresh.java450 final SubscriptionInfo subscriptionInfo = in refreshFromSelfProfile() local
452 if (participantData.updateSubscriptionInfoForSelfIfChanged(subscriptionInfo)) { in refreshFromSelfProfile()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java993 for (final SubscriptionInfo subscriptionInfo : subscriptionList) { in forEachActiveSubscription()
994 runnable.runForSubscription(subscriptionInfo.getSubscriptionId()); in forEachActiveSubscription()