Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockSettingsHelperTest.java53 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityWithExternal() local
56 startedIntent.getComponent()); in testLaunchConfirmationActivityWithExternal()
57 assertFalse(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
59 assertTrue((startedIntent.getFlags() & Intent.FLAG_ACTIVITY_FORWARD_RESULT) != 0); in testLaunchConfirmationActivityWithExternal()
60 assertFalse(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
62 assertFalse(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
64 assertTrue(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityWithExternal()
84 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityInternal() local
88 startedIntent.getComponent()); in testLaunchConfirmationActivityInternal()
89 assertTrue(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityInternal()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DPolicyComplianceUtilsTest.java106 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted() local
107 assertThat(startedIntent.getAction()).isEqualTo(ACTION_ADMIN_POLICY_COMPLIANCE); in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
108 assertThat(startedIntent.getPackage()).isEqualTo(TEST_MDM_PACKAGE_NAME); in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
109 assertThat(startedIntent.getFlags()).isEqualTo(NO_FLAGS); in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
125 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted() local
126 assertThat(startedIntent).isNull(); in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted()
142 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startPolicyComplianceActivityIfResolved_activityExists_isStarted() local
143 assertThat(startedIntent.getAction()).isEqualTo(ACTION_ADMIN_POLICY_COMPLIANCE); in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
144 assertThat(startedIntent.getPackage()).isEqualTo(TEST_MDM_PACKAGE_NAME); in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
145 assertThat(startedIntent.getFlags()).isEqualTo(NO_FLAGS); in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
[all …]
DGetProvisioningModeUtilsTest.java113 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent() local
114 assertThat(startedIntent.getAction()) in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()
116 assertThat(startedIntent.getPackage()) in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java321 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen() local
322 ShadowIntent shadowIntent = shadowOf(startedIntent); in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen()
324 assertThat(startedIntent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen()
326 Bundle arguments = startedIntent.getBundleExtra( in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen()
557 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity() local
558 ShadowIntent shadowIntent = shadowOf(startedIntent); in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity()
560 assertThat(startedIntent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity()
562 Bundle arguments = startedIntent.getBundleExtra( in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity()
DUserSettingsTest.java628 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails() local
629 ShadowIntent shadowIntent = shadowOf(startedIntent); in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails()
631 assertThat(startedIntent.getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails()
633 Bundle arguments = startedIntent.getBundleExtra( in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java446 final Intent startedIntent = intentCaptor.getValue(); in testSetAppIntent_toMdpApp_intentCorrect() local
448 assertThat(startedIntent.getAction()) in testSetAppIntent_toMdpApp_intentCorrect()
450 assertThat(startedIntent.getPackage()).isEqualTo("test-owner.example.com"); in testSetAppIntent_toMdpApp_intentCorrect()
451 assertThat(startedIntent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, -1)) in testSetAppIntent_toMdpApp_intentCorrect()
530 final Intent startedIntent = intentCaptor.getValue(); in testSetWifiMode_withUsageInfo_dataUsageShown() local
536 final Bundle actual = startedIntent in testSetWifiMode_withUsageInfo_dataUsageShown()
542 assertThat(startedIntent.getIntExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT_TITLE_RESID, 0)) in testSetWifiMode_withUsageInfo_dataUsageShown()