/packages/services/Telephony/tests/src/com/android/phone/ |
D | NotificationMgrTest.java | 103 private static final int TEST_SUB_ID = 1; field in NotificationMgrTest 199 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn(null); in testUpdateCfi_visible_noActiveSubscription_notificationNeverSent() 202 mNotificationMgr.updateCfi(TEST_SUB_ID, /*visible=*/true, /*isFresh=*/false); in testUpdateCfi_visible_noActiveSubscription_notificationNeverSent() 211 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn( in testUpdateCfi_visible_hasActiveSub_singleSIM_notificationSent() 214 mNotificationMgr.updateCfi(TEST_SUB_ID, /*visible=*/true, /*isFresh=*/false); in testUpdateCfi_visible_hasActiveSub_singleSIM_notificationSent() 222 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn( in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithoutDisplayName() 226 mNotificationMgr.updateCfi(TEST_SUB_ID, /*visible=*/true, /*isFresh=*/false); in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithoutDisplayName() 234 when(mSubscriptionManager.getActiveSubscriptionInfo(eq(TEST_SUB_ID))).thenReturn( in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithDisplayName() 238 mNotificationMgr.updateCfi(TEST_SUB_ID, /*visible=*/true, /*isFresh=*/false); in testUpdateCfi_visible_hasActiveSub_multiSIM_notificationSentWithDisplayName() 247 mNotificationMgr.updateCfi(TEST_SUB_ID, /*visible=*/false, /*isFresh=*/false); in testUpdateCfi_invisible_hasUnmanagedProfile_notificationCanceled() [all …]
|
D | RcsProvisioningMonitorTest.java | 156 private static final int TEST_SUB_ID = 1; field in RcsProvisioningMonitorTest 858 mConnectorListener.getValue().connectionReady(mFeatureManager, TEST_SUB_ID); in createMonitor()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | RcsFeatureControllerTest.java | 62 private static final int TEST_SUB_ID = 1; field in RcsFeatureControllerTest 100 mConnectorListener.getValue().connectionReady(mFeatureManager, TEST_SUB_ID); in testRcsFeatureManagerConnectDisconnect() 102 verify(mFeatureManager).updateCapabilities(TEST_SUB_ID); in testRcsFeatureManagerConnectDisconnect() 118 mConnectorListener.getValue().connectionReady(mFeatureManager, TEST_SUB_ID); in testFeatureManagerConnectedAddRemoveFeature() 135 mConnectorListener.getValue().connectionReady(mFeatureManager, TEST_SUB_ID); in testFeatureManagerConnectedRegister() 138 controller.registerImsRegistrationCallback(TEST_SUB_ID, regCb); in testFeatureManagerConnectedRegister() 139 controller.registerRcsAvailabilityCallback(TEST_SUB_ID, capCb); in testFeatureManagerConnectedRegister() 146 verify(mFeatureManager).registerImsRegistrationCallback(TEST_SUB_ID, regCb); in testFeatureManagerConnectedRegister() 147 verify(mFeatureManager).registerRcsAvailabilityCallback(TEST_SUB_ID, capCb); in testFeatureManagerConnectedRegister() 159 controller.unregisterImsRegistrationCallback(TEST_SUB_ID, regCb); in testFeatureManagerConnectedRegister() [all …]
|
D | SipTransportControllerTest.java | 80 private static final int TEST_SUB_ID = 1; field in SipTransportControllerTest 143 setFeatureAllowedConfig(TEST_SUB_ID, new String[]{ImsSignallingUtils.MMTEL_TAG, in setUp() 155 RcsProvisioningMonitor.getInstance().overrideImsFeatureValidation(TEST_SUB_ID, null); in tearDown() 163 controller.isSupported(TEST_SUB_ID); in isSupportedRcsNotConnected() 175 controller.isSupported(TEST_SUB_ID + 1); in isSupportedInvalidSubId() 186 controller.onAssociatedSubscriptionUpdated(TEST_SUB_ID + 1); in isSupportedSubIdChanged() 188 controller.isSupported(TEST_SUB_ID); in isSupportedSubIdChanged() 202 assertTrue(controller.isSupported(TEST_SUB_ID)); in isSupportedSipTransportAvailableRcsConnected() 216 controller.isSupported(TEST_SUB_ID); in isSupportedSipTransportNotAvailableRcsDisconnected() 230 assertFalse(controller.isSupported(TEST_SUB_ID)); in isSupportedSipTransportNotAvailableRcsConnected() [all …]
|
D | DelegateStateTrackerTest.java | 60 private static final int TEST_SUB_ID = 1; field in DelegateStateTrackerTest 84 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, in testDelegateCreated() 92 verify(mRcsStats).createSipDelegateStats(TEST_SUB_ID, supportedTags); in testDelegateCreated() 108 verify(mRcsStats).onSipTransportFeatureTagStats(TEST_SUB_ID, deniedTags, in testDelegateCreated() 121 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, in testDelegateDestroyed() 126 verify(mRcsStats).createSipDelegateStats(eq(TEST_SUB_ID), eq(supportedTags)); in testDelegateDestroyed() 132 verify(mRcsStats).onSipDelegateStats(eq(TEST_SUB_ID), eq(supportedTags), in testDelegateDestroyed() 146 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, in testDelegateChangingRegisteredTagsOverride() 243 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, in testDelegateChangingRegisteredTagsRegisteringDisable() 295 DelegateStateTracker stateTracker = new DelegateStateTracker(TEST_SUB_ID, in testDelegateChangingRegisteredTagsRegisteringEnable() [all …]
|
D | SipDelegateBinderConnectionTest.java | 63 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()
|
D | SipSessionTrackerTest.java | 120 private static final int TEST_SUB_ID = 1; field in SipSessionTrackerTest 138 mTrackerUT = new SipSessionTracker(TEST_SUB_ID, mRcsStats); in setUp() 174 verify(mRcsStats).onSipTransportSessionClosed(eq(TEST_SUB_ID), eq(attr.callId), in testMetricsEndedGracefullyBye() 202 verify(mRcsStats).onSipTransportSessionClosed(eq(TEST_SUB_ID), eq(attr.callId), in testMetricsCloseCleanupSession() 231 verify(mRcsStats).onSipTransportSessionClosed(eq(TEST_SUB_ID), eq(attr.callId), in testMetricsCloseClearAllSessions() 566 TEST_SUB_ID, mRcsBinderCache, mBinderCache); in registerCallback() 573 eq(TEST_SUB_ID), callbackCaptor.capture()); in registerCallback()
|
D | TransportSipMessageValidatorTest.java | 62 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()
|
D | SipDelegateControllerTest.java | 66 private static final int TEST_SUB_ID = 1; field in SipDelegateControllerTest 295 return new SipDelegateController(TEST_SUB_ID, Binder.getCallingUid(), request, "", in getTestDelegateController()
|
D | MessageTransportWrapperTest.java | 67 private static final int TEST_SUB_ID = 1; field in MessageTransportWrapperTest 310 return new MessageTransportWrapper(TEST_SUB_ID, in createTestMessageTransportWrapper()
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSProfileDownloaderTest.java | 50 private static final int TEST_SUB_ID = 1; field in ONSProfileDownloaderTest 102 doReturn(TEST_SUB_ID).when(mMockSubInfo).getSubscriptionId(); in testNullSMDPAddress() 105 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testNullSMDPAddress() 106 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testNullSMDPAddress() 126 assertEquals(primarySubId, TEST_SUB_ID); in testDownloadSuccessCallback() 144 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadSuccessCallback() 154 intent.putExtra(ONSProfileDownloader.PARAM_PRIMARY_SUBID, TEST_SUB_ID); in testDownloadSuccessCallback() 184 doReturn(config).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testDownloadFailureUnresolvableError() 189 doReturn(mMockSubInfo).when(mMockSubManager).getActiveSubscriptionInfo(TEST_SUB_ID); in testDownloadFailureUnresolvableError() 199 intent.putExtra(ONSProfileDownloader.PARAM_PRIMARY_SUBID, TEST_SUB_ID); in testDownloadFailureUnresolvableError() [all …]
|
D | ONSProfileConfiguratorTest.java | 45 private static final int TEST_SUB_ID = 1; field in ONSProfileConfiguratorTest 81 intent.putExtra(ONSProfileConfigurator.PARAM_SUB_ID, TEST_SUB_ID); in testDeleteSubscription() 87 verify(mMockConfigListener).onOppSubscriptionDeleted(TEST_SUB_ID); in testDeleteSubscription() 92 doReturn(TEST_SUB_ID).when(mMockSubscriptionInfo1).getSubscriptionId(); in testGroupSubscriptionAndSetOpportunistic() 102 subList.add(TEST_SUB_ID); in testGroupSubscriptionAndSetOpportunistic() 108 doReturn(TEST_SUB_ID).when(mMockSubscriptionInfo1).getSubscriptionId(); in testAlreadyGroupedSubscriptions() 132 intent.putExtra(ONSProfileConfigurator.PARAM_SUB_ID, TEST_SUB_ID); in testActivateSubscription() 151 mOnsProfileConfigurator.activateSubscription(TEST_SUB_ID); in testActivateSubscription() 152 verify(mMockEuiccMngrCard1).switchToSubscription(TEST_SUB_ID, callbackIntent); in testActivateSubscription() 163 doReturn(persistableBundle).when(mMockCarrierConfigManager).getConfigForSubId(TEST_SUB_ID); in testdeleteInactiveOpportunisticSubscriptionsWithNoneSavedOppSubs() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | LocationPolicyDisclaimerTest.java | 43 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()
|
D | EmergencyCallLimitationDisclaimerTest.java | 43 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()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 77 private static final int TEST_SUB_ID = 3; field in WifiConfigurationTest 880 config.subscriptionId = TEST_SUB_ID; in testGetProfileKeyString() 888 TEST_CARRIER_ID, TEST_SUB_ID, false), config.getProfileKey()); in testGetProfileKeyString() 892 TEST_CARRIER_ID, TEST_SUB_ID, false), config.getProfileKey()); in testGetProfileKeyString() 896 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString() 902 TEST_CARRIER_ID, TEST_SUB_ID, false), config.getProfileKey()); in testGetProfileKeyString() 905 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString() 911 TEST_CARRIER_ID, TEST_SUB_ID, false), config.getProfileKey()); in testGetProfileKeyString() 914 TEST_CARRIER_ID, TEST_SUB_ID, true), config.getProfileKey()); in testGetProfileKeyString() 923 TEST_CARRIER_ID, TEST_SUB_ID, false), config.getProfileKey()); in testGetProfileKeyString() [all …]
|
D | WifiInfoTest.java | 68 private static final int TEST_SUB_ID = 1; field in WifiInfoTest 162 info.setSubscriptionId(TEST_SUB_ID); in makeWifiInfoForRedactionTest() 213 assertEquals(TEST_SUB_ID, info.getSubscriptionId()); in assertNoRedaction() 278 assertEquals(TEST_SUB_ID, info.getSubscriptionId()); in assertLocationSensitiveRedaction() 341 assertEquals(TEST_SUB_ID, info.getSubscriptionId()); in assertLocalMacAddressInfoRedaction() 528 writeWifiInfo.setSubscriptionId(TEST_SUB_ID); in testWifiInfoCopyConstructor() 558 assertEquals(TEST_SUB_ID, readWifiInfo.getSubscriptionId()); in testWifiInfoCopyConstructor() 677 info1.setSubscriptionId(TEST_SUB_ID); in testWifiInfoEquals() 680 info2.setSubscriptionId(TEST_SUB_ID); in testWifiInfoEquals() 745 info1.setSubscriptionId(TEST_SUB_ID); in testWifiInfoHashcode() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | ContactDiscoveryPreferenceControllerTest.java | 69 private static final int TEST_SUB_ID = 2; field in ContactDiscoveryPreferenceControllerTest 98 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(eq(TEST_SUB_ID)); in setUp() 108 mPreferenceControllerUT.init(mFragmentManager, TEST_SUB_ID); in setUp() 118 mPreferenceControllerUT.getAvailabilityStatus(TEST_SUB_ID)); in testGetAvailabilityStatus() 121 mPreferenceControllerUT.getAvailabilityStatus(TEST_SUB_ID)); in testGetAvailabilityStatus()
|
D | ContactDiscoveryDialogFragmentTest.java | 52 private static final int TEST_SUB_ID = 2; field in ContactDiscoveryDialogFragmentTest 66 mDialogFragmentUT = spy(ContactDiscoveryDialogFragment.newInstance(TEST_SUB_ID, in setUp() 69 doReturn(mImsRcsManager).when(mImsManager).getImsRcsManager(TEST_SUB_ID); in setUp()
|
/packages/services/Iwlan/test/com/google/android/iwlan/ |
D | IwlanCarrierConfigChangeListenerTest.java | 39 private static final int TEST_SUB_ID = 5; field in IwlanCarrierConfigChangeListenerTest 70 TEST_SLOT_ID, TEST_SUB_ID, TEST_CARRIER_ID, TEST_CARRIER_ID); in testCarrierConfigChanged() 76 mMockContext, TEST_SLOT_ID, TEST_SUB_ID, TEST_CARRIER_ID)); in testCarrierConfigChanged()
|
D | IwlanBroadcastReceiverTest.java | 58 private static final int TEST_SUB_ID = 5; field in IwlanBroadcastReceiverTest 82 lenient().when(SubscriptionManager.getSlotIndex(eq(TEST_SUB_ID))).thenReturn(TEST_SLOT_ID); in setUp() 172 mIntent.putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, TEST_SUB_ID); in onReceiveMethodWithArgs() 184 mIntent.putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, TEST_SUB_ID); in onReceiveMethodWithArgs()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCarrierInfoStoreManagerDataTest.java | 48 private static final int TEST_SUB_ID = 3; field in WifiCarrierInfoStoreManagerDataTest 102 mMergedCarrierOffloadMap.put(TEST_SUB_ID, true); in testSerializeDeserialize() 103 mUnmergedCarrierOffloadMap.put(TEST_SUB_ID, false); in testSerializeDeserialize()
|
D | NetworkSuggestionNominatorTest.java | 84 private static final int TEST_SUB_ID = 2020; field in NetworkSuggestionNominatorTest 973 .thenReturn(TEST_SUB_ID); in testSelectNetworkSuggestionForOneMatchCarrierNetworkWithNoSim() 974 when(mWifiCarrierInfoManager.isSimReady(TEST_SUB_ID)).thenReturn(false); in testSelectNetworkSuggestionForOneMatchCarrierNetworkWithNoSim() 1022 .thenReturn(TEST_SUB_ID); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele() 1023 when(mWifiCarrierInfoManager.isSimReady(TEST_SUB_ID)).thenReturn(true); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele() 1024 when(mWifiCarrierInfoManager.requiresImsiEncryption(TEST_SUB_ID)).thenReturn(true); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele() 1025 when(mWifiCarrierInfoManager.isImsiEncryptionInfoAvailable(TEST_SUB_ID)).thenReturn(false); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele() 1072 eapSimConfig.subscriptionId = TEST_SUB_ID; in testSelectNetworkSuggestionForOneMatchSimBasedWithOobPseudonymInfoAvailable() 1073 when(mWifiCarrierInfoManager.getBestMatchSubscriptionId(any())).thenReturn(TEST_SUB_ID); in testSelectNetworkSuggestionForOneMatchSimBasedWithOobPseudonymInfoAvailable() 1074 when(mWifiCarrierInfoManager.isSimReady(TEST_SUB_ID)).thenReturn(true); in testSelectNetworkSuggestionForOneMatchSimBasedWithOobPseudonymInfoAvailable() [all …]
|
D | WifiConfigStoreTest.java | 79 private static final int TEST_SUB_ID = 2; field in WifiConfigStoreTest 491 openNetwork.subscriptionId = TEST_SUB_ID; in testReadWifiConfigStoreData() 527 openNetwork.subscriptionId = TEST_SUB_ID; in testWriteWifiConfigStoreData()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | PasspointTestUtils.java | 34 private static final int TEST_SUB_ID = 1; field in PasspointTestUtils 163 config.setSubscriptionId(TEST_SUB_ID); in createConfig()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 111 private static final int TEST_SUB_ID = 43; field in NetworkNotificationManagerTest 121 .setSubscriptionId(TEST_SUB_ID).build()); in CELL_CAPABILITIES.setNetworkSpecifier() 200 .createForSubscriptionId(TEST_SUB_ID); in setUp()
|