Home
last modified time | relevance | path

Searched refs:defaultDataSubId (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/network/telephony/
DNetworkProviderWorker.java162 int defaultDataSubId = getDefaultDataSubscriptionId(); in updateListener() local
163 if (mDefaultDataSubId == defaultDataSubId) { in updateListener()
167 mDefaultDataSubId = defaultDataSubId; in updateListener()
169 if (SubscriptionManager.isUsableSubscriptionId(defaultDataSubId)) { in updateListener()
173 mSignalStrengthListener.updateSubscriptionIds(Collections.singleton(defaultDataSubId)); in updateListener()
174 mTelephonyManager = mTelephonyManager.createForSubscriptionId(defaultDataSubId); in updateListener()
176 mMobileDataObserver.register(mContext, defaultDataSubId); in updateListener()
DMmsMessagePreferenceController.kt59 val defaultDataSubId = getDefaultDataSubId() in getAvailabilityStatus() constant
60 return defaultDataSubId != mSubId && in getAvailabilityStatus()
61 telephonyManager.createForSubscriptionId(defaultDataSubId).isDataEnabled && in getAvailabilityStatus()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DMmsMessagePreferenceControllerTest.kt57 private var defaultDataSubId = SUB_1_ID variable in com.android.settings.network.telephony.MmsMessagePreferenceControllerTest
62 getDefaultDataSubId = { defaultDataSubId }, in <lambda>()
98 defaultDataSubId = SUB_2_ID in getAvailabilityStatus_isDefaultDataAndDataOnAndAutoDataSwitchOn_unavailable()
113 defaultDataSubId = SUB_2_ID in getAvailabilityStatus_isDefaultDataAndDataOffAndAutoDataSwitchOn_available()
/packages/apps/Settings/src/com/android/settings/network/telephony/wificalling/
DCrossSimCallingViewModel.kt110 val defaultDataSubId = SubscriptionManager.getDefaultDataSubscriptionId() in <lambda>() constant
111 return SubscriptionManager.isValidSubscriptionId(defaultDataSubId) && in <lambda>()
113 subId != defaultDataSubId && in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/network/
DNetworkCellularGroupProvider.kt87 var defaultDataSubId: Int = SubscriptionManager.INVALID_SUBSCRIPTION_ID in <lambda>() variable in com.android.settings.spa.network.NetworkCellularGroupProvider
126 mobileDataSelectedId.intValue = defaultDataSubId in <lambda>()
175 defaultDataSubId = inputDefaultDateSubId in <lambda>()
176 nonDds = if (defaultDataSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in <lambda>()
181 (info.simSlotIndex != -1) && (info.subscriptionId != defaultDataSubId) in <lambda>()
187 Log.d(name, "defaultDataSubId: $defaultDataSubId, nonDds: $nonDds") in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceHelperTest.java120 final int defaultDataSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in setUp() local
121 when(mDefaultDataSubscriptionInfo.getSubscriptionId()).thenReturn(defaultDataSubId); in setUp()
122 when(mSubscriptionManager.getActiveSubscriptionInfo(defaultDataSubId)).thenReturn( in setUp()
DSubscriptionsPreferenceControllerTest.java631 private List<SubscriptionInfo> setupMockSubscriptions(int count, int defaultDataSubId, in setupMockSubscriptions() argument
633 if (defaultDataSubId != INVALID_SUBSCRIPTION_ID) { in setupMockSubscriptions()
634 when(sInjector.getDefaultDataSubscriptionId()).thenReturn(defaultDataSubId); in setupMockSubscriptions()
643 if (subscriptionId == defaultDataSubId) { in setupMockSubscriptions()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DNetworkProviderWorkerTest.java314 public void setDefaultDataSubscriptionId(int defaultDataSubId) { in setDefaultDataSubscriptionId() argument
315 mDefaultDataSubId = defaultDataSubId; in setDefaultDataSubscriptionId()
/packages/apps/Settings/src/com/android/settings/network/
DInternetPreferenceController.java290 public void onDefaultDataChanged(int defaultDataSubId) { in onDefaultDataChanged() argument
291 mDefaultDataSubId = defaultDataSubId; in onDefaultDataChanged()
DDefaultSubscriptionReceiver.java52 default void onDefaultDataChanged(int defaultDataSubId) { in onDefaultDataChanged() argument
DSubscriptionsPreferenceController.java452 int defaultDataSubId = mSubsPrefCtrlInjector.getDefaultDataSubscriptionId(); in onSubscriptionsChanged() local
453 if (defaultDataSubId != mDataEnabledListener.getSubId()) { in onSubscriptionsChanged()
455 mDataEnabledListener.start(defaultDataSubId); in onSubscriptionsChanged()
DNetworkProviderSimListController.java185 public void onDefaultDataChanged(int defaultDataSubId) { in onDefaultDataChanged() argument
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java679 int defaultDataSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in onCreate() local
680 if (SubscriptionManager.isValidSubscriptionId(defaultDataSubId)) { in onCreate()
682 Log.v(LOG_TAG, "Loaded initial default data sub: " + defaultDataSubId); in onCreate()
684 mDefaultDataSubId = defaultDataSubId; in onCreate()