/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeManagerTest.java | 87 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startClientModeAndVerifyEnabled() local 101 verify(mContext, atLeastOnce()).sendStickyBroadcastAsUser(intentCaptor.capture(), in startClientModeAndVerifyEnabled() 104 List<Intent> intents = intentCaptor.getAllValues(); in startClientModeAndVerifyEnabled() 142 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyNotificationsForCleanShutdown() local 144 .sendStickyBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL)); in verifyNotificationsForCleanShutdown() 146 List<Intent> intents = intentCaptor.getAllValues(); in verifyNotificationsForCleanShutdown() 153 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyNotificationsForFailure() local 155 .sendStickyBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL)); in verifyNotificationsForFailure() 157 List<Intent> intents = intentCaptor.getAllValues(); in verifyNotificationsForFailure() 181 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in detectAndReportErrorWhenSetupForClientWifiNativeFailure() local [all …]
|
D | SoftApManagerTest.java | 214 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startSoftApDefaultConfigFailedToLoad() local 215 verify(mContext, times(2)).sendStickyBroadcastAsUser(intentCaptor.capture(), in startSoftApDefaultConfigFailedToLoad() 218 List<Intent> capturedIntents = intentCaptor.getAllValues(); in startSoftApDefaultConfigFailedToLoad() 256 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() local 257 verify(mContext).sendStickyBroadcastAsUser(intentCaptor.capture(), in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 260 checkApStateChangedBroadcast(intentCaptor.getValue(), WIFI_AP_STATE_FAILED, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 297 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() local 298 verify(mContext).sendStickyBroadcastAsUser(intentCaptor.capture(), in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 301 checkApStateChangedBroadcast(intentCaptor.getValue(), WIFI_AP_STATE_FAILED, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 337 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startSoftApFailGeneralErrorForConfigChannel() local [all …]
|
D | ScanOnlyModeManagerTest.java | 105 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startScanOnlyModeAndVerifyEnabled() local 106 verify(mContext, times(2)).sendStickyBroadcastAsUser(intentCaptor.capture(), in startScanOnlyModeAndVerifyEnabled() 108 List<Intent> intents = intentCaptor.getAllValues(); in startScanOnlyModeAndVerifyEnabled()
|
D | ScanRequestProxyTest.java | 737 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in validateScanResultsAvailableBroadcastSent() local 740 intentCaptor.capture(), userHandleCaptor.capture()); in validateScanResultsAvailableBroadcastSent() 744 Intent intent = intentCaptor.getValue(); in validateScanResultsAvailableBroadcastSent() 752 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in validateScanResultsFailureBroadcastSent() local 755 intentCaptor.capture(), userHandleCaptor.capture()); in validateScanResultsFailureBroadcastSent() 759 Intent intent = intentCaptor.getValue(); in validateScanResultsFailureBroadcastSent()
|
D | WifiConfigManagerTest.java | 3845 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyNetworkInBroadcastAndReturnReason() local 3848 .sendBroadcastAsUser(intentCaptor.capture(), userHandleCaptor.capture()); in verifyNetworkInBroadcastAndReturnReason() 3851 Intent intent = intentCaptor.getValue(); in verifyNetworkInBroadcastAndReturnReason()
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsServiceTest.java | 138 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testImsServiceUpSentCompat() local 139 verify(mMockContext).sendBroadcast(intentCaptor.capture()); in testImsServiceUpSentCompat() 142 assertNotNull(intentCaptor.getValue()); in testImsServiceUpSentCompat() 143 verifyServiceUpSent(intentCaptor.getValue()); in testImsServiceUpSentCompat() 160 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testImsServiceDownSentCompatInitializing() local 161 verify(mMockContext).sendBroadcast(intentCaptor.capture()); in testImsServiceDownSentCompatInitializing() 164 assertNotNull(intentCaptor.getValue()); in testImsServiceDownSentCompatInitializing() 165 verifyServiceDownSent(intentCaptor.getValue()); in testImsServiceDownSentCompatInitializing()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | IntentForwarderActivityTest.java | 117 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in forwardToManagedProfile_canForward_sendIntent() local 118 verify(mIPm).canForwardTo(intentCaptor.capture(), eq(TYPE_PLAIN_TEXT), anyInt(), anyInt()); in forwardToManagedProfile_canForward_sendIntent() 119 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_sendIntent() 121 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_sendIntent() 197 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in forwardToManagedProfile_canForward_chooserIntent() local 198 verify(mIPm).canForwardTo(intentCaptor.capture(), eq(TYPE_PLAIN_TEXT), anyInt(), anyInt()); in forwardToManagedProfile_canForward_chooserIntent() 199 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_chooserIntent() 235 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in forwardToManagedProfile_canForward_selectorIntent() local 237 intentCaptor.capture(), nullable(String.class), anyInt(), anyInt()); in forwardToManagedProfile_canForward_selectorIntent() 238 assertEquals(Intent.ACTION_VIEW, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_selectorIntent()
|
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsServiceControllerTest.java | 115 ArgumentCaptor<Intent> intentCaptor = in testBindService() local 122 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService() 123 Intent testIntent = intentCaptor.getValue(); in testBindService()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | TileUtilsTest.java | 220 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getCategories_withPackageName() local 233 intentCaptor.capture(), anyInt(), anyInt()); in getCategories_withPackageName() 235 assertThat(intentCaptor.getAllValues().get(0).getPackage()) in getCategories_withPackageName()
|