Home
last modified time | relevance | path

Searched refs:subInfo (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java420 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/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceControllerTest.java241 SubscriptionInfo subInfo = createSubInfo( in refreshUi_title_fourthPriority_subscriptionNetworkIds() local
248 Arrays.asList(subInfo, createSubInfo(SUBID_2, "sub2"))); in refreshUi_title_fourthPriority_subscriptionNetworkIds()
254 assertThat(title).contains(String.valueOf(subInfo.getMcc())); in refreshUi_title_fourthPriority_subscriptionNetworkIds()
255 assertThat(title).contains(String.valueOf(subInfo.getMnc())); in refreshUi_title_fourthPriority_subscriptionNetworkIds()
256 assertThat(title).contains(String.valueOf(subInfo.getSimSlotIndex())); in refreshUi_title_fourthPriority_subscriptionNetworkIds()
257 assertThat(title).contains(String.valueOf(subInfo.getSubscriptionId())); in refreshUi_title_fourthPriority_subscriptionNetworkIds()
262 SubscriptionInfo subInfo = createSubInfo( in refreshUi_title_thirdPriority_subscriptionCarrierName() local
269 Arrays.asList(subInfo, createSubInfo(SUBID_2, "sub2"))); in refreshUi_title_thirdPriority_subscriptionCarrierName()
274 assertThat(mListPreference.getTitle()).isEqualTo(subInfo.getCarrierName()); in refreshUi_title_thirdPriority_subscriptionCarrierName()
279 SubscriptionInfo subInfo = createSubInfo( in refreshUi_title_secondPriority_subscriptionNumber() local
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DNetworkUtils.java73 for (SubscriptionInfo subInfo : subInfoList) { in setMobileDataEnabled()
75 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled()
77 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
/packages/apps/Settings/src/com/android/settings/security/
DSimLockPreferenceController.java82 for (SubscriptionInfo subInfo : subInfoList) { in isSimReady()
83 final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex()); in isSimReady()
101 for (SubscriptionInfo subInfo : subInfoList) { in isSimIccReady()
102 if (mTelephonyManager.hasIccCard(subInfo.getSimSlotIndex())) { in isSimIccReady()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DSimLockPreferenceController.java82 for (SubscriptionInfo subInfo : subInfoList) { in isSimReady()
83 final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex()); in isSimReady()
101 for (SubscriptionInfo subInfo : subInfoList) { in isSimIccReady()
102 if (mTelephonyManager.hasIccCard(subInfo.getSimSlotIndex())) { in isSimIccReady()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkSwitchController.java99 SubscriptionInfo subInfo = null; in update() local
102 subInfo = info; in update()
109 if (subInfo == null || !subInfo.isEmbedded()) { in update()
DMobileNetworkUtils.java249 for (SubscriptionInfo subInfo : subInfoList) { in setMobileDataEnabled()
251 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled()
253 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
/packages/apps/Messaging/src/android/support/v7/mms/
DUtils.java106 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/phone/
DNotificationMgr.java275 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(subId); in updateMwi() local
276 if (subInfo == null) { in updateMwi()
340 notificationText = subInfo.getDisplayName().toString(); in updateMwi()
362 .setColor(subInfo.getIconTint()) in updateMwi()
510 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(subId); in updateCfi() local
511 if (subInfo == null) { in updateCfi()
522 notificationTitle = subInfo.getDisplayName().toString(); in updateCfi()
529 .setColor(subInfo.getIconTint()) in updateCfi()
DMobileDataPreference.java227 for (SubscriptionInfo subInfo : subInfoList) { in disableDataForOtherSubscriptions()
228 if (subInfo.getSubscriptionId() != subId) { in disableDataForOtherSubscriptions()
229 mTelephonyManager.setDataEnabled(subInfo.getSubscriptionId(), false); in disableDataForOtherSubscriptions()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceController.java270 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(mSubscriptionId); in refreshDataplanInfo() local
271 if (subInfo == null) { in refreshDataplanInfo()
272 subInfo = mSubscriptionManager.getAllSubscriptionInfoList().stream().filter( in refreshDataplanInfo()
275 if (subInfo != null && mHasMobileData) { in refreshDataplanInfo()
276 mCarrierName = subInfo.getCarrierName(); in refreshDataplanInfo()
DDataUsageSummary.java151 private void addMobileSection(int subId, SubscriptionInfo subInfo) { in addMobileSection() argument
157 if (subInfo != null && !TextUtils.isEmpty(subInfo.getDisplayName())) { in addMobileSection()
159 title.setTitle(subInfo.getDisplayName()); in addMobileSection()
DDataUsageUtils.java121 for (SubscriptionInfo subInfo : subInfoList) { in hasReadyMobileRadio()
122 isReady = isReady & tele.getSimState(subInfo.getSimSlotIndex()) == SIM_STATE_READY; in hasReadyMobileRadio()
124 Log.d(TAG, "hasReadyMobileRadio: subInfo=" + subInfo); in hasReadyMobileRadio()
DCellDataPreference.java238 for (SubscriptionInfo subInfo : subInfoList) { in disableDataForOtherSubscriptions()
239 if (subInfo.getSubscriptionId() != subId) { in disableDataForOtherSubscriptions()
240 mTelephonyManager.setDataEnabled(subInfo.getSubscriptionId(), false); in disableDataForOtherSubscriptions()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummaryPreferenceController.java271 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(mSubscriptionId); in refreshDataplanInfo() local
272 if (subInfo == null) { in refreshDataplanInfo()
273 subInfo = mSubscriptionManager.getAllSubscriptionInfoList().stream().filter( in refreshDataplanInfo()
276 if (subInfo != null && mHasMobileData) { in refreshDataplanInfo()
277 mCarrierName = subInfo.getCarrierName(); in refreshDataplanInfo()
DDataUsageUtils.java120 for (SubscriptionInfo subInfo : subInfoList) { in hasReadyMobileRadio()
121 isReady = isReady & tele.getSimState(subInfo.getSimSlotIndex()) == SIM_STATE_READY; in hasReadyMobileRadio()
123 Log.d(TAG, "hasReadyMobileRadio: subInfo=" + subInfo); in hasReadyMobileRadio()
DDataUsageSummary.java156 private void addMobileSection(int subId, SubscriptionInfo subInfo) { in addMobileSection() argument
161 if (subInfo != null && !TextUtils.isEmpty(subInfo.getDisplayName())) { in addMobileSection()
163 title.setTitle(subInfo.getDisplayName()); in addMobileSection()
DCellDataPreference.java238 for (SubscriptionInfo subInfo : subInfoList) { in disableDataForOtherSubscriptions()
239 if (subInfo.getSubscriptionId() != subId) { in disableDataForOtherSubscriptions()
240 mTelephonyManager.setDataEnabled(subInfo.getSubscriptionId(), false); in disableDataForOtherSubscriptions()
/packages/services/Telephony/src/com/android/services/telephony/
DConferenceParticipantConnection.java183 SubscriptionInfo subInfo = TelecomAccountRegistry.getInstance(null). in getCountryIso() local
186 if (subInfo == null) { in getCountryIso()
192 return subInfo.getCountryIso().toUpperCase(); in getCountryIso()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoPreferenceController.java163 SubscriptionInfo subInfo = SubscriptionManager.from(mContext) in getPhoneType() local
165 return mTelephonyManager.getCurrentPhoneType(subInfo != null ? subInfo.getSubscriptionId() in getPhoneType()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java367 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo( in initAccountList() local
370 if (subInfo != null) { in initAccountList()
373 SubscriptionInfoHelper.addExtrasToIntent(intent, subInfo); in initAccountList()
567 .map(subInfo -> configManager.getConfigForSubId(subInfo.getSubscriptionId())) in getLaunchSmartForwardingMenuIntent()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettings.java110 for (SubscriptionInfo subInfo : mSil) { in maybeSetViewForSubId()
111 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId()
112 mViewPager.setCurrentItem(mSil.indexOf(subInfo)); in maybeSetViewForSubId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSettings.java110 for (SubscriptionInfo subInfo : mSil) { in maybeSetViewForSubId()
111 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId()
112 mViewPager.setCurrentItem(mSil.indexOf(subInfo)); in maybeSetViewForSubId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkUtils.java232 for (SubscriptionInfo subInfo : subInfoList) { in setMobileDataEnabled()
234 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled()
236 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java234 SubscriptionInfo subInfo = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in refreshDataplanInfo() local
235 if (subInfo != null) { in refreshDataplanInfo()
236 mCarrierName = subInfo.getCarrierName(); in refreshDataplanInfo()

12