/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | DpcReceivedSuccessReceiverTest.java | 80 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testNoAccountMigration() local 81 verify(mContext).sendBroadcast(intentCaptor.capture()); in testNoAccountMigration() 84 assertEquals(ACTION_MANAGED_PROFILE_PROVISIONED, intentCaptor.getValue().getAction()); in testNoAccountMigration() 87 assertEquals(TEST_MDM_PACKAGE_NAME, intentCaptor.getValue().getPackage()); in testNoAccountMigration() 91 intentCaptor.getValue().getExtra(Intent.EXTRA_USER)); in testNoAccountMigration() 145 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in invokeOnReceiveAndVerifyIntent() local 146 verify(mContext).sendBroadcast(intentCaptor.capture()); in invokeOnReceiveAndVerifyIntent() 149 assertEquals(ACTION_MANAGED_PROFILE_PROVISIONED, intentCaptor.getValue().getAction()); in invokeOnReceiveAndVerifyIntent() 152 assertEquals(TEST_MDM_PACKAGE_NAME, intentCaptor.getValue().getPackage()); in invokeOnReceiveAndVerifyIntent() 156 intentCaptor.getValue().getExtra(Intent.EXTRA_USER)); in invokeOnReceiveAndVerifyIntent() [all …]
|
D | FinalizationControllerTest.java | 243 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testDeviceOwner() local 244 verify(mContext).sendBroadcast(intentCaptor.capture()); in testDeviceOwner() 249 assertEquals(ACTION_PROFILE_PROVISIONING_COMPLETE, intentCaptor.getValue().getAction()); in testDeviceOwner() 251 assertEquals(TEST_MDM_ADMIN, intentCaptor.getValue().getComponent()); in testDeviceOwner() 253 assertExtras(intentCaptor.getValue()); in testDeviceOwner() 257 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyDpcLaunchedForUser() local 258 verify(mContext).startActivityAsUser(intentCaptor.capture(), eq(userHandle)); in verifyDpcLaunchedForUser() 260 assertEquals(ACTION_PROVISIONING_SUCCESSFUL, intentCaptor.getValue().getAction()); in verifyDpcLaunchedForUser() 262 assertEquals(TEST_MDM_PACKAGE_NAME, intentCaptor.getValue().getPackage()); in verifyDpcLaunchedForUser() 264 assertExtras(intentCaptor.getValue()); in verifyDpcLaunchedForUser() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MobileNetworkSummaryControllerTest.java | 134 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummary_noSubscriptions_correctSummaryAndClickHandler() local 135 verify(mContext).startActivity(intentCaptor.capture()); in getSummary_noSubscriptions_correctSummaryAndClickHandler() 136 assertThat(intentCaptor.getValue().getAction()).isEqualTo( in getSummary_noSubscriptions_correctSummaryAndClickHandler() 159 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummary_oneSubscription_correctSummaryAndClickHandler() local 160 verify(mContext).startActivity(intentCaptor.capture()); in getSummary_oneSubscription_correctSummaryAndClickHandler() 161 Intent intent = intentCaptor.getValue(); in getSummary_oneSubscription_correctSummaryAndClickHandler() 222 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() local 223 verify(mContext).startActivity(intentCaptor.capture()); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() 224 assertThat(intentCaptor.getValue().getComponent().getClassName()).isEqualTo( in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() 243 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment() local [all …]
|
D | MobileNetworkListControllerTest.java | 144 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in displayPreference_twoSubscriptions_correctlySetup() local 147 verify(mContext, times(2)).startActivity(intentCaptor.capture()); in displayPreference_twoSubscriptions_correctlySetup() 148 final Intent intent1 = intentCaptor.getAllValues().get(0); in displayPreference_twoSubscriptions_correctlySetup() 149 final Intent intent2 = intentCaptor.getAllValues().get(1); in displayPreference_twoSubscriptions_correctlySetup()
|
D | SubscriptionsPreferenceControllerTest.java | 267 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in runPreferenceClickTest() local 268 doNothing().when(mContext).startActivity(intentCaptor.capture()); in runPreferenceClickTest() 270 final Intent intent = intentCaptor.getValue(); in runPreferenceClickTest()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/ |
D | MoreSpecialAccessPreferenceControllerTest.java | 72 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in constructor_shouldResolveActivityWithPermissionControllerPackageName() local 73 verify(mPackageManager).resolveActivity(intentCaptor.capture(), anyInt()); in constructor_shouldResolveActivityWithPermissionControllerPackageName() 74 final Intent intent = intentCaptor.getValue(); in constructor_shouldResolveActivityWithPermissionControllerPackageName() 172 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceTreeClick_canResolveActivity_shouldStartActivityWithIntent() local 174 verify(mContext).startActivity(intentCaptor.capture()); in handlePreferenceTreeClick_canResolveActivity_shouldStartActivityWithIntent() 175 final Intent intent = intentCaptor.getValue(); in handlePreferenceTreeClick_canResolveActivity_shouldStartActivityWithIntent()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | EncryptionControllerTest.java | 184 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyStartPreProvisioningActivity() local 185 verify(mContext).startActivity(intentCaptor.capture()); in verifyStartPreProvisioningActivity() 186 assertEquals(params, intentCaptor.getValue().getParcelableExtra( in verifyStartPreProvisioningActivity() 192 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyShowResumeNotification() local 193 verify(mNotificationHelper).showResumeNotification(intentCaptor.capture()); in verifyShowResumeNotification() 194 assertEquals(params, intentCaptor.getValue().getParcelableExtra( in verifyShowResumeNotification()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TelecomServiceImplTest.java | 520 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in registerPhoneAccountTestHelper() local 545 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testUnregisterPhoneAccount() local 654 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in addCallTestHelper() local 657 intentCaptor.capture()); in addCallTestHelper() 660 intentCaptor.capture()); in addCallTestHelper() 662 Intent capturedIntent = intentCaptor.getValue(); in addCallTestHelper() 734 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in placeCallTestHelper() local 735 verify(mUserCallIntentProcessor).processIntent(intentCaptor.capture(), anyString(), in placeCallTestHelper() 737 Intent capturedIntent = intentCaptor.getValue(); in placeCallTestHelper() 780 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetDefaultDialer() local [all …]
|
D | CallScreeningServiceFilterTest.java | 322 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyBindingIntent() local 326 .bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent() 330 Intent capturedIntent = intentCaptor.getValue(); in verifyBindingIntent()
|
D | NewOutgoingCallIntentBroadcasterTest.java | 487 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); 492 intentCaptor.capture(), 503 Intent capturedIntent = intentCaptor.getValue();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsForSubTest.java | 290 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment() local 295 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment() 297 final Intent intent = intentCaptor.getValue(); in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment() 304 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity() local 311 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity() 313 final Intent intent = intentCaptor.getValue(); in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppInfoPreferenceControllerBaseTest.java | 96 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceTreeClick_shouldStartDetailFragmentClass() local 98 verify(mFragment).startActivityForResult(intentCaptor.capture(), eq(SUB_INFO_FRAGMENT)); in handlePreferenceTreeClick_shouldStartDetailFragmentClass() 99 assertThat(intentCaptor.getValue().getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in handlePreferenceTreeClick_shouldStartDetailFragmentClass()
|
D | AppMemoryPreferenceControllerTest.java | 125 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceTreeClick_shouldStartProcessStatsDetail() local 127 verify(mActivity).startActivity(intentCaptor.capture()); in handlePreferenceTreeClick_shouldStartProcessStatsDetail() 128 assertThat(intentCaptor.getValue().getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in handlePreferenceTreeClick_shouldStartProcessStatsDetail()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | DeleteSimProfilePreferenceControllerTest.java | 123 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onPreferenceClick_startsIntent() local 124 verify(mFragment).startActivityForResult(intentCaptor.capture(), eq(REQUEST_CODE)); in onPreferenceClick_startsIntent() 125 final Intent intent = intentCaptor.getValue(); in onPreferenceClick_startsIntent()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 274 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in callKey_shortPress_withoutEventHandler_launchesDialer() local 282 intentCaptor.capture(), any(), eq(UserHandle.CURRENT_OR_SELF)); in callKey_shortPress_withoutEventHandler_launchesDialer() 283 assertThat(intentCaptor.getValue().getAction()).isEqualTo(Intent.ACTION_DIAL); in callKey_shortPress_withoutEventHandler_launchesDialer() 329 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in callKey_longPress_withoutEventHandler_redialsLastCall() local 338 intentCaptor.capture(), any(), eq(UserHandle.CURRENT_OR_SELF)); in callKey_longPress_withoutEventHandler_redialsLastCall() 340 Intent intent = intentCaptor.getValue(); in callKey_longPress_withoutEventHandler_redialsLastCall()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | UserProfileControllerTest.java | 94 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in tappingProfilePreferenceSendsToStorageProfileFragment() local 95 verify(mContext).startActivity(intentCaptor.capture()); in tappingProfilePreferenceSendsToStorageProfileFragment() 97 final Intent intent = intentCaptor.getValue(); in tappingProfilePreferenceSendsToStorageProfileFragment()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaOutputPreferenceControllerTest.java | 294 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in click_launch_outputSwitcherSlice() local 296 verify(mContext, never()).startActivity(intentCaptor.capture()); in click_launch_outputSwitcherSlice() 300 verify(mContext).startActivity(intentCaptor.capture()); in click_launch_outputSwitcherSlice() 301 assertThat(intentCaptor.getValue().getAction()) in click_launch_outputSwitcherSlice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceUpdaterTest.java | 177 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testDeviceProfilesListener_click_startBluetoothDeviceDetailPage() local 180 verify(mSettingsActivity).startActivity(intentCaptor.capture()); in testDeviceProfilesListener_click_startBluetoothDeviceDetailPage() 181 assertThat(intentCaptor.getValue().getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in testDeviceProfilesListener_click_startBluetoothDeviceDetailPage()
|
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivityTest.java | 493 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testDownload() local 494 verify(mActivity).startForegroundService(intentCaptor.capture()); in testDownload() 495 final Intent dlIntent = intentCaptor.getValue(); in testDownload()
|