/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | FinalizationControllerTest.java | 219 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testDeviceOwner() local 220 verify(mContext).sendBroadcast(intentCaptor.capture()); in testDeviceOwner() 223 assertEquals(ACTION_PROFILE_PROVISIONING_COMPLETE, intentCaptor.getValue().getAction()); in testDeviceOwner() 225 assertEquals(TEST_MDM_ADMIN, intentCaptor.getValue().getComponent()); in testDeviceOwner() 227 assertExtras(intentCaptor.getValue()); in testDeviceOwner() 232 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyOrderedBroadcast() local 234 intentCaptor.capture(), in verifyOrderedBroadcast() 243 assertEquals(ACTION_PROFILE_PROVISIONING_COMPLETE, intentCaptor.getValue().getAction()); in verifyOrderedBroadcast() 245 assertEquals(TEST_MDM_ADMIN, intentCaptor.getValue().getComponent()); in verifyOrderedBroadcast() 247 assertExtras(intentCaptor.getValue()); in verifyOrderedBroadcast() [all …]
|
D | DpcReceivedSuccessReceiverTest.java | 74 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testNoAccountMigration() local 75 verify(mContext).sendBroadcast(intentCaptor.capture()); in testNoAccountMigration() 78 assertEquals(ACTION_MANAGED_PROFILE_PROVISIONED, intentCaptor.getValue().getAction()); in testNoAccountMigration() 81 assertEquals(TEST_MDM_PACKAGE_NAME, intentCaptor.getValue().getPackage()); in testNoAccountMigration() 85 intentCaptor.getValue().getExtra(Intent.EXTRA_USER)); in testNoAccountMigration() 131 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in invokeOnReceiveAndVerifyIntent() local 132 verify(mContext).sendBroadcast(intentCaptor.capture()); in invokeOnReceiveAndVerifyIntent() 135 assertEquals(ACTION_MANAGED_PROFILE_PROVISIONED, intentCaptor.getValue().getAction()); in invokeOnReceiveAndVerifyIntent() 138 assertEquals(TEST_MDM_PACKAGE_NAME, intentCaptor.getValue().getPackage()); in invokeOnReceiveAndVerifyIntent() 142 intentCaptor.getValue().getExtra(Intent.EXTRA_USER)); in invokeOnReceiveAndVerifyIntent() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | ChooseLockSettingsHelperTest.java | 62 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/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | EncryptionControllerTest.java | 183 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyStartPreProvisioningActivity() local 184 verify(mContext).startActivity(intentCaptor.capture()); in verifyStartPreProvisioningActivity() 185 assertEquals(params, intentCaptor.getValue().getParcelableExtra( in verifyStartPreProvisioningActivity() 191 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyShowResumeNotification() local 192 verify(mResumeNotificationHelper).showResumeNotification(intentCaptor.capture()); in verifyShowResumeNotification() 193 assertEquals(params, intentCaptor.getValue().getParcelableExtra( in verifyShowResumeNotification()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TelecomServiceImplTest.java | 458 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in registerPhoneAccountTestHelper() local 482 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testUnregisterPhoneAccount() local 586 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in addCallTestHelper() local 589 intentCaptor.capture()); in addCallTestHelper() 592 intentCaptor.capture()); in addCallTestHelper() 594 Intent capturedIntent = intentCaptor.getValue(); in addCallTestHelper() 657 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in placeCallTestHelper() local 658 verify(mUserCallIntentProcessor).processIntent(intentCaptor.capture(), anyString(), in placeCallTestHelper() 660 Intent capturedIntent = intentCaptor.getValue(); in placeCallTestHelper() 695 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetDefaultDialer() local [all …]
|
D | CallScreeningServiceFilterTest.java | 200 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyBindingIntent() local 203 verify(mContext).bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent() 207 Intent capturedIntent = intentCaptor.getValue(); in verifyBindingIntent()
|
D | NewOutgoingCallIntentBroadcasterTest.java | 391 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); 396 intentCaptor.capture(), 406 Intent capturedIntent = intentCaptor.getValue();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | UserProfileControllerTest.java | 98 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in tappingProfilePreferenceSendsToStorageProfileFragment() local 99 verify(mContext).startActivity(intentCaptor.capture()); in tappingProfilePreferenceSendsToStorageProfileFragment() 101 Intent intent = intentCaptor.getValue(); in tappingProfilePreferenceSendsToStorageProfileFragment()
|