/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | DefaultSubscriptionControllerTest.java | 114 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() 142 doReturn(sub2.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() 175 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues() 198 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly() 211 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly() 228 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull() 248 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated() 254 doReturn(sub2.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated() 265 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_goFromTwoSubscriptionsToOne_prefDisappears() 283 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in onSubscriptionsChanged_goFromOneSubscriptionToTwo_prefAppears() [all …]
|
D | MobileNetworkSwitchControllerTest.java | 83 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/ |
D | WifiCallingSettingsTest.java | 97 when(info.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_oneSubscription_noCrash() 105 intent.putExtra(Settings.EXTRA_SUB_ID, info.getSubscriptionId()); in setupFragment_oneSubscription_noCrash() 120 when(info1.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_twoSubscriptions_correctSelection() 121 when(info2.getSubscriptionId()).thenReturn(SUB_ID2); in setupFragment_twoSubscriptions_correctSelection() 127 intent.putExtra(Settings.EXTRA_SUB_ID, info2.getSubscriptionId()); in setupFragment_twoSubscriptions_correctSelection() 144 when(info1.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult() 145 when(info2.getSubscriptionId()).thenReturn(SUB_ID2); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult() 152 intent.putExtra(Settings.EXTRA_SUB_ID, info1.getSubscriptionId()); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertService.java | 185 Context.TELEPHONY_SERVICE)).createForSubscriptionId(message.getSubscriptionId()); in shouldDisplayMessage() 187 mContext, message.getSubscriptionId()).getBoolean(R.bool.ignore_messages_in_ecbm)) { in shouldDisplayMessage() 209 message.getSubscriptionId()); in shouldDisplayMessage() 306 message.getSubscriptionId()) in handleCellBroadcastIntent() 311 message.getSubscriptionId()); in handleCellBroadcastIntent() 354 && CellBroadcastSettings.getResources(mContext, cbm.getSubscriptionId()) in showNewAlert() 362 mContext, cbm.getSubscriptionId()); in showNewAlert() 410 mContext, message.getSubscriptionId()); in isChannelEnabled() 520 mContext, message.getSubscriptionId()); in openEmergencyAlertNotification() 563 : CellBroadcastSettings.getResources(mContext, message.getSubscriptionId()) in openEmergencyAlertNotification() [all …]
|
D | CellBroadcastAlertDialog.java | 349 this, message.getSubscriptionId()); in onCreate() 352 + message.getSubscriptionId()); in onCreate() 359 message.getSubscriptionId()); in onCreate() 387 int subId = message.getSubscriptionId(); in onResume() 546 Resources res = CellBroadcastSettings.getResources(context, message.getSubscriptionId()); in updateAlertText() 563 int linkMethod = getLinkMethod(message.getSubscriptionId()); in updateAlertText() 731 int subId = nextMessage.getSubscriptionId(); in dismiss() 775 if (CellBroadcastSettings.getResources(getApplicationContext(), message.getSubscriptionId()) in onKeyDown() 835 message.getSubscriptionId()).getString(R.string.message_copied); in copyMessageToClipboard()
|
D | CellBroadcastChannelManager.java | 346 if (mSubId != message.getSubscriptionId()) { in getCellBroadcastChannelRangeFromMessage() 349 + message.getSubscriptionId()); in getCellBroadcastChannelRangeFromMessage() 383 if (mSubId != message.getSubscriptionId()) { in isEmergencyMessage() 385 + ", should not be used for message from sub " + message.getSubscriptionId()); in isEmergencyMessage()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MobileNetworkSummaryControllerTest.java | 153 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneSubscription_correctSummaryAndClickHandler() 167 SubscriptionManager.INVALID_SUBSCRIPTION_ID)).isEqualTo(sub1.getSubscriptionId()); in getSummary_oneSubscription_correctSummaryAndClickHandler() 173 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler() 185 verify(mSubscriptionManager).setSubscriptionEnabled(eq(sub1.getSubscriptionId()), eq(true)); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler() 191 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler() 209 SubscriptionManager.INVALID_SUBSCRIPTION_ID)).isEqualTo(sub1.getSubscriptionId()); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler() 216 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_twoSubscriptions_correctSummaryAndFragment() 217 when(sub2.getSubscriptionId()).thenReturn(2); in getSummary_twoSubscriptions_correctSummaryAndFragment() 230 when(sub1.getSubscriptionId()).thenReturn(1); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() 231 when(sub2.getSubscriptionId()).thenReturn(2); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | CellDataPreference.java | 148 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 128 if (mSubscriptionInfo.getSubscriptionId() == subId) { 186 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onResume() 210 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onPause() 294 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateSignalStrength() 337 final int subId = mSubscriptionInfo.getSubscriptionId(); in updateNetworkType() 376 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateIccidNumber() 402 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateImsRegistrationState() 430 mSubscriptionInfo.getSubscriptionId()); in getCurrentServiceState()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileSelector.java | 225 return a.getSubscriptionId() - b.getSubscriptionId(); in compare() 307 if (subscriptionInfo.getSubscriptionId() == subId) { in getOpprotunisticSubInfo() 319 if (subscriptionInfo.getSubscriptionId() == subId) { in isOpprotunisticSub() 421 if (subscriptionInfo.getSubscriptionId() == availableNetwork.getSubId()) { in getFilteredAvailableNetworks() 425 } else if (subscriptionInfo.getSubscriptionId() < availableNetwork.getSubId()) { in getFilteredAvailableNetworks() 581 if (subscriptionInfo.getSubscriptionId() == subId) { in isActiveSub() 621 if (subscriptionInfo.getSubscriptionId() == availableNetworkInfo.getSubId() in isOpportunisticSubEmbedded() 639 return subscriptionInfo.getSubscriptionId(); in getActiveOpportunisticSubId() 764 if (mSubscriptionManager.isActiveSubId(subscriptionInfo.getSubscriptionId())) { in isOpportunisticSubActive()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | SubscriptionUtil.java | 175 return (activeSlotSubInfoList.get(0).getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 177 return (inactiveSlotSubInfoList.get(0).getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 184 final boolean isTargetSubInfo = (subInfo.getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 203 if (subInfo.getSubscriptionId() == subscriptionId) { in searchForSubscriptionId() 300 .createForSubscriptionId(info.getSubscriptionId()); in isSubscriptionVisible()
|
D | ActiveSubsciptionsListener.java | 216 logString.append(" " + subInfo.getSubscriptionId()); 237 if (subInfo.getSubscriptionId() == subId) { 273 if (subInfo.getSubscriptionId() == subId) { 339 if (subInfo.getSubscriptionId() == subId) {
|
D | MobileNetworkSummaryController.java | 118 final int subId = info.getSubscriptionId(); in getSummary() 180 final int subId = info.getSubscriptionId(); in update() 186 intent.putExtra(Settings.EXTRA_SUB_ID, subs.get(0).getSubscriptionId()); in update()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | MobileNetworkActivity.java | 152 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/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 118 ? mSubscriptionInfo.getSubscriptionId() 124 ? mSubscriptionInfo.getSubscriptionId() 270 mSubscriptionInfo.getSubscriptionId()); in onResume() 278 registerImsRegistrationCallback(mSubscriptionInfo.getSubscriptionId()); in onResume() 293 unregisterImsRegistrationCallback(mSubscriptionInfo.getSubscriptionId()); in onPause() 460 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateSignalStrength() 511 final int subId = mSubscriptionInfo.getSubscriptionId(); in updateNetworkType() 562 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateIccidNumber() 638 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in isImsRegistrationStateShowUp()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileNetworkUpdateManager.java | 120 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()
|
D | MobileNetworkListPreferenceController.java | 86 preference.setKey(Integer.toString(info.getSubscriptionId())); in createPreference() 89 if (mSubscriptionManager.isActiveSubscriptionId(info.getSubscriptionId())) { in createPreference() 99 info.getSubscriptionId()); in createPreference()
|
D | NetworkUtils.java | 75 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled() 77 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettings.java | 111 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId() 170 mSil.get(position).getSubscriptionId()); in getItem() 206 if (!queryImsState(info.getSubscriptionId()).isWifiCallingProvisioned()) { in updateSubList() 216 final int subId = mSil.get(mViewPager.getCurrentItem()).getSubscriptionId(); in updateTitleForCurrentSub()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkActivity.java | 163 int subIndex = info.getSubscriptionId(); in onChanged() 211 final int subscriptionIndex = subscription.getSubscriptionId(); in updateSubscriptions() 249 final int subId = subInfo.getSubscriptionId(); in switchFragment() 286 subId = info.getSubscriptionId(); in maybeShowContactDiscoveryDialog()
|
/packages/apps/Settings/src/com/android/settings/ |
D | IccLockSettings.java | 221 if (visibleSubInfo.getSubscriptionId() != subInfo.getSubscriptionId()) { in restoreDialogStates() 226 mSubId = subInfo.getSubscriptionId(); in restoreDialogStates() 260 mSubId = subInfo.getSubscriptionId(); in restoreTabFocus() 288 mSubId = componenterList.get(0).getSubscriptionId(); in onCreateView() 332 final int subId = (sir != null) ? sir.getSubscriptionId() in updatePreferences() 742 .getConfigForSubId(subInfo.getSubscriptionId()); in isSubscriptionVisible()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkSubscriptionPreferenceController.java | 73 preference.setValue(String.valueOf(subscriptions.get(0).getSubscriptionId())); in updateState() 85 int subscriptionId = subscription.getSubscriptionId(); in updateState() 141 subscription.getSubscriptionId()); in getSubscriptionName()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageUtilsTest.java | 65 when(info1.getSubscriptionId()).thenReturn(1); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription() 66 when(info2.getSubscriptionId()).thenReturn(2); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription() 77 when(info.getSubscriptionId()).thenReturn(1); in getDefaultSubscriptionId_hasDefaultSubscription_returnsDefaultSubscription()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/ |
D | SimPreferenceDialog.java | 141 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/ |
D | WifiCallingSettings.java | 111 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId() 170 mSil.get(position).getSubscriptionId()); in getItem() 221 final int subId = mSil.get(mViewPager.getCurrentItem()).getSubscriptionId(); in updateTitleForCurrentSub()
|