Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockSettingsHelperTest.java59 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityWithExternal() local
62 startedIntent.getComponent()); in testLaunchConfirmationActivityWithExternal()
63 assertFalse(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
65 assertTrue((startedIntent.getFlags() & Intent.FLAG_ACTIVITY_FORWARD_RESULT) != 0); in testLaunchConfirmationActivityWithExternal()
66 assertFalse(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
68 assertFalse(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
70 assertTrue(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
90 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityInternal() local
94 startedIntent.getComponent()); in testLaunchConfirmationActivityInternal()
95 assertTrue(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityInternal()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DPolicyComplianceUtilsTest.kt85 val startedIntent = shadowOf(parentActivity).peekNextStartedActivity() in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted() constant
86 … assertThat(startedIntent.action).isEqualTo(DevicePolicyManager.ACTION_ADMIN_POLICY_COMPLIANCE) in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
87 assertThat(startedIntent.getPackage()).isEqualTo(TEST_MDM_PACKAGE_NAME) in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
88 assertThat(startedIntent.flags).isEqualTo(NO_FLAGS) in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
103 val startedIntent = shadowOf(parentActivity).peekNextStartedActivity() in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted() constant
104 assertThat(startedIntent).isNull() in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted()
119 val startedIntent = shadowOf(parentActivity).peekNextStartedActivity() in startPolicyComplianceActivityIfResolved_activityExists_isStarted() constant
120 … assertThat(startedIntent.action).isEqualTo(DevicePolicyManager.ACTION_ADMIN_POLICY_COMPLIANCE) in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
121 assertThat(startedIntent.getPackage()).isEqualTo(TEST_MDM_PACKAGE_NAME) in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
122 assertThat(startedIntent.flags).isEqualTo(NO_FLAGS) in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
[all …]
DGetProvisioningModeUtilsTest.java116 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent() local
117 assertThat(startedIntent.getAction()) in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()
119 assertThat(startedIntent.getPackage()) in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java340 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen() local
341 ShadowIntent shadowIntent = shadowOf(startedIntent); in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen()
343 assertThat(startedIntent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen()
345 Bundle arguments = startedIntent.getBundleExtra( in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen()
622 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity() local
623 ShadowIntent shadowIntent = shadowOf(startedIntent); in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity()
625 assertThat(startedIntent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity()
627 Bundle arguments = startedIntent.getBundleExtra( in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity()
DUserSettingsTest.java743 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails() local
744 ShadowIntent shadowIntent = shadowOf(startedIntent); in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails()
746 assertThat(startedIntent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails()
748 Bundle arguments = startedIntent.getBundleExtra( in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails()