/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | DataSubscriptionRepository.kt | 69 defaultSubId, in dataSummaryFlow() method 71 DataSubscriptionIds(defaultSubId, activeSubId) in dataSummaryFlow() 79 val defaultSubId: Int, constant in com.android.settings.network.telephony.DataSubscriptionRepository.DataSubscriptionIds 86 return getDisplayName(defaultSubId) in getDataSummary() 89 return if (activeSubId == defaultSubId) { in getDataSummary()
|
D | MobileDataSlice.java | 129 final int defaultSubId = getDefaultSubscriptionId(mSubscriptionManager); in onNotifyChange() local 130 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onNotifyChange() 134 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, newState, in onNotifyChange()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | ProviderModelSlice.java | 201 final int defaultSubId = subscriptionManager.getDefaultDataSubscriptionId(); in onNotifyChange() local 202 log("defaultSubId:" + defaultSubId); in onNotifyChange() 204 if (!defaultSubscriptionIsUsable(defaultSubId)) { in onNotifyChange() 221 showMobileDataDisableDialog(getMobileDataDisableDialog(defaultSubId, carrierName)); in onNotifyChange() 226 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, newState, in onNotifyChange() 233 doCarrierNetworkAction(isToggleAction, isDataEnabled, defaultSubId); in onNotifyChange() 237 AlertDialog getMobileDataDisableDialog(int defaultSubId, String carrierName) { in getMobileDataDisableDialog() argument 256 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, in getMobileDataDisableDialog() 260 false /* isDataEanbed */, defaultSubId); in getMobileDataDisableDialog() 414 protected boolean defaultSubscriptionIsUsable(int defaultSubId) { in defaultSubscriptionIsUsable() argument [all …]
|
D | DefaultSubscriptionReceiver.java | 50 default void onDefaultSubInfoChanged(int defaultSubId) { in onDefaultSubInfoChanged() argument
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
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 | DataUsageUtils.java | 152 public static NetworkTemplate getDefaultTemplate(Context context, int defaultSubId) { in getDefaultTemplate() argument 153 if (SubscriptionManager.isValidSubscriptionId(defaultSubId) && hasMobileData(context)) { in getDefaultTemplate() 154 return DataUsageLib.getMobileTemplate(context, defaultSubId); in getDefaultTemplate()
|
D | DataUsageSummary.java | 94 final int defaultSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in onCreate() local 95 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onCreate() 104 addMobileSection(defaultSubId); in onCreate()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileDataTogglePreferenceController.java | 138 int defaultSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in handlePreferenceChanged() local 139 boolean needToDisableOthers = mSubscriptionManager.isActiveSubscriptionId(defaultSubId) in handlePreferenceChanged() 140 && getSubId() != defaultSubId; in handlePreferenceChanged()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiver.java | 361 final int defaultSubId = SubscriptionManager.getDefaultSubscriptionId(); in resetSettingsAsNeeded() local 365 if (defaultSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in resetSettingsAsNeeded() 381 Log.d(TAG, "subId=" + subId + " defaultSubId=" + defaultSubId); in resetSettingsAsNeeded() 382 if (defaultSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in resetSettingsAsNeeded() 387 if (subId != defaultSubId) { in resetSettingsAsNeeded() 389 + " because it does not match defaultSubId=" + defaultSubId); in resetSettingsAsNeeded()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 775 val defaultSubId = SubscriptionManager.getDefaultSubscriptionId() in testAllowedUids_WithCarrierServicePackage() constant 776 assertTrue(defaultSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID, in testAllowedUids_WithCarrierServicePackage() 781 doTestAllowedUidsWithSubId(defaultSubId, TRANSPORT_CELLULAR, uid, in testAllowedUids_WithCarrierServicePackage() 783 doTestAllowedUidsWithSubId(defaultSubId, TRANSPORT_WIFI, uid, in testAllowedUids_WithCarrierServicePackage() 785 doTestAllowedUidsWithSubId(defaultSubId, TRANSPORT_BLUETOOTH, uid, in testAllowedUids_WithCarrierServicePackage() 792 val defaultSlotIndex = SubscriptionManager.getSlotIndex(defaultSubId) in testAllowedUids_WithCarrierServicePackage() 793 acquireCarrierPrivilege(defaultSubId) in testAllowedUids_WithCarrierServicePackage() 794 setCarrierServicePackageOverride(defaultSubId, servicePackage) in testAllowedUids_WithCarrierServicePackage() 804 fail("Couldn't make $servicePackage the service package for $defaultSubId: " + in testAllowedUids_WithCarrierServicePackage() 829 doTestAllowedUidsWithSubId(defaultSubId, TRANSPORT_BLUETOOTH, uid, in testAllowedUids_WithCarrierServicePackage() [all …]
|
/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/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | KeepaliveStatsTracker.java | 427 private static int getSubId(@NonNull NetworkCapabilities nc, int defaultSubId) { in getSubId() argument 434 return defaultSubId; in getSubId()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ProviderModelSliceTest.java | 432 AlertDialog getMobileDataDisableDialog(int defaultSubId, String carrierName) { in getMobileDataDisableDialog() argument
|