Home
last modified time | relevance | path

Searched refs:intentCaptor (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/
DChooseLockSettingsHelperTest.java62 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testlaunchConfirmationActivityWithExternalAndChallenge() local
63 verify(mockActivity, times(1)).startActivity(intentCaptor.capture()); in testlaunchConfirmationActivityWithExternalAndChallenge()
64 Intent capturedIntent = getResultIntent(intentCaptor); in testlaunchConfirmationActivityWithExternalAndChallenge()
102 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testlaunchConfirmationActivityWithExternalAndChallenge() local
103 verify(mockActivity, times(1)).startActivityForResult(intentCaptor.capture(), in testlaunchConfirmationActivityWithExternalAndChallenge()
105 Intent capturedIntent = getResultIntent(intentCaptor); in testlaunchConfirmationActivityWithExternalAndChallenge()
152 private static Intent getResultIntent(ArgumentCaptor<Intent> intentCaptor) { in getResultIntent() argument
153 List<Intent> capturedIntents = intentCaptor.getAllValues(); in getResultIntent()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/uiflows/
DEncryptionControllerTest.java96 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetEncryptionReminder_duringSuw() local
97 verify(mIntentStore).save(intentCaptor.capture()); in testSetEncryptionReminder_duringSuw()
98 Intent intent = intentCaptor.getValue(); in testSetEncryptionReminder_duringSuw()
113 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetEncryptionReminder_afterSuw() local
114 verify(mIntentStore).save(intentCaptor.capture()); in testSetEncryptionReminder_afterSuw()
115 Intent intent = intentCaptor.getValue(); in testSetEncryptionReminder_afterSuw()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java473 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in registerPhoneAccountTestHelper() local
484 verify(mContext).sendBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL), in registerPhoneAccountTestHelper()
487 Intent capturedIntent = intentCaptor.getValue(); in registerPhoneAccountTestHelper()
509 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testUnregisterPhoneAccount() local
515 verify(mContext).sendBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL), in testUnregisterPhoneAccount()
517 Intent capturedIntent = intentCaptor.getValue(); in testUnregisterPhoneAccount()
621 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in addCallTestHelper() local
624 intentCaptor.capture()); in addCallTestHelper()
627 intentCaptor.capture()); in addCallTestHelper()
629 Intent capturedIntent = intentCaptor.getValue(); in addCallTestHelper()
[all …]
DCallScreeningServiceFilterTest.java199 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyBindingIntent() local
202 verify(mContext).bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent()
206 Intent capturedIntent = intentCaptor.getValue(); in verifyBindingIntent()
DNewOutgoingCallIntentBroadcasterTest.java367 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyBroadcastSent() local
372 intentCaptor.capture(), in verifyBroadcastSent()
382 Intent capturedIntent = intentCaptor.getValue(); in verifyBroadcastSent()