/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | DefaultSubscriptionControllerTest.java | 99 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 …]
|
D | MobileNetworkActivityTest.java | 109 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(PREV_SUB_ID); in setUp() 110 when(mSubscriptionInfo2.getSubscriptionId()).thenReturn(CURRENT_SUB_ID); in setUp() 188 doReturn(2).when(client).getSubscriptionId(); in phoneChangeReceiver_ignoresCarrierConfigChangeForWrongSubscriptionId() 207 doReturn(2).when(client).getSubscriptionId(); in phoneChangeReceiver_dispatchesCarrierConfigChangeForCorrectSubscriptionId() 231 assertThat(mMobileNetworkActivity.getSubscriptionId()).isEqualTo(CURRENT_SUB_ID); in getSubscriptionId_hasIntent_getIdFromIntent() 240 assertThat(mMobileNetworkActivity.getSubscriptionId()).isEqualTo(PREV_SUB_ID); in getSubscriptionId_noIntent_firstIdInList()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | SubscriptionUtilTest.java | 95 when(info1.getSubscriptionId()).thenReturn(111); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults() 99 when(info2.getSubscriptionId()).thenReturn(222); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults() 116 assertThat(subs.get(0).getSubscriptionId()).isEqualTo(111); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults() 117 assertThat(subs.get(1).getSubscriptionId()).isEqualTo(222); in getAvailableSubscriptions_oneSelectableOneDisabledPSim_twoResults() 127 when(info1.getSubscriptionId()).thenReturn(111); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults() 131 when(info2.getSubscriptionId()).thenReturn(222); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults() 135 when(info3.getSubscriptionId()).thenReturn(333); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults() 158 assertThat(subs.get(0).getSubscriptionId()).isEqualTo(111); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults() 159 assertThat(subs.get(1).getSubscriptionId()).isEqualTo(333); in getAvailableSubscriptions_oneSelectableTwoDisabledPSimsOneAbsent_twoResults()
|
D | MobileNetworkSummaryControllerTest.java | 151 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneSubscription_correctSummaryAndClickHandler() 165 SubscriptionManager.INVALID_SUBSCRIPTION_ID)).isEqualTo(sub1.getSubscriptionId()); in getSummary_oneSubscription_correctSummaryAndClickHandler() 171 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneInactivePSim_correctSummaryAndClickHandler() 183 verify(mSubscriptionManager).setSubscriptionEnabled(eq(sub1.getSubscriptionId()), eq(true)); in getSummary_oneInactivePSim_correctSummaryAndClickHandler() 190 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_twoSubscriptions_correctSummaryAndFragment() 191 when(sub2.getSubscriptionId()).thenReturn(2); in getSummary_twoSubscriptions_correctSummaryAndFragment() 204 when(sub1.getSubscriptionId()).thenReturn(1); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() 205 when(sub2.getSubscriptionId()).thenReturn(2); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() 232 when(sub1.getSubscriptionId()).thenReturn(1); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment() 233 when(sub2.getSubscriptionId()).thenReturn(2); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
|
/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 | 181 Context.TELEPHONY_SERVICE)).createForSubscriptionId(message.getSubscriptionId()); in shouldDisplayMessage() 183 mContext, message.getSubscriptionId()).getBoolean(R.bool.ignore_messages_in_ecbm)) { in shouldDisplayMessage() 205 message.getSubscriptionId()); in shouldDisplayMessage() 292 message.getSubscriptionId()) in handleCellBroadcastIntent() 297 message.getSubscriptionId()); in handleCellBroadcastIntent() 340 && CellBroadcastSettings.getResources(mContext, cbm.getSubscriptionId()) in showNewAlert() 348 mContext, cbm.getSubscriptionId()); in showNewAlert() 396 mContext, message.getSubscriptionId()); in isChannelEnabled() 506 mContext, message.getSubscriptionId()); in openEmergencyAlertNotification() 549 : 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() 379 int subId = message.getSubscriptionId(); in onResume() 538 Resources res = CellBroadcastSettings.getResources(context, message.getSubscriptionId()); in updateAlertText() 555 int linkMethod = getLinkMethod(message.getSubscriptionId()); in updateAlertText() 723 int subId = nextMessage.getSubscriptionId(); in dismiss() 767 if (CellBroadcastSettings.getResources(getApplicationContext(), message.getSubscriptionId()) in onKeyDown() 827 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/src/com/android/settings/network/telephony/ |
D | MobileNetworkActivity.java | 132 public int getSubscriptionId() { in onCreate() 194 switchFragment(new MobileNetworkSettings(), getSubscriptionId()); in updateSubscriptions() 227 if (subscription.getSubscriptionId() == subId) { in getSubscriptionInfo() 238 int getSubscriptionId() { in getSubscriptionId() method in MobileNetworkActivity 241 return subscription.getSubscriptionId(); in getSubscriptionId() 257 menu.add(0, subscriptionInfo.getSubscriptionId(), i, in updateBottomNavigationView() 303 int getSubscriptionId(); in getSubscriptionId() method 330 != mClient.getSubscriptionId()) { in onReceive()
|
/packages/apps/Settings/src/com/android/settings/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/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/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileSelector.java | 223 return a.getSubscriptionId() - b.getSubscriptionId(); in compare() 306 if (subscriptionInfo.getSubscriptionId() == subId) { in getOpprotunisticSubInfo() 318 if (subscriptionInfo.getSubscriptionId() == subId) { in isOpprotunisticSub() 420 if (subscriptionInfo.getSubscriptionId() == availableNetwork.getSubId()) { in getFilteredAvailableNetworks() 424 } 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() 762 if (mSubscriptionManager.isActiveSubId(subscriptionInfo.getSubscriptionId())) { in isOpportunisticSubActive()
|
/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/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 116 ? mSubscriptionInfo.getSubscriptionId() 122 ? mSubscriptionInfo.getSubscriptionId() 268 mSubscriptionInfo.getSubscriptionId()); in onResume() 276 registerImsRegistrationCallback(mSubscriptionInfo.getSubscriptionId()); in onResume() 291 unregisterImsRegistrationCallback(mSubscriptionInfo.getSubscriptionId()); in onPause() 424 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateSignalStrength() 475 final int subId = mSubscriptionInfo.getSubscriptionId(); in updateNetworkType() 526 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateIccidNumber() 587 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in isImsRegistrationStateShowUp()
|
/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/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()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | ActiveSubsciptionsListener.java | 196 logString.append(" " + subInfo.getSubscriptionId()); 217 if (subInfo.getSubscriptionId() == subId) { 253 if (subInfo.getSubscriptionId() == subId) { 319 if (subInfo.getSubscriptionId() == subId) {
|
D | SubscriptionUtil.java | 227 return (activeSlotSubInfoList.get(0).getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 229 return (inactiveSlotSubInfoList.get(0).getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 236 final boolean isTargetSubInfo = (subInfo.getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 255 if (subInfo.getSubscriptionId() == subscriptionId) { in searchForSubscriptionId()
|
D | MobileNetworkSummaryController.java | 112 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/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/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/Settings/src/com/android/settings/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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageUtilsTest.java | 66 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/ |
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()
|