Home
last modified time | relevance | path

Searched refs:TEST_SUB_ID (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
H A DRcsFeatureControllerTest.java61 private static final int TEST_SUB_ID = 1; field in RcsFeatureControllerTest
101 verify(mFeatureManager).updateCapabilities(TEST_SUB_ID); in testRcsFeatureManagerConnectDisconnect()
137 controller.registerImsRegistrationCallback(TEST_SUB_ID, regCb); in testFeatureManagerConnectedRegister()
138 controller.registerRcsAvailabilityCallback(TEST_SUB_ID, capCb); in testFeatureManagerConnectedRegister()
158 controller.unregisterImsRegistrationCallback(TEST_SUB_ID, regCb); in testFeatureManagerConnectedRegister()
159 controller.unregisterRcsAvailabilityCallback(TEST_SUB_ID, capCb); in testFeatureManagerConnectedRegister()
250 controller.unregisterImsRegistrationCallback(TEST_SUB_ID, regCb); in testFeatureManagerDisconnectedException()
251 controller.unregisterRcsAvailabilityCallback(TEST_SUB_ID, capCb); in testFeatureManagerDisconnectedException()
261 verify(mFeatureManager).updateCapabilities(TEST_SUB_ID); in testCarrierConfigChanged()
276 verify(mFeatureManager).updateCapabilities(TEST_SUB_ID); in testChangeSubId()
[all …]
H A DSipTransportControllerTest.java80 private static final int TEST_SUB_ID = 1; field in SipTransportControllerTest
162 controller.isSupported(TEST_SUB_ID); in isSupportedRcsNotConnected()
174 controller.isSupported(TEST_SUB_ID + 1); in isSupportedInvalidSubId()
187 controller.isSupported(TEST_SUB_ID); in isSupportedSubIdChanged()
201 assertTrue(controller.isSupported(TEST_SUB_ID)); in isSupportedSipTransportAvailableRcsConnected()
215 controller.isSupported(TEST_SUB_ID); in isSupportedSipTransportNotAvailableRcsDisconnected()
229 assertFalse(controller.isSupported(TEST_SUB_ID)); in isSupportedSipTransportNotAvailableRcsConnected()
243 controller.isSupported(TEST_SUB_ID); in isSupportedImsServiceNotAvailableRcsConnected()
257 controller.createSipDelegate(TEST_SUB_ID + 1, in createImsServiceAvailableSubIdIncorrect()
274 controller.createSipDelegate(TEST_SUB_ID, in createImsServiceDoesntSupportTransport()
[all …]
H A DDelegateStateTrackerTest.java56 private static final int TEST_SUB_ID = 1; field in DelegateStateTrackerTest
80 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, mAppCallback, in testDelegateCreated()
88 verify(mRcsStats).createSipDelegateStats(TEST_SUB_ID, supportedTags); in testDelegateCreated()
104 verify(mRcsStats).onSipTransportFeatureTagStats(TEST_SUB_ID, deniedTags, in testDelegateCreated()
117 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, mAppCallback, in testDelegateDestroyed()
122 verify(mRcsStats).createSipDelegateStats(eq(TEST_SUB_ID), eq(supportedTags)); in testDelegateDestroyed()
128 verify(mRcsStats).onSipDelegateStats(eq(TEST_SUB_ID), eq(supportedTags), in testDelegateDestroyed()
142 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, mAppCallback, in testDelegateChangingRegisteredTagsOverride()
200 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, mAppCallback, in testDelegateChangingDeniedTagsChanged()
258 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, mAppCallback, in testDelegateChangingDeniedTagsChangingToDestroy()
H A DSipDelegateBinderConnectionTest.java63 private static final int TEST_SUB_ID = 1; field in SipDelegateBinderConnectionTest
113 SipDelegateBinderConnection connection = new SipDelegateBinderConnection(TEST_SUB_ID, in testCreateConnection()
137 SipDelegateBinderConnection connection = new SipDelegateBinderConnection(TEST_SUB_ID, in testCreateConnectionServiceDead()
140 doThrow(new RemoteException()).when(mMockTransport).createSipDelegate(eq(TEST_SUB_ID), in testCreateConnectionServiceDead()
151 SipDelegateBinderConnection connection = new SipDelegateBinderConnection(TEST_SUB_ID, in testDestroyConnection()
171 SipDelegateBinderConnection connection = new SipDelegateBinderConnection(TEST_SUB_ID, in testDestroyConnectionDead()
191 SipDelegateBinderConnection connection = new SipDelegateBinderConnection(TEST_SUB_ID, in testStateCallback()
220 verify(mMockTransport).createSipDelegate(eq(TEST_SUB_ID), eq(r), stateCaptor.capture(), in createDelegateCaptureStateCallback()
H A DSipSessionTrackerTest.java102 private static final int TEST_SUB_ID = 1; field in SipSessionTrackerTest
113 mTrackerUT = new SipSessionTracker(TEST_SUB_ID, mRcsStats); in setUp()
141 verify(mRcsStats).onSipTransportSessionClosed(eq(TEST_SUB_ID), eq(attr.callId), in testMetricsEndedGracefullyBye()
169 verify(mRcsStats).onSipTransportSessionClosed(eq(TEST_SUB_ID), eq(attr.callId), in testMetricsCloseCleanupSession()
198 verify(mRcsStats).onSipTransportSessionClosed(eq(TEST_SUB_ID), eq(attr.callId), in testMetricsCloseClearAllSessions()
H A DTransportSipMessageValidatorTest.java62 private static final int TEST_SUB_ID = 1; field in TransportSipMessageValidatorTest
157 verify(mRcsStats).onSipMessageResponse(eq(TEST_SUB_ID), eq("testId2"), in testMetricsResponse()
532 return new TransportSipMessageValidator(TEST_SUB_ID, executor, mSipSessionTracker, in getTestTracker()
H A DSipDelegateControllerTest.java65 private static final int TEST_SUB_ID = 1; field in SipDelegateControllerTest
294 return new SipDelegateController(TEST_SUB_ID, request, "", mExecutorService, in getTestDelegateController()
H A DMessageTransportWrapperTest.java67 private static final int TEST_SUB_ID = 1; field in MessageTransportWrapperTest
310 return new MessageTransportWrapper(TEST_SUB_ID, in createTestMessageTransportWrapper()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
H A DLocationPolicyDisclaimerTest.java43 private static final int TEST_SUB_ID = 0; field in LocationPolicyDisclaimerTest
65 = spy(new LocationPolicyDisclaimer(mContext, TEST_SUB_ID)); in sholdShow_configTrue_shouldShowLocationPolicyDisclaimer()
69 LocationPolicyDisclaimer.KEY_HAS_AGREED_LOCATION_DISCLAIMER + TEST_SUB_ID, in sholdShow_configTrue_shouldShowLocationPolicyDisclaimer()
79 TEST_SUB_ID); in sholdShow_configFalse_shouldNotShowLocationPolicyDisclaimer()
90 = new LocationPolicyDisclaimer(mContext, TEST_SUB_ID); in sholdShow_defaultWfcEnabled_shouldNotShowLocationPolicyDisclaimer()
102 spy(new LocationPolicyDisclaimer(mContext, TEST_SUB_ID)); in sholdShow_alreadyAgreed_shouldNotShowLocationPolicyDisclaimer()
106 LocationPolicyDisclaimer.KEY_HAS_AGREED_LOCATION_DISCLAIMER + TEST_SUB_ID, true) in sholdShow_alreadyAgreed_shouldNotShowLocationPolicyDisclaimer()
116 =spy(new LocationPolicyDisclaimer(mContext, TEST_SUB_ID)); in onAgreed_shouldSetSharedPreferencesToAgreed()
122 LocationPolicyDisclaimer.KEY_HAS_AGREED_LOCATION_DISCLAIMER + TEST_SUB_ID, in onAgreed_shouldSetSharedPreferencesToAgreed()
H A DEmergencyCallLimitationDisclaimerTest.java43 private static final int TEST_SUB_ID = 0; field in EmergencyCallLimitationDisclaimerTest
66 spy(new EmergencyCallLimitationDisclaimer(mContext, TEST_SUB_ID)); in sholdShow_delay1000msec_shouldShowEmergencyCallLimitationDisclaimer()
70 + TEST_SUB_ID, false).commit(); in sholdShow_delay1000msec_shouldShowEmergencyCallLimitationDisclaimer()
79 mContext, TEST_SUB_ID); in sholdShow_delayDefault_shouldNotShowEmergencyCallLimitationDisclaimer()
90 spy(new EmergencyCallLimitationDisclaimer(mContext, TEST_SUB_ID)); in sholdShow_alreadyAgreed_shouldNotShowEmergencyCallLimitationDisclaimer()
94 + TEST_SUB_ID, true).commit(); in sholdShow_alreadyAgreed_shouldNotShowEmergencyCallLimitationDisclaimer()
103 spy(new EmergencyCallLimitationDisclaimer(mContext, TEST_SUB_ID)); in onAgreed_shouldSetSharedPreferencesToAgreed()
110 + TEST_SUB_ID, false)).isTrue(); in onAgreed_shouldSetSharedPreferencesToAgreed()
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/
H A DWifiConfigurationTest.java70 private static final int TEST_SUB_ID = 3; field in WifiConfigurationTest
764 config.subscriptionId = TEST_SUB_ID; in testGetProfileKeyString()
775 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
784 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
793 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
805 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
818 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
829 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
838 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
856 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString()
[all …]
H A DWifiInfoTest.java64 private static final int TEST_SUB_ID = 1; field in WifiInfoTest
87 info.setSubscriptionId(TEST_SUB_ID); in makeWifiInfoForNoRedactions()
130 assertEquals(TEST_SUB_ID, info.getSubscriptionId()); in assertNoRedaction()
181 info.setSubscriptionId(TEST_SUB_ID); in makeWifiInfoForLocationSensitiveRedaction()
212 assertEquals(TEST_SUB_ID, info.getSubscriptionId()); in assertLocationSensitiveRedaction()
427 writeWifiInfo.setSubscriptionId(TEST_SUB_ID); in testWifiInfoCopyConstructor()
451 assertEquals(TEST_SUB_ID, readWifiInfo.getSubscriptionId()); in testWifiInfoCopyConstructor()
536 info1.setSubscriptionId(TEST_SUB_ID); in testWifiInfoEquals()
539 info2.setSubscriptionId(TEST_SUB_ID); in testWifiInfoEquals()
604 info1.setSubscriptionId(TEST_SUB_ID); in testWifiInfoHashcode()
[all …]
H A DWifiManagerTest.java150 private static final int TEST_SUB_ID = 3; field in WifiManagerTest
3186 mWifiManager.setCarrierNetworkOffloadEnabled(TEST_SUB_ID, true, false); in testSetCarrierNetworkOffload()
3187 verify(mWifiService).setCarrierNetworkOffloadEnabled(TEST_SUB_ID, in testSetCarrierNetworkOffload()
3193 when(mWifiService.isCarrierNetworkOffloadEnabled(TEST_SUB_ID, false)).thenReturn(true); in testGetCarrierNetworkOffload()
3194 assertTrue(mWifiManager.isCarrierNetworkOffloadEnabled(TEST_SUB_ID, false)); in testGetCarrierNetworkOffload()
3195 verify(mWifiService).isCarrierNetworkOffloadEnabled(TEST_SUB_ID, false); in testGetCarrierNetworkOffload()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
H A DContactDiscoveryPreferenceControllerTest.java68 private static final int TEST_SUB_ID = 2; field in ContactDiscoveryPreferenceControllerTest
97 doReturn(mCarrierConfig).when(mCarrierConfigManager).getConfigForSubId(eq(TEST_SUB_ID)); in setUp()
107 mPreferenceControllerUT.init(mFragmentManager, TEST_SUB_ID, mLifecycle); in setUp()
116 mPreferenceControllerUT.getAvailabilityStatus(TEST_SUB_ID)); in testGetAvailabilityStatus()
119 mPreferenceControllerUT.getAvailabilityStatus(TEST_SUB_ID)); in testGetAvailabilityStatus()
H A DContactDiscoveryDialogFragmentTest.java50 private static final int TEST_SUB_ID = 2; field in ContactDiscoveryDialogFragmentTest
64 mDialogFragmentUT = spy(ContactDiscoveryDialogFragment.newInstance(TEST_SUB_ID, in setUp()
67 doReturn(mImsRcsManager).when(mImsManager).getImsRcsManager(TEST_SUB_ID); in setUp()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DWifiCarrierInfoStoreManagerDataTest.java46 private static final int TEST_SUB_ID = 3; field in WifiCarrierInfoStoreManagerDataTest
100 mMergedCarrierOffloadMap.put(TEST_SUB_ID, true); in testSerializeDeserialize()
101 mUnmergedCarrierOffloadMap.put(TEST_SUB_ID, false); in testSerializeDeserialize()
H A DNetworkSuggestionNominatorTest.java68 private static final int TEST_SUB_ID = 2020; field in NetworkSuggestionNominatorTest
944 .thenReturn(TEST_SUB_ID); in testSelectNetworkSuggestionForOneMatchCarrierNetworkWithNoSim()
945 when(mWifiCarrierInfoManager.isSimReady(TEST_SUB_ID)).thenReturn(false); in testSelectNetworkSuggestionForOneMatchCarrierNetworkWithNoSim()
992 .thenReturn(TEST_SUB_ID); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele()
993 when(mWifiCarrierInfoManager.isSimReady(TEST_SUB_ID)).thenReturn(true); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele()
994 when(mWifiCarrierInfoManager.requiresImsiEncryption(TEST_SUB_ID)).thenReturn(true); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele()
995 when(mWifiCarrierInfoManager.isImsiEncryptionInfoAvailable(TEST_SUB_ID)).thenReturn(false); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele()
H A DWifiConfigStoreTest.java80 private static final int TEST_SUB_ID = 2; field in WifiConfigStoreTest
570 openNetwork.subscriptionId = TEST_SUB_ID; in testReadWifiConfigStoreData()
606 openNetwork.subscriptionId = TEST_SUB_ID; in testWriteWifiConfigStoreData()
/aosp12/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
H A DUtilsTest.java100 private static final int TEST_SUB_ID = 1111; field in UtilsTest
319 assertFalse(isImsiPrivacyProtectionProvided(mMockContext, TEST_SUB_ID)); in testCheckRequireImsiPrivacyProtectionWithNoCarrierConfig()
327 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(bundle); in testCheckRequireImsiPrivacyProtectionWithCarrierConfigKeyAvailable()
328 assertTrue(isImsiPrivacyProtectionProvided(mMockContext, TEST_SUB_ID)); in testCheckRequireImsiPrivacyProtectionWithCarrierConfigKeyAvailable()
346 when(subscriptionInfo.getSubscriptionId()).thenReturn(TEST_SUB_ID); in testGetSubIdForWifiConfigurationWithMatchingSubscription()
349 assertEquals(TEST_SUB_ID, getSubIdForConfig(mMockContext, config)); in testGetSubIdForWifiConfigurationWithMatchingSubscription()
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
H A DPasspointTestUtils.java33 private static final int TEST_SUB_ID = 1; field in PasspointTestUtils
160 config.setSubscriptionId(TEST_SUB_ID); in createConfig()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGbaManagerTest.java80 private static final int TEST_SUB_ID = Integer.MAX_VALUE; field in GbaManagerTest
100 mTestGbaManager = new GbaManager(mMockContext, TEST_SUB_ID, null, 0, mMockRcsStats); in setUp()
296 return new GbaAuthRequest(TEST_SUB_ID, TelephonyManager.APPTYPE_USIM, in createDefaultRequest()
/aosp12/frameworks/base/tests/vcn/java/com/android/server/vcn/
H A DVcnGatewayConnectionTestBase.java97 protected static final int TEST_SUB_ID = 5; field in VcnGatewayConnectionTestBase
129 TEST_SUB_ID,
130 Collections.singletonMap(TEST_SUB_ID, TEST_SUB_INFO),
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
H A DSipTransportImplBaseTest.java52 private static final int TEST_SUB_ID = 1; field in SipTransportImplBaseTest
158 transportBinder.createSipDelegate(TEST_SUB_ID, new DelegateRequest(Collections.emptySet()), in createSipDelegate()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkPolicyManagerServiceTest.java231 private static final int TEST_SUB_ID = 42; field in NetworkPolicyManagerServiceTest
1153 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[] { plan },
1277 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[] { plan },
1694 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan},
1715 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan},
1731 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan},
1748 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan},
2124 when(mCarrierConfigManager.getConfigForSubId(eq(TEST_SUB_ID))) in expectNetworkStateSnapshot()
2128 buildNetworkCapabilities(TEST_SUB_ID, roaming), in expectNetworkStateSnapshot()
2134 when(mCarrierConfigManager.getConfigForSubId(eq(TEST_SUB_ID))) in expectDefaultCarrierConfig()
[all …]
/aosp12/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/
H A DEabControllerTest.java77 private static final int TEST_SUB_ID = 1; field in EabControllerTest
100 mContext, TEST_SUB_ID, null, Looper.getMainLooper()); in setUp()

12