Home
last modified time | relevance | path

Searched refs:getDefaultSubscriptionId (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java99 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
127 doReturn(sub2.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
160 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues()
183 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly()
196 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly()
213 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
233 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
239 doReturn(sub2.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
250 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_goFromTwoSubscriptionsToOne_prefDisappears()
268 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_goFromOneSubscriptionToTwo_prefAppears()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageUtilsTest.java45 assertThat(DataUsageUtils.getDefaultSubscriptionId(null)).isEqualTo( in getDefaultSubscriptionId_nullSubscriptionManager_returnsInvalidId()
55 assertThat(DataUsageUtils.getDefaultSubscriptionId(subscriptionManager)).isEqualTo( in getDefaultSubscriptionId_noSubscriptions_returnsInvalidId()
71 assertThat(DataUsageUtils.getDefaultSubscriptionId(subscriptionManager)).isEqualTo(1); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
81 assertThat(DataUsageUtils.getDefaultSubscriptionId(subscriptionManager)).isEqualTo(1); in getDefaultSubscriptionId_hasDefaultSubscription_returnsDefaultSubscription()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DOpportunisticNetworkService.java180 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "setEnable");
210 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "isEnabled");
234 … mSubscriptionManager.getDefaultSubscriptionId(), "setPreferredDataSubscriptionId");
273 mSubscriptionManager.getDefaultSubscriptionId(),
310 mSubscriptionManager.getDefaultSubscriptionId(), "updateAvailableNetworks");
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceController.java78 int defaultSubscriptionId = getDefaultSubscriptionId(); in updateState()
112 private int getDefaultSubscriptionId() { in getDefaultSubscriptionId() method in ResetNetworkSubscriptionPreferenceController
121 defaultSubscriptionId = SubscriptionManager.getDefaultSubscriptionId(); in getDefaultSubscriptionId()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataSlice.java120 final int defaultSubId = getDefaultSubscriptionId(mSubscriptionManager); in onNotifyChange()
149 protected static int getDefaultSubscriptionId(SubscriptionManager subscriptionManager) { in getDefaultSubscriptionId() method in MobileDataSlice
223 getDefaultSubscriptionId(subscriptionManager)); in onSlicePinned()
DCallsDefaultSubscriptionController.java31 return mManager.getActiveSubscriptionInfo(getDefaultSubscriptionId()); in getDefaultSubscriptionInfo()
35 protected int getDefaultSubscriptionId() { in getDefaultSubscriptionId() method in CallsDefaultSubscriptionController
DSmsDefaultSubscriptionController.java31 return mManager.getActiveSubscriptionInfo(getDefaultSubscriptionId()); in getDefaultSubscriptionInfo()
35 protected int getDefaultSubscriptionId() { in getDefaultSubscriptionId() method in SmsDefaultSubscriptionController
DDefaultSubscriptionController.java71 protected abstract int getDefaultSubscriptionId(); in getDefaultSubscriptionId() method in DefaultSubscriptionController
136 final int serviceDefaultSubId = getDefaultSubscriptionId(); in updateEntries()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileDataSlice.java132 final int defaultSubId = getDefaultSubscriptionId(mSubscriptionManager); in onNotifyChange()
161 protected static int getDefaultSubscriptionId(SubscriptionManager subscriptionManager) { in getDefaultSubscriptionId() method in MobileDataSlice
238 getDefaultSubscriptionId(subscriptionManager)); in onSlicePinned()
DDefaultSubscriptionController.java71 protected abstract int getDefaultSubscriptionId(); in getDefaultSubscriptionId() method in DefaultSubscriptionController
131 final int serviceDefaultSubId = getDefaultSubscriptionId(); in updateEntries()
DSmsDefaultSubscriptionController.java35 protected int getDefaultSubscriptionId() { in getDefaultSubscriptionId() method in SmsDefaultSubscriptionController
DCallsDefaultSubscriptionController.java35 protected int getDefaultSubscriptionId() { in getDefaultSubscriptionId() method in CallsDefaultSubscriptionController
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java95 int defaultSubId = DataUsageUtils.getDefaultSubscriptionId(mSubscriptionManager); in DataUsageSummaryPreferenceController()
233 int defaultSubId = SubscriptionManager.getDefaultSubscriptionId(); in refreshDataplanInfo()
DDataUsagePreferenceController.java65 return DataUsageUtils.getDefaultSubscriptionId(mSubscriptionManager); in getDefaultSubId()
DDataUsageEntryPreferenceController.java61 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData()
DDataWarningAndLimitFragment.java73 DataUsageUtils.getDefaultSubscriptionId(mSubscriptionManager)); in onAttach()
DDataUsageUtils.java58 public static int getDefaultSubscriptionId(SubscriptionManager subscriptionManager) { in getDefaultSubscriptionId() method in DataUsageUtils
DAppDataUsageFragment.java88 subId = DataUsageUtils.getDefaultSubscriptionId(subscriptionManager); in onAttach()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java140 DataUsageUtils.getDefaultSubscriptionId(activity)); in createPreferenceControllers()
295 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData()
DDataUsageUtils.java164 public static int getDefaultSubscriptionId(Context context) { in getDefaultSubscriptionId() method in DataUsageUtils
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java145 DataUsageUtils.getDefaultSubscriptionId(activity)); in createPreferenceControllers()
306 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData()
DDataUsageUtils.java161 public static int getDefaultSubscriptionId(Context context) { in getDefaultSubscriptionId() method in DataUsageUtils
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDataUsageUtils.java30 protected static int getDefaultSubscriptionId(Context context) { in getDefaultSubscriptionId() method in ShadowDataUsageUtils
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java214 int subId = SubscriptionManager.getDefaultSubscriptionId(); in updateActivationState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DSystemUpdatePreferenceControllerTest.java152 SubscriptionManager.getDefaultSubscriptionId(), config); in preferenceClicked_triggersClientInitiatedAction()

12