/packages/apps/Settings/src/com/android/settings/network/ |
D | ProviderModelSlice.java | 194 final int defaultSubId = subscriptionManager.getDefaultDataSubscriptionId(); in onNotifyChange() local 195 log("defaultSubId:" + defaultSubId); in onNotifyChange() 197 if (!defaultSubscriptionIsUsable(defaultSubId)) { in onNotifyChange() 214 showMobileDataDisableDialog(getMobileDataDisableDialog(defaultSubId, carrierName)); in onNotifyChange() 218 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, newState, in onNotifyChange() 225 doCarrierNetworkAction(isToggleAction, isDataEnabled, defaultSubId); in onNotifyChange() 229 AlertDialog getMobileDataDisableDialog(int defaultSubId, String carrierName) { in getMobileDataDisableDialog() argument 247 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, in getMobileDataDisableDialog() 251 false /* isDataEanbed */, defaultSubId); in getMobileDataDisableDialog() 403 protected boolean defaultSubscriptionIsUsable(int defaultSubId) { in defaultSubscriptionIsUsable() argument [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceController.java | 100 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()
|
D | DataUsageEntryPreferenceController.java | 65 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData() local 66 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in formatUsedData() 70 defaultSubId); in formatUsedData()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummary.java | 87 final int defaultSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in onCreate() local 88 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onCreate() 91 mDefaultTemplate = DataUsageUtils.getDefaultTemplate(context, defaultSubId); in onCreate() 99 addMobileSection(defaultSubId); in onCreate()
|
D | DataUsageUtils.java | 183 public static NetworkTemplate getDefaultTemplate(Context context, int defaultSubId) { in getDefaultTemplate() argument 184 if (SubscriptionManager.isValidSubscriptionId(defaultSubId) && hasMobileData(context)) { in getDefaultTemplate() 185 return DataUsageLib.getMobileTemplate(context, defaultSubId); in getDefaultTemplate()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileDataPreferenceController.java | 167 final int defaultSubId = mSubscriptionManager.getDefaultDataSubscriptionId(); in isDialogNeeded() local 169 .isActiveSubscriptionId(defaultSubId) && defaultSubId != mSubId; in isDialogNeeded()
|
D | MobileDataSlice.java | 124 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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiver.java | 232 final int defaultSubId = SubscriptionManager.getDefaultSubscriptionId(); in resetSettingsIfCarrierChanged() local 233 Log.d(TAG, "subId=" + subId + " defaultSubId=" + defaultSubId); in resetSettingsIfCarrierChanged() 234 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in resetSettingsIfCarrierChanged() 239 if (subId != defaultSubId) { in resetSettingsIfCarrierChanged() 241 + " because it does not match defaultSubId=" + defaultSubId); in resetSettingsIfCarrierChanged()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileDataTogglePreferenceController.java | 140 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/ |
D | InsertNewMessageAction.java | 230 final int defaultSubId = PhoneUtils.getDefault().getDefaultSmsSubscriptionId(); in getSelf() local 231 self = BugleDatabaseOperations.getOrCreateSelf(db, defaultSubId); in getSelf()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ProviderModelSliceTest.java | 400 AlertDialog getMobileDataDisableDialog(int defaultSubId, String carrierName) { in getMobileDataDisableDialog() argument
|