Home
last modified time | relevance | path

Searched refs:defaultSubId (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java90 final int defaultSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in onCreate() local
91 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onCreate()
94 mDefaultTemplate = DataUsageUtils.getDefaultTemplate(context, defaultSubId); in onCreate()
102 addMobileSection(defaultSubId); in onCreate()
306 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData() local
307 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in formatUsedData()
311 .getPrimaryPlan(subscriptionManager, defaultSubId); in formatUsedData()
DDataUsageUtils.java181 static NetworkTemplate getDefaultTemplate(Context context, int defaultSubId) { in getDefaultTemplate() argument
182 if (hasMobileData(context) && defaultSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getDefaultTemplate()
185 telephonyManager.getSubscriberId(defaultSubId)); in getDefaultTemplate()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java100 int defaultSubId = DataUsageUtils.getDefaultSubscriptionId(mSubscriptionManager); in DataUsageSummaryPreferenceController() local
101 mDefaultTemplate = DataUsageUtils.getMobileNetworkTemplate(mTelephonyManager, defaultSubId); in DataUsageSummaryPreferenceController()
238 int defaultSubId = SubscriptionManager.getDefaultSubscriptionId(); in refreshDataplanInfo() local
242 List<SubscriptionPlan> plans = mSubscriptionManager.getSubscriptionPlans(defaultSubId); in refreshDataplanInfo()
244 defaultSubId); in refreshDataplanInfo()
261 mManageSubscriptionIntent = createManageSubscriptionIntent(defaultSubId); in refreshDataplanInfo()
DDataUsageEntryPreferenceController.java61 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData() local
62 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in formatUsedData()
66 defaultSubId); in formatUsedData()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java86 final int defaultSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in onCreate() local
87 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onCreate()
90 mDefaultTemplate = DataUsageUtils.getDefaultTemplate(context, defaultSubId); in onCreate()
98 addMobileSection(defaultSubId); in onCreate()
DDataUsageUtils.java185 public static NetworkTemplate getDefaultTemplate(Context context, int defaultSubId) { in getDefaultTemplate() argument
186 if (SubscriptionManager.isValidSubscriptionId(defaultSubId) && hasMobileData(context)) { in getDefaultTemplate()
187 return DataUsageLib.getMobileTemplate(context, defaultSubId); in getDefaultTemplate()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataPreferenceController.java149 final int defaultSubId = mSubscriptionManager.getDefaultDataSubscriptionId(); in isDialogNeeded() local
151 .isActiveSubscriptionId(defaultSubId) && defaultSubId != mSubId; in isDialogNeeded()
DMobileDataSlice.java124 final int defaultSubId = getDefaultSubscriptionId(mSubscriptionManager); in onNotifyChange() local
125 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onNotifyChange()
129 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, newState, in onNotifyChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileDataPreferenceController.java150 final int defaultSubId = mSubscriptionManager.getDefaultDataSubscriptionId(); in isDialogNeeded() local
152 .isActiveSubscriptionId(defaultSubId) && defaultSubId != mSubId; in isDialogNeeded()
DMobileDataSlice.java132 final int defaultSubId = getDefaultSubscriptionId(mSubscriptionManager); in onNotifyChange() local
133 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onNotifyChange()
137 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, newState, in onNotifyChange()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileDataTogglePreferenceController.java140 int defaultSubId = mSubscriptionManager.getDefaultDataSubscriptionId(); in handlePreferenceChanged() local
141 boolean needToDisableOthers = mSubscriptionManager.isActiveSubscriptionId(defaultSubId) in handlePreferenceChanged()
142 && mSubId != defaultSubId; in handlePreferenceChanged()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DInsertNewMessageAction.java229 final int defaultSubId = PhoneUtils.getDefault().getDefaultSmsSubscriptionId(); in getSelf() local
230 self = BugleDatabaseOperations.getOrCreateSelf(db, defaultSubId); in getSelf()