Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
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 …]
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 …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java133 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummary_noSubscriptions_correctSummaryAndClickHandler() local
134 verify(mContext).startActivity(intentCaptor.capture()); in getSummary_noSubscriptions_correctSummaryAndClickHandler()
135 assertThat(intentCaptor.getValue().getAction()).isEqualTo( in getSummary_noSubscriptions_correctSummaryAndClickHandler()
158 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummary_oneSubscription_correctSummaryAndClickHandler() local
159 verify(mContext).startActivity(intentCaptor.capture()); in getSummary_oneSubscription_correctSummaryAndClickHandler()
160 Intent intent = intentCaptor.getValue(); in getSummary_oneSubscription_correctSummaryAndClickHandler()
221 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() local
222 verify(mContext).startActivity(intentCaptor.capture()); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
223 assertThat(intentCaptor.getValue().getComponent().getClassName()).isEqualTo( in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
242 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment() local
[all …]
DMobileNetworkListControllerTest.java139 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in displayPreference_twoSubscriptions_correctlySetup() local
142 verify(mContext, times(2)).startActivity(intentCaptor.capture()); in displayPreference_twoSubscriptions_correctlySetup()
143 final Intent intent1 = intentCaptor.getAllValues().get(0); in displayPreference_twoSubscriptions_correctlySetup()
144 final Intent intent2 = intentCaptor.getAllValues().get(1); in displayPreference_twoSubscriptions_correctlySetup()
DSubscriptionsPreferenceControllerTest.java266 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in runPreferenceClickTest() local
267 verify(mContext).startActivity(intentCaptor.capture()); in runPreferenceClickTest()
268 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.java511 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in registerPhoneAccountTestHelper() local
536 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testUnregisterPhoneAccount() local
645 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in addCallTestHelper() local
648 intentCaptor.capture()); in addCallTestHelper()
651 intentCaptor.capture()); in addCallTestHelper()
653 Intent capturedIntent = intentCaptor.getValue(); in addCallTestHelper()
725 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in placeCallTestHelper() local
726 verify(mUserCallIntentProcessor).processIntent(intentCaptor.capture(), anyString(), in placeCallTestHelper()
728 Intent capturedIntent = intentCaptor.getValue(); in placeCallTestHelper()
771 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetDefaultDialer() local
[all …]
DCallScreeningServiceFilterTest.java348 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyBindingIntent() local
351 verify(mContext).bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent()
355 Intent capturedIntent = intentCaptor.getValue(); in verifyBindingIntent()
DNewOutgoingCallIntentBroadcasterTest.java439 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class);
444 intentCaptor.capture(),
455 Intent capturedIntent = intentCaptor.getValue();
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsForSubTest.java285 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment() local
290 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment()
292 Intent intent = intentCaptor.getValue(); in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment()
299 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity() local
306 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity()
308 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()