/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | SubscriptionUtilTest.java | 206 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 207 when(info2.getSubscriptionId()).thenReturn(SUBID_2); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 237 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 238 when(info2.getSubscriptionId()).thenReturn(SUBID_2); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 267 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_identicalCarriersAfterTrim_fourDigitsUsed() 268 when(info2.getSubscriptionId()).thenReturn(SUBID_2); in getUniqueDisplayNames_identicalCarriersAfterTrim_fourDigitsUsed() 297 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_phoneNumberBlocked_subscriptionIdFallback() 298 when(info2.getSubscriptionId()).thenReturn(SUBID_2); in getUniqueDisplayNames_phoneNumberBlocked_subscriptionIdFallback() 328 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_phoneNumberIdentical_subscriptionIdFallback() 329 when(info2.getSubscriptionId()).thenReturn(SUBID_2); in getUniqueDisplayNames_phoneNumberIdentical_subscriptionIdFallback() [all …]
|
D | SubscriptionsPreferenceControllerTest.java | 272 setupGetIconConditions(sub.get(0).getSubscriptionId(), true, true, in displayPreference_providerAndHasMultiSimAndActive_connectedAndRat() 291 setupGetIconConditions(sub.get(0).getSubscriptionId(), false, true, in displayPreference_providerAndHasMultiSimAndActiveCarrierWifi_connectedAndWPlus() 312 setupGetIconConditions(sub.get(0).getSubscriptionId(), false, false, in displayPreference_providerAndHasMultiSimButMobileDataOff_notAutoConnect() 330 setupGetIconConditions(sub.get(0).getSubscriptionId(), false, true, in displayPreference_providerAndHasMultiSimAndNotActive_showRatOnly() 363 setupGetIconConditions(sub.get(0).getSubscriptionId(), true, true, in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndActive_connectedAndRat() 373 mController.onTelephonyDisplayInfoChanged(sub.get(0).getSubscriptionId(), in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndActive_connectedAndRat() 388 setupGetIconConditions(sub.get(0).getSubscriptionId(), false, true, in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndNotActive_showRat() 397 mController.onTelephonyDisplayInfoChanged(sub.get(0).getSubscriptionId(), in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndNotActive_showRat() 414 setupGetIconConditions(sub.get(0).getSubscriptionId(), false, true, in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndOutOfService_noConnection() 423 mController.onTelephonyDisplayInfoChanged(sub.get(0).getSubscriptionId(), in onTelephonyDisplayInfoChanged_providerAndHasMultiSimAndOutOfService_noConnection() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsTest.java | 103 when(info.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_oneSubscription_noCrash() 111 intent.putExtra(Settings.EXTRA_SUB_ID, info.getSubscriptionId()); in setupFragment_oneSubscription_noCrash() 127 when(info1.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_twoSubscriptions_correctSelection() 128 when(info2.getSubscriptionId()).thenReturn(SUB_ID2); in setupFragment_twoSubscriptions_correctSelection() 138 intent.putExtra(Settings.EXTRA_SUB_ID, info2.getSubscriptionId()); in setupFragment_twoSubscriptions_correctSelection() 156 when(info1.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult() 157 when(info2.getSubscriptionId()).thenReturn(SUB_ID2); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult() 164 intent.putExtra(Settings.EXTRA_SUB_ID, info1.getSubscriptionId()); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileConfigurator.java | 135 subList.add(opportunisticESIM.getSubscriptionId()); in groupWithPSIMAndSetOpportunistic() 147 opportunisticESIM.getSubscriptionId()); in groupWithPSIMAndSetOpportunistic() 168 if (subId == subInfo.getSubscriptionId()) { in activateSubscription() 195 int subId = subInfo.getSubscriptionId(); in deleteInactiveOpportunisticSubscriptions() 233 opportunisticSubIds.add(subInfo.getSubscriptionId()); in getOpportunisticSubIdsofPSIMOperator() 257 if (subId == subInfo.getSubscriptionId()) { in deleteSubscription() 276 pSubList.add(primaryCBRSSubInfo.getSubscriptionId()); in getPSIMGroupId() 319 if (subInfo.getSubscriptionId() != pSIMId) { in findOpportunisticSubscription() 329 Log.d(TAG, "Opp subscription:" + subInfo.getSubscriptionId()); in findOpportunisticSubscription()
|
D | ONSProfileSelector.java | 229 return a.getSubscriptionId() - b.getSubscriptionId(); in compare() 319 if (subscriptionInfo.getSubscriptionId() == subId) { in getOpprotunisticSubInfo() 331 if (subscriptionInfo.getSubscriptionId() == subId) { in isOpprotunisticSub() 378 if (subId == subInfo.getSubscriptionId()) { in switchToSubscription() 483 if (subscriptionInfo.getSubscriptionId() == availableNetwork.getSubId()) { in getFilteredAvailableNetworks() 487 } else if (subscriptionInfo.getSubscriptionId() < availableNetwork.getSubId()) { in getFilteredAvailableNetworks() 620 if (subscriptionInfo.getSubscriptionId() == subId) { in isActiveSub() 660 if (subscriptionInfo.getSubscriptionId() == availableNetworkInfo.getSubId() in isOpportunisticSubEmbedded() 678 return subscriptionInfo.getSubscriptionId(); in getActiveOpportunisticSubId() 803 if (mSubscriptionManager.isActiveSubId(subscriptionInfo.getSubscriptionId())) { in isOpportunisticSubActive()
|
D | ONSProfileActivator.java | 198 pSubInfo.getSubscriptionId())) { in provisionCBRS() 229 int pSubId = subInfo.getSubscriptionId(); in provisionCBRS() 240 if (mSubManager.isActiveSubscriptionId(oppSubInfo.getSubscriptionId()) in provisionCBRS() 268 primaryCBRSSubInfo.getSubscriptionId()); in downloadAndActivateOpportunisticSubscription() 282 if (getESIMDownloadViaWiFiOnlyFlag(primaryCBRSSubInfo.getSubscriptionId()) in downloadAndActivateOpportunisticSubscription() 292 primaryCBRSSubInfo.getSubscriptionId()); in downloadAndActivateOpportunisticSubscription()
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSProfileDownloaderTest.java | 102 doReturn(TEST_SUB_ID).when(mMockSubInfo).getSubscriptionId(); in testNullSMDPAddress() 113 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testNullSMDPAddress() 630 doReturn(TEST_SUB_ID).when(mMockSubInfo).getSubscriptionId(); in testMultipleDownloadRequests() 642 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testMultipleDownloadRequests() 643 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testMultipleDownloadRequests() 644 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testMultipleDownloadRequests() 645 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testMultipleDownloadRequests() 669 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testMultipleDownloadRequests() 670 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testMultipleDownloadRequests() 671 onsProfileDownloader.downloadProfile(mMockSubInfo.getSubscriptionId()); in testMultipleDownloadRequests() [all …]
|
D | ONSProfileConfiguratorTest.java | 92 doReturn(TEST_SUB_ID).when(mMockSubscriptionInfo1).getSubscriptionId(); in testGroupSubscriptionAndSetOpportunistic() 108 doReturn(TEST_SUB_ID).when(mMockSubscriptionInfo1).getSubscriptionId(); in testAlreadyGroupedSubscriptions() 142 doReturn(1).when(mMockSubscriptionInfo1).getSubscriptionId(); in testActivateSubscription() 146 doReturn(2).when(mMockSubscriptionInfo2).getSubscriptionId(); in testActivateSubscription() 175 doReturn(1).when(mMockSubscriptionInfo1).getSubscriptionId(); in testdeleteInactiveOpportunisticSubscriptionsWithSavedOppSubs() 179 doReturn(2).when(mMockSubscriptionInfo2).getSubscriptionId(); in testdeleteInactiveOpportunisticSubscriptionsWithSavedOppSubs() 232 doReturn(TEST_SUB_ID).when(mMockSubscriptionInfo1).getSubscriptionId(); in testFindOpportunisticSubscription() 238 doReturn(2).when(mMockSubscriptionInfo2).getSubscriptionId(); in testFindOpportunisticSubscription()
|
D | ONSProfileActivatorTest.java | 223 doReturn(1).when(mMockSubInfo).getSubscriptionId(); in testDeviceSwitchToDualSIMModeFailed() 245 doReturn(1).when(mMockSubInfo).getSubscriptionId(); in testDeviceSwitchToDualSIMModeSuccess() 312 doReturn(TEST_SUBID_0).when(mMockSubInfo).getSubscriptionId(); in testNonCBRSCarrierPSIMInserted() 362 doReturn(TEST_SUBID_0).when(mMockSubInfo).getSubscriptionId(); in testOneCBRSPSIMAndOneNonCBRSESIM() 363 doReturn(TEST_SUBID_1).when(mMockSubInfo1).getSubscriptionId(); in testOneCBRSPSIMAndOneNonCBRSESIM() 393 doReturn(TEST_SUBID_0).when(mMockSubInfo).getSubscriptionId(); in testOneCBRSPSIMAndOneOpportunisticESIM() 407 doReturn(TEST_SUBID_1).when(mMockSubInfo1).getSubscriptionId(); in testOneCBRSPSIMAndOneOpportunisticESIM() 461 doReturn(TEST_SUBID_1).when(mMockSubInfo).getSubscriptionId(); in testCBRSpSIMAndNotGrouped() 660 doReturn(TEST_SUBID_0).when(mMockSubInfo).getSubscriptionId(); in testESIMDownloadFailureAndRetry()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | SubscriptionUtil.java | 250 return (activeSlotSubInfoList.get(0).getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 253 && (inactiveSlotSubInfoList.get(0).getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 260 final boolean isTargetSubInfo = (subInfo.getSubscriptionId() == subId); in isPrimarySubscriptionWithinSameUuid() 279 if (subInfo.getSubscriptionId() == subscriptionId) { in searchForSubscriptionId() 336 int infoSubId = info.subscriptionInfo.getSubscriptionId(); in getUniqueSubscriptionDisplayNames() 392 + info.subscriptionInfo.getSubscriptionId(); in getUniqueSubscriptionDisplayNames() 396 info -> info.subscriptionInfo.getSubscriptionId(), in getUniqueSubscriptionDisplayNames() 433 return getUniqueSubscriptionDisplayName(info.getSubscriptionId(), context); 570 .filter(subInfo -> subInfo.getSubscriptionId() == subId) 599 .createForSubscriptionId(info.getSubscriptionId()); [all …]
|
D | ActiveSubscriptionsListener.java | 218 logString.append(" " + subInfo.getSubscriptionId()); 239 if (subInfo.getSubscriptionId() == subId) { 275 if (subInfo.getSubscriptionId() == subId) { 351 if (subInfo.getSubscriptionId() == subId) {
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SelectSpecificDataSimDialogFragment.java | 99 activity.onSubscriptionSelected(getDialogType(), info.getSubscriptionId()); in onClick() 109 return subInfos.stream().filter(subinfo -> subinfo.getSubscriptionId() in getNonDefaultDataSubscriptionInfo() 110 != dds.getSubscriptionId()).findFirst().orElse(null); in getNonDefaultDataSubscriptionInfo() 151 Log.d(TAG, "newSubId: " + newSubInfo.getSubscriptionId() in updateDialog() 152 + "currentDataSubID: " + currentDataSubInfo.getSubscriptionId()); in updateDialog()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertService.java | 233 new CellBroadcastChannelManager(mContext, message.getSubscriptionId()); in shouldDisplayFullScreenMessage() 254 Context.TELEPHONY_SERVICE)).createForSubscriptionId(message.getSubscriptionId()); in shouldDisplayMessage() 257 mContext, message.getSubscriptionId(), in shouldDisplayMessage() 289 message.getSubscriptionId()); in shouldDisplayMessage() 305 message.getSubscriptionId()) in shouldDisplayMessage() 406 new CellBroadcastChannelManager(mContext, message.getSubscriptionId()); in handleCellBroadcastIntent() 429 .getResources(mContext, message.getSubscriptionId()) in handleCellBroadcastIntent() 473 && CellBroadcastSettings.getResourcesByOperator(mContext, cbm.getSubscriptionId(), in showNewAlert() 484 mContext, cbm.getSubscriptionId()); in showNewAlert() 488 Resources res = CellBroadcastSettings.getResources(mContext, cbm.getSubscriptionId()); in showNewAlert() [all …]
|
D | CellBroadcastAlertDialog.java | 312 getApplicationContext(), message.getSubscriptionId()); in startScreenOnTimer() 572 this, message.getSubscriptionId()); in onCreate() 575 + message.getSubscriptionId()); in onCreate() 584 message.getSubscriptionId(), in onCreate() 621 int subId = message.getSubscriptionId(); in onResume() 852 message.getSubscriptionId(), in updateAlertText() 856 this, message.getSubscriptionId()); in updateAlertText() 890 int linkMethod = getLinkMethod(message.getSubscriptionId()); in updateAlertText() 1022 this, message.getSubscriptionId()); in onNewIntent() 1025 + message.getSubscriptionId()); in onNewIntent() [all …]
|
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/ |
D | SmartForwardingUtils.java | 88 int subId = SubscriptionManager.getSubscriptionId(i); in getAllSlotCallWaitingStatus() 101 int subId = SubscriptionManager.getSubscriptionId(i); in getAllSlotCallForwardingStatus() 112 int subId = SubscriptionManager.getSubscriptionId(i); in clearAllBackupData() 137 SubscriptionManager.getSubscriptionId(slotId)); in getPhoneNumber()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileNetworkUpdateManager.java | 137 int subId = getSubscriptionId(); in updateSubscriptions() 152 private int getSubscriptionId() { in getSubscriptionId() method in MobileNetworkUpdateManager 154 return subscription != null ? subscription.getSubscriptionId() in getSubscriptionId() 166 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/helper/ |
D | SubscriptionAnnotation.java | 126 public int getSubscriptionId() { in getSubscriptionId() method in SubscriptionAnnotation 128 mSubInfo.getSubscriptionId(); in getSubscriptionId() 143 return TAG + "{" + "subId=" + getSubscriptionId() in toString()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettings.java | 134 if (subId == subInfo.getSubscriptionId()) { in maybeSetViewForSubId() 215 int subId = mSil.get(position).getSubscriptionId(); in getItem() 258 int subId = subInfo.getSubscriptionId(); in updateSubList() 273 final int subId = mSil.get(mViewPager.getCurrentItem()).getSubscriptionId(); in updateTitleForCurrentSub() 338 SubscriptionManager.INVALID_SUBSCRIPTION_ID : subInfo.getSubscriptionId())
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkSubscriptionPreferenceController.java | 72 preference.setValue(String.valueOf(subscriptions.get(0).getSubscriptionId())); in updateState() 84 int subscriptionId = subscription.getSubscriptionId(); in updateState() 140 subscription.getSubscriptionId()); in getSubscriptionName()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MobileNetworkSummaryControllerTest.java | 156 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneSubscription_correctSummaryAndClickHandler() 171 SubscriptionManager.INVALID_SUBSCRIPTION_ID)).isEqualTo(sub1.getSubscriptionId()); in getSummary_oneSubscription_correctSummaryAndClickHandler() 178 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler() 190 verify(mSubscriptionManager).setSubscriptionEnabled(eq(sub1.getSubscriptionId()), eq(true)); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler() 197 when(sub1.getSubscriptionId()).thenReturn(1); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler() 216 SubscriptionManager.INVALID_SUBSCRIPTION_ID)).isEqualTo(sub1.getSubscriptionId()); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | DeleteEuiccSubscriptionSidecar.java | 74 Log.i(TAG, "Deleting subscription ID: " + subscription.getSubscriptionId()); in deleteSubscription() 75 mEuiccManager.deleteSubscription(subscription.getSubscriptionId(), intent); in deleteSubscription()
|
D | NetworkProviderWifiCallingGroup.java | 98 final int subId = info.getSubscriptionId(); in setSubscriptionInfoList() 208 final int subId = info.getSubscriptionId(); in setSubscriptionInfoForPreference() 239 intent.putExtra(Settings.EXTRA_SUB_ID, info.getSubscriptionId()); in setSubscriptionInfoForPreference() 276 int subId = info.getSubscriptionId(); in updateListener()
|
/packages/apps/Car/Settings/tests/unit/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/Telephony/tests/src/com/android/services/telephony/ |
D | TelephonyManagerTest.java | 229 assertEquals(TEST_SUBID_1, mTelephonyManager.getSubscriptionId(TEST_HANDLE1)); in testGetSubscriptionIdCache() 230 assertEquals(TEST_SUBID_1, mTelephonyManager.getSubscriptionId(TEST_HANDLE1)); in testGetSubscriptionIdCache() 231 assertEquals(TEST_SUBID_2, mTelephonyManager.getSubscriptionId(TEST_HANDLE2)); in testGetSubscriptionIdCache() 232 assertEquals(TEST_SUBID_2, mTelephonyManager.getSubscriptionId(TEST_HANDLE2)); in testGetSubscriptionIdCache()
|