Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DDpcReceivedSuccessReceiverTest.java80 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 …]
DFinalizationControllerTest.java243 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/
DMobileNetworkSummaryControllerTest.java134 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 …]
DMobileNetworkListControllerTest.java144 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()
DSubscriptionsPreferenceControllerTest.java267 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/
DMoreSpecialAccessPreferenceControllerTest.java72 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/
DEncryptionControllerTest.java184 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/
DTelecomServiceImplTest.java520 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 …]
DCallScreeningServiceFilterTest.java322 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()
DNewOutgoingCallIntentBroadcasterTest.java487 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/
DWifiCallingSettingsForSubTest.java290 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/
DAppInfoPreferenceControllerBaseTest.java96 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()
DAppMemoryPreferenceControllerTest.java125 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/
DDeleteSimProfilePreferenceControllerTest.java123 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/
DCarInputServiceTest.java274 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/
DUserProfileControllerTest.java94 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/
DMediaOutputPreferenceControllerTest.java294 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/
DBluetoothDeviceUpdaterTest.java177 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/
DCaptivePortalLoginActivityTest.java493 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()