Home
last modified time | relevance | path

Searched refs:getSubscriptionId (Results 1 – 25 of 100) sorted by relevance

1234

/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 …]
DMobileNetworkActivityTest.java103 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(PREV_SUB_ID); in setUp()
104 when(mSubscriptionInfo2.getSubscriptionId()).thenReturn(CURRENT_SUB_ID); in setUp()
188 assertThat(mMobileNetworkActivity.getSubscriptionId()).isEqualTo(CURRENT_SUB_ID); in getSubscriptionId_hasIntent_getIdFromIntent()
197 assertThat(mMobileNetworkActivity.getSubscriptionId()).isEqualTo(PREV_SUB_ID); in getSubscriptionId_noIntent_firstIdInList()
DMobileNetworkSwitchControllerTest.java83 when(mSubscription.getSubscriptionId()).thenReturn(mSubId); in setUp()
86 when(sub2.getSubscriptionId()).thenReturn(456); in setUp()
91 mController.init(mLifecycle, mSubscription.getSubscriptionId()); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsTest.java68 when(info.getSubscriptionId()).thenReturn(111); in setupFragment_oneSubscription_noCrash()
75 intent.putExtra(Settings.EXTRA_SUB_ID, info.getSubscriptionId()); in setupFragment_oneSubscription_noCrash()
90 when(info1.getSubscriptionId()).thenReturn(111); in setupFragment_twoSubscriptions_correctSelection()
91 when(info2.getSubscriptionId()).thenReturn(222); in setupFragment_twoSubscriptions_correctSelection()
98 intent.putExtra(Settings.EXTRA_SUB_ID, info2.getSubscriptionId()); in setupFragment_twoSubscriptions_correctSelection()
115 when(info1.getSubscriptionId()).thenReturn(111); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
116 when(info2.getSubscriptionId()).thenReturn(222); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
124 intent.putExtra(Settings.EXTRA_SUB_ID, info1.getSubscriptionId()); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionUtilTest.java96 when(info1.getSubscriptionId()).thenReturn(111); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults()
100 when(info2.getSubscriptionId()).thenReturn(222); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults()
117 assertThat(subs.get(0).getSubscriptionId()).isEqualTo(111); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults()
118 assertThat(subs.get(1).getSubscriptionId()).isEqualTo(222); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults()
128 when(info1.getSubscriptionId()).thenReturn(111); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults()
132 when(info2.getSubscriptionId()).thenReturn(222); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults()
136 when(info3.getSubscriptionId()).thenReturn(333); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults()
159 assertThat(subs.get(0).getSubscriptionId()).isEqualTo(111); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults()
160 assertThat(subs.get(1).getSubscriptionId()).isEqualTo(333); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults()
DMobileNetworkSummaryControllerTest.java150 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneSubscription_correctSummaryAndClickHandler()
164 SubscriptionManager.INVALID_SUBSCRIPTION_ID)).isEqualTo(sub1.getSubscriptionId()); in getSummary_oneSubscription_correctSummaryAndClickHandler()
170 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneInactivePSim_correctSummaryAndClickHandler()
182 verify(mSubscriptionManager).setSubscriptionEnabled(eq(sub1.getSubscriptionId()), eq(true)); in getSummary_oneInactivePSim_correctSummaryAndClickHandler()
189 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_twoSubscriptions_correctSummaryAndFragment()
190 when(sub2.getSubscriptionId()).thenReturn(2); in getSummary_twoSubscriptions_correctSummaryAndFragment()
203 when(sub1.getSubscriptionId()).thenReturn(1); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
204 when(sub2.getSubscriptionId()).thenReturn(2); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
231 when(sub1.getSubscriptionId()).thenReturn(1); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
232 when(sub2.getSubscriptionId()).thenReturn(2); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DCellDataPreference.java148 currentSir.getSubscriptionId() == nextSir.getSubscriptionId())) { in performClick()
151 currentSir.getSubscriptionId() == nextSir.getSubscriptionId()) { in performClick()
165 currentSir.getSubscriptionId() == nextSir.getSubscriptionId()) { in performClick()
239 if (subInfo.getSubscriptionId() != subId) { in disableDataForOtherSubscriptions()
240 mTelephonyManager.setDataEnabled(subInfo.getSubscriptionId(), false); in disableDataForOtherSubscriptions()
/packages/apps/Settings/src/com/android/settings/datausage/
DCellDataPreference.java148 currentSir.getSubscriptionId() == nextSir.getSubscriptionId())) { in performClick()
151 currentSir.getSubscriptionId() == nextSir.getSubscriptionId()) { in performClick()
165 currentSir.getSubscriptionId() == nextSir.getSubscriptionId()) { in performClick()
239 if (subInfo.getSubscriptionId() != subId) { in disableDataForOtherSubscriptions()
240 mTelephonyManager.setDataEnabled(subInfo.getSubscriptionId(), false); in disableDataForOtherSubscriptions()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java106 mSubscriptionInfo.getSubscriptionId());
134 && mSubscriptionInfo.getSubscriptionId() == cbMessage.getSubId()) {
188 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onResume()
214 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onPause()
303 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateSignalStrength()
346 final int subId = mSubscriptionInfo.getSubscriptionId(); in updateNetworkType()
385 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateIccidNumber()
411 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateImsRegistrationState()
433 mSubscriptionInfo.getSubscriptionId()); in getCurrentServiceState()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java188 return a.getSubscriptionId() - b.getSubscriptionId(); in compare()
267 if (subscriptionInfo.getSubscriptionId() == subId) { in getOpprotunisticSubInfo()
279 if (subscriptionInfo.getSubscriptionId() == subId) { in isOpprotunisticSub()
374 if (subscriptionInfo.getSubscriptionId() == availableNetwork.getSubId()) { in getFilteredAvailableNetworks()
378 } else if (subscriptionInfo.getSubscriptionId() < availableNetwork.getSubId()) { in getFilteredAvailableNetworks()
508 if (subscriptionInfo.getSubscriptionId() == subId) { in isActiveSub()
547 if (subscriptionInfo.getSubscriptionId() == availableNetworkInfo.getSubId() in isOpportunisticSubEmbedded()
565 return subscriptionInfo.getSubscriptionId(); in getActiveOpportunisticSubId()
643 if (mSubscriptionManager.isActiveSubId(subscriptionInfo.getSubscriptionId())) { in isOpportunisticSubActive()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/
DSimStatusDialogController.java122 && mSubscriptionInfo.getSubscriptionId() == cbMessage.getSubId()) {
177 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onResume()
201 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onPause()
285 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateSignalStrength()
328 final int subId = mSubscriptionInfo.getSubscriptionId(); in updateNetworkType()
367 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateIccidNumber()
393 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateImsRegistrationState()
421 mSubscriptionInfo.getSubscriptionId()); in getCurrentServiceState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkActivity.java152 switchFragment(new MobileNetworkSettings(), getSubscriptionId()); in updateSubscriptions()
169 if (subscription.getSubscriptionId() == subId) { in getSubscription()
186 int getSubscriptionId() { in getSubscriptionId() method in MobileNetworkActivity
189 return subscription.getSubscriptionId(); in getSubscriptionId()
205 menu.add(0, subscriptionInfo.getSubscriptionId(), i, in updateBottomNavigationView()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkActivity.java153 switchFragment(new MobileNetworkSettings(), getSubscriptionId()); in updateSubscriptions()
170 if (subscription.getSubscriptionId() == subId) { in getSubscription()
187 int getSubscriptionId() { in getSubscriptionId() method in MobileNetworkActivity
190 return subscription.getSubscriptionId(); in getSubscriptionId()
206 menu.add(0, subscriptionInfo.getSubscriptionId(), i, in updateBottomNavigationView()
DDeleteSimProfilePreferenceController.java47 if (info.getSubscriptionId() == subscriptionId && info.isEmbedded()) { in init()
62 mSubscriptionInfo.getSubscriptionId()); in displayPreference()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkUpdateManager.java120 int subId = getSubscriptionId(); in updateSubscriptions()
135 private int getSubscriptionId() { in getSubscriptionId() method in MobileNetworkUpdateManager
137 return subscription != null ? subscription.getSubscriptionId() in getSubscriptionId()
149 if (subscriptionInfo.getSubscriptionId() == mCurSubscriptionId) { in getSubscription()
DMobileNetworkListPreferenceController.java86 preference.setKey(Integer.toString(info.getSubscriptionId())); in createPreference()
89 if (mSubscriptionManager.isActiveSubscriptionId(info.getSubscriptionId())) { in createPreference()
99 info.getSubscriptionId()); in createPreference()
/packages/services/Telephony/src/com/android/phone/
DMobileDataPreference.java138 && currentSir.getSubscriptionId() == nextSir.getSubscriptionId()); in performClick()
228 if (subInfo.getSubscriptionId() != subId) { in disableDataForOtherSubscriptions()
229 mTelephonyManager.setDataEnabled(subInfo.getSubscriptionId(), false); in disableDataForOtherSubscriptions()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceController.java73 preference.setValue(String.valueOf(subscriptions.get(0).getSubscriptionId())); in updateState()
85 int subscriptionId = subscription.getSubscriptionId(); in updateState()
141 subscription.getSubscriptionId()); in getSubscriptionName()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java84 .createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()); in ImeiInfoDialogController()
112 ? mTelephonyManager.getCdmaMin(mSubscriptionInfo.getSubscriptionId()) in updateDialogForCdmaPhone()
150 return mTelephonyManager.getLteOnCdmaMode(mSubscriptionInfo.getSubscriptionId()) in isCdmaLteEnabled()
/packages/apps/Settings/src/com/android/settings/sim/
DSimPreferenceDialog.java141 final String rawNumber = tm.getLine1Number(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
148 String simCarrierName = tm.getSimOperatorName(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
162 int subId = mSubInfoRecord.getSubscriptionId(); in createEditDialog()
168 int subscriptionId = mSubInfoRecord.getSubscriptionId(); in createEditDialog()
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkSummaryController.java112 final int subId = info.getSubscriptionId(); in getSummary()
165 final int subId = info.getSubscriptionId(); in update()
170 intent.putExtra(Settings.EXTRA_SUB_ID, subs.get(0).getSubscriptionId()); in update()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageUtilsTest.java66 when(info1.getSubscriptionId()).thenReturn(1); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
67 when(info2.getSubscriptionId()).thenReturn(2); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
78 when(info.getSubscriptionId()).thenReturn(1); in getDefaultSubscriptionId_hasDefaultSubscription_returnsDefaultSubscription()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimPreferenceDialog.java141 final String rawNumber = tm.getLine1Number(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
148 String simCarrierName = tm.getSimOperatorName(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
162 int subId = mSubInfoRecord.getSubscriptionId(); in createEditDialog()
168 int subscriptionId = mSubInfoRecord.getSubscriptionId(); in createEditDialog()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettings.java111 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId()
170 mSil.get(position).getSubscriptionId()); in getItem()
228 final int subId = mSil.get(mViewPager.getCurrentItem()).getSubscriptionId(); in updateTitleForCurrentSub()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSettings.java111 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId()
170 mSil.get(position).getSubscriptionId()); in getItem()
221 final int subId = mSil.get(mViewPager.getCurrentItem()).getSubscriptionId(); in updateTitleForCurrentSub()

1234