/packages/apps/Settings/src/com/android/settings/network/ |
D | SubscriptionUtil.java | 120 final SubscriptionInfo subInfo = subscriptionManager.getAccessibleSubscriptionInfo(subId); in getAvailableSubscription() local 121 if (subInfo == null) { in getAvailableSubscription() 125 final ParcelUuid groupUuid = subInfo.getGroupUuid(); in getAvailableSubscription() 130 return subInfo; in getAvailableSubscription() 135 return subInfo; in getAvailableSubscription() 154 for (SubscriptionInfo subInfo : subscriptions) { in isPrimarySubscriptionWithinSameUuid() 155 if (groupUuid.equals(subInfo.getGroupUuid())) { in isPrimarySubscriptionWithinSameUuid() 156 if (!subInfo.isEmbedded()) { in isPrimarySubscriptionWithinSameUuid() 157 physicalSubInfoList.add(subInfo); in isPrimarySubscriptionWithinSameUuid() 159 if (!subInfo.isOpportunistic()) { in isPrimarySubscriptionWithinSameUuid() [all …]
|
D | ActiveSubscriptionsListener.java | 215 for (SubscriptionInfo subInfo : mCachedActiveSubscriptionInfo) { 216 logString.append(" " + subInfo.getSubscriptionId()); 236 for (SubscriptionInfo subInfo : subInfoList) { 237 if (subInfo.getSubscriptionId() == subId) { 238 return subInfo; 272 for (SubscriptionInfo subInfo : subInfoList) { 273 if (subInfo.getSubscriptionId() == subId) { 274 return subInfo; 338 for (SubscriptionInfo subInfo : mCachedActiveSubscriptionInfo) { 339 if (subInfo.getSubscriptionId() == subId) {
|
D | SubscriptionsPreferenceController.java | 239 SubscriptionInfo subInfo = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in updateForProvider() local 240 if (subInfo == null) { in updateForProvider() 253 startMobileNetworkActivity(mContext, subInfo.getSubscriptionId())); in updateForProvider() 261 subInfo, mContext)); in updateForProvider() 263 mSubsGearPref.setSummary(getMobilePreferenceSummary(subInfo.getSubscriptionId())); in updateForProvider() 264 mSubsGearPref.setIcon(getIcon(subInfo.getSubscriptionId())); in updateForProvider() 268 activeDataSubIds.add(subInfo.getSubscriptionId()); in updateForProvider() 490 .filter(subInfo -> in isAvailable() 492 subInfo.getSubscriptionId())) in isAvailable()
|
D | NetworkProviderCallsSmsController.java | 96 for (SubscriptionInfo subInfo : subs) { in getSummary() 98 int subId = subInfo.getSubscriptionId(); in getSummary() 100 subInfo, mContext); in getSummary() 121 if (subInfo != subs.get(subs.size() - 1)) { in getSummary()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | BackupCallingPreferenceController.java | 75 SubscriptionInfo subInfo = getSubscriptionInfoFromList(subIdList, subId); in getAvailabilityStatus() local 76 if (subInfo == null) { // given subId is not actives in getAvailabilityStatus() 122 SubscriptionInfo subInfo = getSubscriptionInfoFromActiveList(mSubId); in updateState() local 127 switchPreference.setChecked((subInfo != null) ? isChecked() : false); in updateState() 129 updateSummary(getLatestSummary(subInfo)); in updateState() 132 private String getLatestSummary(SubscriptionInfo subInfo) { in getLatestSummary() argument 133 return Objects.toString((subInfo == null) ? null in getLatestSummary() 134 : SubscriptionUtil.getUniqueSubscriptionDisplayName(subInfo, mContext), ""); in getLatestSummary() 183 for (SubscriptionInfo subInfo : subInfoList) { in getSubscriptionInfoFromList() 184 if ((subInfo != null) && (subInfo.getSubscriptionId() == subId)) { in getSubscriptionInfoFromList() [all …]
|
D | MobileNetworkUtils.java | 330 for (SubscriptionInfo subInfo : subInfoList) { in setMobileDataEnabled() 332 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled() 334 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled() 632 final SubscriptionInfo subInfo = getSubscriptionInfo(sm, subId); in getCurrentCarrierNameForDisplay() local 633 if (subInfo != null) { in getCurrentCarrierNameForDisplay() 634 return subInfo.getCarrierName(); in getCurrentCarrierNameForDisplay() 644 final SubscriptionInfo subInfo = getSubscriptionInfo(sm, subId); in getCurrentCarrierNameForDisplay() local 645 if (subInfo != null) { in getCurrentCarrierNameForDisplay() 646 return subInfo.getCarrierName(); in getCurrentCarrierNameForDisplay() 657 for (SubscriptionInfo subInfo : subInfos) { in getSubscriptionInfo() [all …]
|
D | NetworkProviderBackupCallingGroup.java | 181 for (SubscriptionInfo subInfo : mSubInfoListForBackupCall) { in setSubscriptionInfoForPreference() 182 final int subId = subInfo.getSubscriptionId(); in setSubscriptionInfoForPreference() 190 CharSequence displayName = (subInfo == null) ? "" in setSubscriptionInfoForPreference() 191 : SubscriptionUtil.getUniqueSubscriptionDisplayName(subInfo, mContext); in setSubscriptionInfoForPreference() 266 for (SubscriptionInfo subInfo : subInfoList) { in getSubscriptionInfoFromList() 267 if ((subInfo != null) && (subInfo.getSubscriptionId() == subId)) { in getSubscriptionInfoFromList() 268 return subInfo; in getSubscriptionInfoFromList()
|
D | MobileNetworkSwitchController.java | 92 SubscriptionInfo subInfo = null; in update() local 95 subInfo = info; in update() 102 if (subInfo == null || (!subInfo.isEmbedded() && !SubscriptionUtil.showToggleForPhysicalSim( in update()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | PhoneUtils.java | 420 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in getSimCountry() local 421 if (subInfo != null) { in getSimCountry() 422 final String country = subInfo.getCountryIso(); in getSimCountry() 438 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in getCarrierName() local 439 if (subInfo != null) { in getCarrierName() 440 final CharSequence displayName = subInfo.getDisplayName(); in getCarrierName() 444 final CharSequence carrierName = subInfo.getCarrierName(); in getCarrierName() 466 final SubscriptionInfo subInfo = getActiveSubscriptionInfo(); in getMccMnc() local 467 if (subInfo != null) { in getMccMnc() 468 mcc = subInfo.getMcc(); in getMccMnc() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | IccLockSettings.java | 212 final SubscriptionInfo subInfo = mProxySubscriptionMgr in restoreDialogStates() local 214 if (subInfo == null) { in restoreDialogStates() 219 subInfo.getSimSlotIndex()); in restoreDialogStates() 223 if (visibleSubInfo.getSubscriptionId() != subInfo.getSubscriptionId()) { in restoreDialogStates() 227 mSlotId = subInfo.getSimSlotIndex(); in restoreDialogStates() 228 mSubId = subInfo.getSubscriptionId(); in restoreDialogStates() 256 final SubscriptionInfo subInfo = getVisibleSubscriptionInfoForSimSlotIndex(slotId); in restoreTabFocus() local 257 if (subInfo == null) { in restoreTabFocus() 261 mSlotId = subInfo.getSimSlotIndex(); in restoreTabFocus() 262 mSubId = subInfo.getSubscriptionId(); in restoreTabFocus() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | ResetNetworkSubscriptionPreferenceControllerTest.java | 288 SubscriptionInfo subInfo = createSubInfo( in refreshUi_title_fourthPriority_subscriptionNetworkIds() local 294 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(subInfo, in refreshUi_title_fourthPriority_subscriptionNetworkIds() 303 assertThat(title).contains(String.valueOf(subInfo.getMcc())); in refreshUi_title_fourthPriority_subscriptionNetworkIds() 304 assertThat(title).contains(String.valueOf(subInfo.getMnc())); in refreshUi_title_fourthPriority_subscriptionNetworkIds() 305 assertThat(title).contains(String.valueOf(subInfo.getSimSlotIndex())); in refreshUi_title_fourthPriority_subscriptionNetworkIds() 306 assertThat(title).contains(String.valueOf(subInfo.getSubscriptionId())); in refreshUi_title_fourthPriority_subscriptionNetworkIds() 311 SubscriptionInfo subInfo = createSubInfo( in refreshUi_title_thirdPriority_subscriptionCarrierName() local 318 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(subInfo, in refreshUi_title_thirdPriority_subscriptionCarrierName() 326 assertThat(mPreference.getTitle()).isEqualTo(subInfo.getCarrierName()); in refreshUi_title_thirdPriority_subscriptionCarrierName() 331 SubscriptionInfo subInfo = createSubInfo( in refreshUi_title_secondPriority_subscriptionNumber() local [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettings.java | 128 for (SubscriptionInfo subInfo : mSil) { in maybeSetViewForSubId() 129 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId() 130 mViewPager.setCurrentItem(mSil.indexOf(subInfo)); in maybeSetViewForSubId() 248 for (SubscriptionInfo subInfo : subInfoList) { in updateSubList() 249 int subId = subInfo.getSubscriptionId(); in updateSubList() 252 selectedList.add(subInfo); in updateSubList() 335 subInfoList.stream().mapToInt(subInfo -> (subInfo == null) ? 336 SubscriptionManager.INVALID_SUBSCRIPTION_ID : subInfo.getSubscriptionId())
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceController.java | 127 int subscriptionId, SubscriptionInfo subInfo) { in updateConfiguration() argument 136 if (subInfo != null) { in updateConfiguration() 209 final SubscriptionInfo subInfo = getSubscriptionInfo(mSubId); in updateState() local 211 updateConfiguration(mContext, mSubId, subInfo); in updateState() 222 if (subInfo != null) { in updateState() 242 refreshDataplanInfo(info, subInfo); in updateState() 295 SubscriptionInfo subInfo) { in refreshDataplanInfo() argument 306 if (subInfo != null && mHasMobileData) { in refreshDataplanInfo() 307 mCarrierName = subInfo.getCarrierName(); in refreshDataplanInfo()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | SimLockPreferenceController.java | 95 for (SubscriptionInfo subInfo : subInfoList) { in isSimReady() 96 final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex()); in isSimReady() 110 for (SubscriptionInfo subInfo : subInfoList) { in isHideSimLockSetting() 112 .createForSubscriptionId(subInfo.getSubscriptionId()); in isHideSimLockSetting() 114 subInfo.getSubscriptionId()); in isHideSimLockSetting()
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/ |
D | TelephonyUtils.java | 109 SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in isActivedSubId() local 110 return subInfo != null; in isActivedSubId() 121 SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in getSlotId() local 122 if (subInfo != null) { in getSlotId() 123 return subInfo.getSimSlotIndex(); in getSlotId()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | NetworkUtils.java | 73 for (SubscriptionInfo subInfo : subInfoList) { in setMobileDataEnabled() 75 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled() 77 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | PhoneAccountSettingsFragment.java | 287 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo( in initAccountList() local 290 if (subInfo != null) { in initAccountList() 293 SubscriptionInfoHelper.addExtrasToIntent(intent, subInfo); in initAccountList() 478 .filter(subInfo -> !subInfo.isOpportunistic()) in getLaunchSmartForwardingMenuIntent() 485 .map(subInfo -> configManager.getConfigForSubId(subInfo.getSubscriptionId())) in getLaunchSmartForwardingMenuIntent()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | Utils.java | 106 final SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in getMccMnc() local 107 if (subInfo != null) { in getMccMnc() 108 mccMnc[0] = subInfo.getMcc(); in getMccMnc() 109 mccMnc[1] = subInfo.getMnc(); in getMccMnc()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | ConferenceParticipantConnection.java | 183 SubscriptionInfo subInfo = TelecomAccountRegistry.getInstance(null). in getCountryIso() local 186 if (subInfo == null || TextUtils.isEmpty(subInfo.getCountryIso())) { in getCountryIso() 192 return subInfo.getCountryIso().toUpperCase(); in getCountryIso()
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanHelper.java | 45 SubscriptionInfo subInfo = null; in getNai() local 49 subInfo = getSubInfo(context, slotId); in getNai() 54 String mnc = subInfo.getMncString(); in getNai() 63 .append(subInfo.getMccString()) in getNai()
|
/packages/apps/Settings/src/com/android/settings/datausage/lib/ |
D | DataUsageLib.java | 52 for (SubscriptionInfo subInfo : subInfoList) { in getMobileTemplate() 53 if ((subInfo != null) && (subInfo.getSubscriptionId() == subId)) { in getMobileTemplate()
|
/packages/services/Telephony/src/com/android/phone/ |
D | NotificationMgr.java | 287 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(subId); in updateMwi() local 288 if (subInfo == null) { in updateMwi() 352 notificationText = subInfo.getDisplayName().toString(); in updateMwi() 374 .setColor(subInfo.getIconTint()) in updateMwi() 537 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(subId); in updateCfi() local 538 if (subInfo == null) { in updateCfi() 549 if (subInfo.getDisplayName() != null) { in updateCfi() 550 notificationTitle = subInfo.getDisplayName().toString(); in updateCfi() 560 .setColor(subInfo.getIconTint()) in updateCfi()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneStateBroadcaster.java | 150 SubscriptionInfo subInfo = in sendOutgoingEmergencyCallEvent() local 152 if (subInfo != null) { in sendOutgoingEmergencyCallEvent() 153 simSlotIndex = subInfo.getSimSlotIndex(); in sendOutgoingEmergencyCallEvent()
|
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/ |
D | SmartForwardingUtils.java | 139 SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subIdList[0]); in getPhoneNumber() local 140 return (subInfo != null) ? subInfo.getNumber() : ""; in getPhoneNumber()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoPreferenceController.java | 157 SubscriptionInfo subInfo = SubscriptionManager.from(mContext) in getPhoneType() local 159 return mTelephonyManager.getCurrentPhoneType(subInfo != null ? subInfo.getSubscriptionId() in getPhoneType()
|