Home
last modified time | relevance | path

Searched refs:SUB_ID (Results 1 – 25 of 124) sorted by relevance

12345

/packages/services/Telephony/tests/src/com/android/phone/satellite/entitlement/
DSatelliteEntitlementControllerTest.java89 private static final int SUB_ID = 0; field in SatelliteEntitlementControllerTest
91 private static final int[] ACTIVE_SUB_ID = {SUB_ID};
213 mRetryCountPerSub.put(SUB_ID, MAX_RETRY_COUNT); in testShouldStartQueryEntitlement()
227 mIsEntitlementInProgressPerSub.put(SUB_ID, true); in testShouldStartQueryEntitlement()
275 verify(mSatelliteController).onSatelliteEntitlementStatusUpdated(eq(SUB_ID), in testCheckSatelliteEntitlementStatus()
290 verify(mSatelliteController).onSatelliteEntitlementStatusUpdated(eq(SUB_ID), eq(true), in testCheckSatelliteEntitlementStatus()
313 verify(mSatelliteController).onSatelliteEntitlementStatusUpdated(eq(SUB_ID), eq(true), in testCheckSatelliteEntitlementStatus()
325 verify(mSatelliteController).onSatelliteEntitlementStatusUpdated(eq(SUB_ID), eq(true), in testCheckSatelliteEntitlementStatus()
337 verify(mSatelliteController).onSatelliteEntitlementStatusUpdated(eq(SUB_ID), eq(true), in testCheckSatelliteEntitlementStatus()
359 verify(mSatelliteController).onSatelliteEntitlementStatusUpdated(eq(SUB_ID), eq(true), in testCheckSatelliteEntitlementStatusWhenInternetConnected()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DMobileNetworkUpdateManagerTest.java46 private static final int SUB_ID = 1; field in MobileNetworkUpdateManagerTest
70 setupMobileNetworkUpdateManager(SUB_ID); in onStart_receiverRegistered()
78 setupMobileNetworkUpdateManager(SUB_ID); in onStop_receiverUnregistered()
87 setupMobileNetworkUpdateManager(SUB_ID); in onStart_subscriptionListenerRegistered()
95 setupMobileNetworkUpdateManager(SUB_ID); in onStop_subscriptionListenerUnregistered()
104 setupMobileNetworkUpdateManager(SUB_ID); in onMobileNetworkUpdated_withInitialSubId_pickSubId()
105 List<SubscriptionInfo> newSubscriptionInfoList = List.of(createSubscriptionInfo(SUB_ID + 1), in onMobileNetworkUpdated_withInitialSubId_pickSubId()
106 createSubscriptionInfo(SUB_ID + 2)); in onMobileNetworkUpdated_withInitialSubId_pickSubId()
115 verify(mMockMobileNetworkUpdateListener, never()).onMobileNetworkUpdated(SUB_ID); in onMobileNetworkUpdated_withInitialSubId_pickSubId()
116 verify(mMockMobileNetworkUpdateListener, never()).onMobileNetworkUpdated(SUB_ID + 1); in onMobileNetworkUpdated_withInitialSubId_pickSubId()
[all …]
DMobileDataTogglePreferenceControllerTest.java67 private static final int SUB_ID = 1; field in MobileDataTogglePreferenceControllerTest
100 when(mMockTelephonyManager.createForSubscriptionId(SUB_ID)) in setUp()
106 .thenReturn(SUB_ID); in setUp()
107 when(mMockSubscriptionManager.isActiveSubscriptionId(SUB_ID)).thenReturn(true); in setUp()
115 mPreferenceController.setFields(SUB_ID); in setUp()
141 Uri uri = Settings.Global.getUriFor(Settings.Global.MOBILE_DATA + SUB_ID); in onStart_multiSim_registersObserver()
155 when(mMockSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)) in refreshUi_isOpportunistic_isDisabled()
156 .thenReturn(createSubscriptionInfo(SUB_ID, /* isOpportunistic= */ true)); in refreshUi_isOpportunistic_isDisabled()
164 when(mMockSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)) in refreshUi_isNotOpportunistic_isEnabled()
165 .thenReturn(createSubscriptionInfo(SUB_ID, /* isOpportunistic= */ false)); in refreshUi_isNotOpportunistic_isEnabled()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DNetworkProviderWifiCallingGroupTest.java62 private static final int SUB_ID = 1; field in NetworkProviderWifiCallingGroupTest
105 when(mTelephonyManager.createForSubscriptionId(SUB_ID)).thenReturn(mTelephonyManager); in setUp()
108 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(SUB_ID); in setUp()
113 doReturn(mCarrierConfig).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in setUp()
115 when(mTelecomManager.getSimCallManagerForSubscription(SUB_ID)) in setUp()
117 mMockQueryWfcState = spy(new MockWfcQueryImsState(mContext, SUB_ID)); in setUp()
143 assertThat(mNetworkProviderWifiCallingGroup.shouldShowWifiCallingForSub(SUB_ID)) in shouldShowWifiCallingForSub_carrierConfigIsUnavailable_returnFalse()
151 doReturn(mMockQueryWfcState).when(mNetworkProviderWifiCallingGroup).queryImsState(SUB_ID); in shouldShowWifiCallingForSub_wifiCallingDisabledWithWifiCallingNotReady_returnFalse()
153 assertThat(mNetworkProviderWifiCallingGroup.shouldShowWifiCallingForSub(SUB_ID)) in shouldShowWifiCallingForSub_wifiCallingDisabledWithWifiCallingNotReady_returnFalse()
160 doReturn(mMockQueryWfcState).when(mNetworkProviderWifiCallingGroup).queryImsState(SUB_ID); in shouldShowWifiCallingForSub_wifiCallingEnabledWithWifiCallingIsReady_returnTrue()
[all …]
DRoamingPreferenceControllerTest.java60 private static final int SUB_ID = 2; field in RoamingPreferenceControllerTest
100 doReturn(mTelephonyManager).when(mTelephonyManager).createForSubscriptionId(SUB_ID); in setUp()
108 SUB_ID)); in setUp()
111 mController.init(mFragmentManager, SUB_ID, mMobileNetworkInfoEntity); in setUp()
141 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in isDialogNeeded_roamingDisabledWithoutFlag_returnTrue()
142 mMobileNetworkInfoEntity = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), false); in isDialogNeeded_roamingDisabledWithoutFlag_returnTrue()
150 mMobileNetworkInfoEntity = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), true); in isDialogNeeded_roamingEnabled_returnFalse()
159 mMobileNetworkInfoEntity = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), false); in setChecked_needDialog_showDialog()
161 doReturn(null).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in setChecked_needDialog_showDialog()
183 mMobileNetworkInfoEntity = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), true); in updateState_validSubId_enabled()
[all …]
DMobileDataPreferenceControllerTest.java66 private static final int SUB_ID = 2; field in MobileDataPreferenceControllerTest
108 doReturn(mTelephonyManager).when(mTelephonyManager).createForSubscriptionId(SUB_ID); in setUp()
115 mLifecycleOwner, SUB_ID); in setUp()
116 mController.init(mFragmentManager, SUB_ID, mSubInfo1, mNetworkInfo1); in setUp()
149 mNetworkInfo1 = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), true); in isDialogNeeded_disableSingleSim_returnFalse()
158 mNetworkInfo1 = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), false); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
163 mNetworkInfo1 = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), true); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
185 mNetworkInfo1 = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), true); in onPreferenceChange_singleSim_On_shouldEnableData()
199 mNetworkInfo1 = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), true); in onPreferenceChange_multiSim_On_shouldEnableData()
212 mNetworkInfo1 = setupMobileNetworkInfoEntity(String.valueOf(SUB_ID), false); in isChecked_returnUserDataEnabled()
[all …]
DDisabledSubscriptionControllerTest.java45 private static final int SUB_ID = 111; field in DisabledSubscriptionControllerTest
71 mController.init(SUB_ID); in setUp()
76 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in displayPreference_subscriptionEnabled_categoryIsVisible()
83 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in displayPreference_subscriptionDisabled_categoryIsNotVisible()
90 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible()
92 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible()
99 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible()
101 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible()
DApnPreferenceControllerTest.java53 private static final int SUB_ID = 2; field in ApnPreferenceControllerTest
76 doReturn(mTelephonyManager).when(mTelephonyManager).createForSubscriptionId(SUB_ID); in setUp()
82 mController.init(SUB_ID); in setUp()
92 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
102 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
112 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
120 when(mCarrierConfigCache.getConfigForSubId(SUB_ID)).thenReturn(null); in getAvailabilityStatus_carrierConfigNull_returnUnavailable()
131 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable()
145 assertThat(intent.getIntExtra(ApnSettings.SUB_ID, 0)).isEqualTo(SUB_ID); in handPreferenceTreeClick_fireIntent()
DCarrierPreferenceControllerTest.java59 private static final int SUB_ID = 2; field in CarrierPreferenceControllerTest
82 doReturn(mTelephonyManager).when(mTelephonyManager).createForSubscriptionId(SUB_ID); in setUp()
89 mController.init(SUB_ID); in setUp()
98 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
108 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
118 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
129 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityFound_openCarrierSettingActivity()
150 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotFound_DoNothing()
164 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotConfigured_DoNothing()
DEnhanced4gBasePreferenceControllerTest.java49 private static final int SUB_ID = 2; field in Enhanced4gBasePreferenceControllerTest
76 doReturn(mTelephonyManager).when(mTelephonyManager).createForSubscriptionId(SUB_ID); in setUp()
81 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
86 mQueryImsState = spy(new MockVolteQueryImsState(mContext, SUB_ID)); in setUp()
95 mController.init(SUB_ID); in setUp()
107 mController.init(SUB_ID); in getAvailabilityStatus_default_returnUnavailable()
117 mController.init(SUB_ID); in getAvailabilityStatus_modeMismatch_returnUnavailable()
/packages/modules/IPsec/tests/iketests/src/java/android/net/eap/
DEapSessionConfigTest.java53 private static final int SUB_ID = 1; field in EapSessionConfigTest
79 .setEapSimConfig(SUB_ID, APPTYPE_USIM) in testBuildEapSim()
87 assertEquals(SUB_ID, eapSimConfig.getSubId()); in testBuildEapSim()
93 verifyPersistableBundleEncodeDecodeIsLossless(new EapSimConfig(SUB_ID, APPTYPE_USIM)); in testPersistableBundleEncodeDecodeEapSim()
101 assertEquals(SUB_ID, eapAkaConfig.getSubId()); in verifyBuildEapAka()
113 .setEapAkaConfig(SUB_ID, APPTYPE_USIM) in testBuildEapAka()
124 SUB_ID, in testBuildEapAkaWithOption()
134 verifyPersistableBundleEncodeDecodeIsLossless(new EapAkaConfig(SUB_ID, APPTYPE_USIM)); in testPersistableBundleEncodeDecodeEapAka()
141 new EapAkaConfig(SUB_ID, APPTYPE_USIM, option)); in testPersistableBundleEncodeDecodeEapAkaWithOption()
149 SUB_ID, APPTYPE_USIM, NETWORK_NAME, ALLOW_MISMATCHED_NETWORK_NAMES) in testBuildEapAkaPrime()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DDataUsageLibTest.kt61 whenever(telephonyManager.getSubscriberId(SUB_ID)).thenReturn(SUBSCRIBER_ID) in setUp()
63 whenever(telephonyManager.createForSubscriptionId(SUB_ID)).thenReturn(telephonyManager) in setUp()
70 val mobileTemplate = DataUsageLib.getMobileTemplate(context, SUB_ID) in getMobileTemplate_availableSubscriptionInfoListIsNull_returnDefaultSub()
81 val mobileTemplate = DataUsageLib.getMobileTemplate(context, SUB_ID) in getMobileTemplate_subscriptionNotActive_returnDefaultSub()
94 val mobileTemplate = DataUsageLib.getMobileTemplate(context, SUB_ID) in getMobileTemplate_mergedImsisFromGroupEmpty_returnRequestedSub()
107 val mobileTemplate = DataUsageLib.getMobileTemplate(context, SUB_ID) in getMobileTemplate_mergedImsisFromGroupNotContainSub_returnRequestedSub()
121 val mobileTemplate = DataUsageLib.getMobileTemplate(context, SUB_ID) in getMobileTemplate_mergedImsisFromGroupContainSub_returnRequestedSub()
131 whenever(telephonyManager.getSubscriberId(SUB_ID)).thenReturn(SUBSCRIBER_ID) in getMobileTemplateForSubId_subscriberIdNotNull()
133 val mobileTemplate = DataUsageLib.getMobileTemplateForSubId(telephonyManager, SUB_ID) in getMobileTemplateForSubId_subscriberIdNotNull()
142 whenever(telephonyManager.getSubscriberId(SUB_ID)).thenReturn(null) in getMobileTemplateForSubId_subscriberIdIsNull()
[all …]
DBillingCycleRepositoryTest.kt48 on { createForSubscriptionId(SUB_ID) } doReturn mock in <lambda>()
63 val modifiable = repository.isModifiableFlow(SUB_ID).firstWithTimeoutOrNull() in <lambda>()
72 val modifiable = repository.isModifiableFlow(SUB_ID).firstWithTimeoutOrNull() in <lambda>()
83 val modifiable = repository.isModifiableFlow(SUB_ID).firstWithTimeoutOrNull() in <lambda>()
96 val modifiable = repository.isModifiableFlow(SUB_ID).firstWithTimeoutOrNull() in <lambda>()
120 const val SUB_ID = 1 constant
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DMobileNetworkSwitchControllerTest.kt52 on { isSubscriptionEnabled(SUB_ID) } doReturn true in <lambda>()
62 on { isSubscriptionEnabledFlow(SUB_ID) } doReturn flowOf(false) in <lambda>()
69 ).apply { init(SUB_ID) } in <lambda>()
74 setId(SUB_ID) in isVisible_pSimAndCanDisablePhysicalSubscription_returnTrue()
93 setId(SUB_ID) in isVisible_pSimAndCannotDisablePhysicalSubscription_returnFalse()
112 setId(SUB_ID) in isVisible_eSim_returnTrue()
128 on { isSubscriptionEnabledFlow(SUB_ID) } doReturn flowOf(true) in isChecked_subscriptionEnabled_switchIsOn()
141 on { isSubscriptionEnabledFlow(SUB_ID) } doReturn flowOf(false) in isChecked_subscriptionNotEnabled_switchIsOff()
161 const val SUB_ID = 123 constant
164 setId(SUB_ID) in <lambda>()
DWifiCallingPreferenceControllerTest.kt62 on { callStateFlow(SUB_ID) } doReturn flowOf(TelephonyManager.CALL_STATE_IDLE) in <lambda>()
78 ).init(subId = SUB_ID, callingPreferenceCategoryController)
89 on { getSimCallManagerForSubscription(SUB_ID) } doReturn null in <lambda>()
105 on { getSimCallManagerForSubscription(SUB_ID) } doReturn in <lambda>()
118 on { callStateFlow(SUB_ID) } doReturn flowOf(TelephonyManager.CALL_STATE_IDLE) in isEnabled_callIdle_enabled()
130 on { callStateFlow(SUB_ID) } doReturn flowOf(TelephonyManager.CALL_STATE_RINGING) in <lambda>()
141 assertThat(preference.intent!!.getIntExtra(Settings.EXTRA_SUB_ID, 0)).isEqualTo(SUB_ID) in <lambda>()
146 const val SUB_ID = 2 constant
DDeleteSimProfilePreferenceControllerTest.kt45 on { subscriptionId } doReturn SUB_ID in <lambda>()
77 controller.init(SUB_ID) in getAvailabilityStatus_noSubs_notAvailable()
86 controller.init(SUB_ID) in getAvailabilityStatus_physicalSim_notAvailable()
95 controller.init(SUB_ID) in getAvailabilityStatus_unknownSim_notAvailable()
102 controller.init(SUB_ID) in getAvailabilityStatus_knownEsim_isAvailable()
109 controller.init(SUB_ID) in onPreferenceClick_startsIntent()
119 const val SUB_ID = 1234 constant
DDisableSimFooterPreferenceControllerTest.kt37 on { subscriptionId } doReturn SUB_ID in <lambda>()
50 ).apply { init(SUB_ID) } in <lambda>()
65 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_eSim_notAvailable()
79 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_pSimAndCannotDisable_available()
93 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_pSimAndCanDisable_notAvailable()
100 const val SUB_ID = 111 constant
DTelephonyRepositoryTest.kt44 on { createForSubscriptionId(SUB_ID) } doReturn mock in <lambda>()
75 subId = SUB_ID, in <lambda>()
85 subId = SUB_ID, in <lambda>()
111 val state = repository.isDataEnabledFlow(subId = SUB_ID) in isDataEnabled_validSub_returnPolicyState()
118 val flow = context.telephonyCallbackFlow<Unit>(SUB_ID) { in <lambda>()
129 val flow = context.telephonyCallbackFlow<Unit>(SUB_ID) { in <lambda>()
139 const val SUB_ID = 1 constant
DAllowedNetworkTypesFlowTest.kt44 on { createForSubscriptionId(SUB_ID) } doReturn mock in <lambda>()
57 val flow = context.allowedNetworkTypesFlow(SUB_ID) in <lambda>()
67 context.allowedNetworkTypesFlow(SUB_ID).toListWithTimeout() in <lambda>()
82 context.allowedNetworkTypesFlow(SUB_ID).toListWithTimeout() in <lambda>()
97 context.allowedNetworkTypesFlow(SUB_ID).toListWithTimeout() in <lambda>()
110 const val SUB_ID = 1 constant
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/wfc/
DWfcActivationActivityTest.java67 private static final int SUB_ID = 1; field in WfcActivationActivityTest
109 SUB_ID, in testMessageCheckWifi_pass()
122 .putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, SUB_ID)); in testMessageCheckWifi_pass()
131 SUB_ID, in testMessageCheckWifiDone_wifiConnectionSuccess_showProgressDialog()
144 .putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, SUB_ID)); in testMessageCheckWifiDone_wifiConnectionSuccess_showProgressDialog()
161 SUB_ID, in testMessageCheckWifiDone_wifiConnectionError_showWiFiUnavailableDialog()
174 .putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, SUB_ID)); in testMessageCheckWifiDone_wifiConnectionError_showWiFiUnavailableDialog()
191 SUB_ID, in testMessageTryEpdgConnectionDone_imsMmTelManagerNotNull_epdgConnectionSuccess()
211 .putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, SUB_ID)); in testMessageTryEpdgConnectionDone_imsMmTelManagerNotNull_epdgConnectionSuccess()
228 SUB_ID, in testMessageShowWebPortal_imsMmTelManagerNull_showWfcWebPortal()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DVideoCallingPreferenceControllerTest.java48 private static final int SUB_ID = 2; field in VideoCallingPreferenceControllerTest
74 doReturn(mTelephonyManager).when(mTelephonyManager).createForSubscriptionId(SUB_ID); in setUp()
79 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
81 mQueryImsState = new MockVtQueryImsState(mContext, SUB_ID); in setUp()
84 mQueryVoLteState = new MockVolteQueryImsState(mContext, SUB_ID); in setUp()
90 SUB_ID, new CallingPreferenceCategoryController(mContext, "calling_category")); in setUp()
106 assertThat(mController.isVideoCallEnabled(SUB_ID)).isTrue(); in isVideoCallEnabled_allFlagsOn_returnTrue()
114 assertThat(mController.isVideoCallEnabled(SUB_ID)).isFalse(); in isVideoCallEnabled_disabledByPlatform_returnFalse()
123 assertThat(mController.isVideoCallEnabled(SUB_ID)).isFalse(); in isVideoCallEnabled_dataDisabled_returnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java55 private static final int SUB_ID = 2; field in WifiScanWorkerTest
77 when(mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(SUB_ID)).thenReturn(false); in setUp()
132 mWifiScanWorker.setCarrierNetworkEnabledIfNeeded(true, SUB_ID); in setCarrierNetworkEnabledIfNeeded_shouldSetCarrierNetworkEnabled()
136 mWifiScanWorker.setCarrierNetworkEnabledIfNeeded(false, SUB_ID); in setCarrierNetworkEnabledIfNeeded_shouldSetCarrierNetworkEnabled()
143 when(mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(SUB_ID)).thenReturn(true); in setCarrierNetworkEnabledIfNeeded_enabledProvision_neverSetCarrierNetworkEnabled()
145 mWifiScanWorker.setCarrierNetworkEnabledIfNeeded(true, SUB_ID); in setCarrierNetworkEnabledIfNeeded_enabledProvision_neverSetCarrierNetworkEnabled()
149 mWifiScanWorker.setCarrierNetworkEnabledIfNeeded(false, SUB_ID); in setCarrierNetworkEnabledIfNeeded_enabledProvision_neverSetCarrierNetworkEnabled()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DBillingCyclePreferenceTest.kt45 on { isModifiableFlow(SUB_ID) } doReturn emptyFlow() in <lambda>()
63 on { isModifiableFlow(SUB_ID) } doReturn flowOf(true) in setTemplate_modifiable_enabled()
74 on { isModifiableFlow(SUB_ID) } doReturn flowOf(false) in setTemplate_notModifiable_notEnabled()
84 preference.setTemplate(mock<NetworkTemplate>(), SUB_ID) in setTemplate()
91 const val SUB_ID = 1 constant
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DMobileDataEnabledFlowTest.kt61 by context.settingsGlobalBoolean(Settings.Global.MOBILE_DATA + SUB_ID) in <lambda>()
65 context.mobileDataEnabledFlow(SUB_ID).toListWithTimeout() in <lambda>()
76 by context.settingsGlobalBoolean(Settings.Global.MOBILE_DATA + SUB_ID) in <lambda>()
80 context.mobileDataEnabledFlow(SUB_ID).toListWithTimeout() in <lambda>()
89 const val SUB_ID = 123 constant
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/fcm/
DFcmRegistrationServiceTest.java66 private static final int SUB_ID = 1; field in FcmRegistrationServiceTest
79 FcmTokenStore.setToken(mContext, SUB_ID, ""); in setup()
98 assertThat(FcmTokenStore.getToken(mContext, SUB_ID)).isEqualTo(TOKEN); in onStartJob_setToken_getToken()
108 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mSubscriptionInfo); in setActiveSubscriptionInfoList()
109 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(SUB_ID); in setActiveSubscriptionInfoList()
123 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(carrierConfig); in setFcmSenderIdString()

12345