/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | SoftApManagerTest.java | 290 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startSoftApDefaultConfigFailedToLoad() local 291 verify(mContext, times(2)).sendStickyBroadcastAsUser(intentCaptor.capture(), in startSoftApDefaultConfigFailedToLoad() 294 List<Intent> capturedIntents = intentCaptor.getAllValues(); in startSoftApDefaultConfigFailedToLoad() 338 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() local 339 verify(mContext).sendStickyBroadcastAsUser(intentCaptor.capture(), in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 342 checkApStateChangedBroadcast(intentCaptor.getValue(), WIFI_AP_STATE_FAILED, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 385 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() local 386 verify(mContext).sendStickyBroadcastAsUser(intentCaptor.capture(), in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 389 checkApStateChangedBroadcast(intentCaptor.getValue(), WIFI_AP_STATE_FAILED, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 430 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode() local [all …]
|
D | ClientModeManagerTest.java | 283 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startClientInConnectModeAndVerifyEnabled() local 284 verify(mContext, atLeastOnce()).sendStickyBroadcastAsUser(intentCaptor.capture(), in startClientInConnectModeAndVerifyEnabled() 287 List<Intent> intents = intentCaptor.getAllValues(); in startClientInConnectModeAndVerifyEnabled() 311 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyConnectModeNotificationsForCleanShutdown() local 313 .sendStickyBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL)); in verifyConnectModeNotificationsForCleanShutdown() 315 List<Intent> intents = intentCaptor.getAllValues(); in verifyConnectModeNotificationsForCleanShutdown() 324 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyConnectModeNotificationsForFailure() local 326 .sendStickyBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL)); in verifyConnectModeNotificationsForFailure() 328 List<Intent> intents = intentCaptor.getAllValues(); in verifyConnectModeNotificationsForFailure() 371 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in switchFromScanOnlyModeToConnectMode() local [all …]
|
D | ScanRequestProxyTest.java | 903 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in validateScanResultsAvailableBroadcastSent() local 906 intentCaptor.capture(), userHandleCaptor.capture()); in validateScanResultsAvailableBroadcastSent() 910 Intent intent = intentCaptor.getValue(); in validateScanResultsAvailableBroadcastSent() 918 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in validateScanResultsFailureBroadcastSent() local 921 intentCaptor.capture(), userHandleCaptor.capture()); in validateScanResultsFailureBroadcastSent() 925 Intent intent = intentCaptor.getValue(); in validateScanResultsFailureBroadcastSent() 935 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in validateScanAvailableBroadcastSent() local 938 intentCaptor.capture(), userHandleCaptor.capture()); in validateScanAvailableBroadcastSent() 942 Intent intent = intentCaptor.getValue(); in validateScanAvailableBroadcastSent()
|
D | WifiCarrierInfoManagerTest.java | 1551 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSendImsiProtectionExemptionNotificationWithUserAllowed() local 1552 verify(mContext).sendBroadcast(intentCaptor.capture()); in testSendImsiProtectionExemptionNotificationWithUserAllowed() 1553 assertEquals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS, intentCaptor.getValue().getAction()); in testSendImsiProtectionExemptionNotificationWithUserAllowed() 1661 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSendImsiProtectionExemptionConfirmationDialogWithUserDisallowed() local 1662 verify(mContext).sendBroadcast(intentCaptor.capture()); in testSendImsiProtectionExemptionConfirmationDialogWithUserDisallowed() 1663 assertEquals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS, intentCaptor.getValue().getAction()); in testSendImsiProtectionExemptionConfirmationDialogWithUserDisallowed() 1703 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSendImsiProtectionExemptionConfirmationDialogWithUserDismissal() local 1704 verify(mContext).sendBroadcast(intentCaptor.capture()); in testSendImsiProtectionExemptionConfirmationDialogWithUserDismissal() 1705 assertEquals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS, intentCaptor.getValue().getAction()); in testSendImsiProtectionExemptionConfirmationDialogWithUserDismissal()
|
D | WifiNetworkSuggestionsManagerTest.java | 2894 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in validatePostConnectionBroadcastSent() local 2897 intentCaptor.capture(), userHandleCaptor.capture()); in validatePostConnectionBroadcastSent() 2901 Intent intent = intentCaptor.getValue(); in validatePostConnectionBroadcastSent()
|
D | WifiConfigManagerTest.java | 4942 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyNetworkInBroadcastAndReturnReason() local 4944 intentCaptor.capture(), in verifyNetworkInBroadcastAndReturnReason() 4948 Intent intent = intentCaptor.getValue(); in verifyNetworkInBroadcastAndReturnReason()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | NetworkEventTest.java | 134 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in fillHandlerWithFullBatchOfEvents() local 135 verify(mSpiedDpmMockContext).sendBroadcastAsUser(intentCaptor.capture(), in fillHandlerWithFullBatchOfEvents() 137 assertEquals(intentCaptor.getValue().getAction(), in fillHandlerWithFullBatchOfEvents() 139 long token = intentCaptor.getValue().getExtras().getLong( in fillHandlerWithFullBatchOfEvents()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 296 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in sendShowAdminSupportDetailsIntent_extraRestrictionProvided() local 297 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in sendShowAdminSupportDetailsIntent_extraRestrictionProvided() 298 assertThat(intentCaptor.getValue().getExtra(EXTRA_RESTRICTION)).isEqualTo("Dummy"); in sendShowAdminSupportDetailsIntent_extraRestrictionProvided() 305 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in sendShowAdminSupportDetailsIntent_noExtraRestriction() local 306 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in sendShowAdminSupportDetailsIntent_noExtraRestriction() 307 assertThat(intentCaptor.getValue().getExtra(EXTRA_RESTRICTION)).isNull(); in sendShowAdminSupportDetailsIntent_noExtraRestriction()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneConfigurationManagerTest.java | 178 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSwitchMultiSimConfig_dsdsCapable_noRebootRequired() local 179 verify(mContext).sendBroadcast(intentCaptor.capture()); in testSwitchMultiSimConfig_dsdsCapable_noRebootRequired() 180 Intent intent = intentCaptor.getValue(); in testSwitchMultiSimConfig_dsdsCapable_noRebootRequired()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/ |
D | AppIntegrityManagerServiceImplTest.java | 267 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in updateRuleSet_correctMethodCall() local 268 verify(mockReceiver).sendIntent(any(), anyInt(), intentCaptor.capture(), any(), any()); in updateRuleSet_correctMethodCall() 269 assertEquals(STATUS_SUCCESS, intentCaptor.getValue().getIntExtra(EXTRA_STATUS, -1)); in updateRuleSet_correctMethodCall() 288 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in updateRuleSet_fail() local 289 verify(mockReceiver).sendIntent(any(), anyInt(), intentCaptor.capture(), any(), any()); in updateRuleSet_fail() 290 assertEquals(STATUS_FAILURE, intentCaptor.getValue().getIntExtra(EXTRA_STATUS, -1)); in updateRuleSet_fail()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | IntentForwarderActivityTest.java | 160 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in forwardToManagedProfile_canForward_sendIntent() local 161 verify(mIPm).canForwardTo(intentCaptor.capture(), eq(TYPE_PLAIN_TEXT), anyInt(), anyInt()); in forwardToManagedProfile_canForward_sendIntent() 162 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_sendIntent() 164 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_sendIntent() 270 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in forwardToManagedProfile_canForward_selectorIntent() local 272 intentCaptor.capture(), nullable(String.class), anyInt(), anyInt()); in forwardToManagedProfile_canForward_selectorIntent() 273 assertEquals(Intent.ACTION_VIEW, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_selectorIntent()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | TileUtilsTest.java | 167 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getCategories_withPackageName() local 178 intentCaptor.capture(), anyInt(), anyInt()); in getCategories_withPackageName() 180 intentCaptor.capture(), anyInt(), anyInt()); in getCategories_withPackageName() 182 assertThat(intentCaptor.getAllValues().get(0).getPackage()) in getCategories_withPackageName()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsServiceControllerTest.java | 121 ArgumentCaptor<Intent> intentCaptor = in testBindService() local 128 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService() 129 Intent testIntent = intentCaptor.getValue(); in testBindService()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 685 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in checkSendThisDeviceChangedBroadcast() local 690 intentCaptor.capture(), permissionCaptor.capture()); in checkSendThisDeviceChangedBroadcast() 695 Intent intent = intentCaptor.getValue(); in checkSendThisDeviceChangedBroadcast() 725 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in checkSendP2pPersistentGroupsChangedBroadcast() local 727 intentCaptor.capture(), eq(UserHandle.ALL)); in checkSendP2pPersistentGroupsChangedBroadcast() 728 Intent intent = intentCaptor.getValue(); in checkSendP2pPersistentGroupsChangedBroadcast()
|