Searched refs:startedIntent (Results 1 – 6 of 6) sorted by relevance
53 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityWithExternal() local56 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() local88 startedIntent.getComponent()); in testLaunchConfirmationActivityInternal()89 assertTrue(startedIntent.getBooleanExtra( in testLaunchConfirmationActivityInternal()[all …]
106 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted() local107 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() local126 assertThat(startedIntent).isNull(); in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted()142 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startPolicyComplianceActivityIfResolved_activityExists_isStarted() local143 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 …]
113 Intent startedIntent = shadowOf(parentActivity).peekNextStartedActivity(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent() local114 assertThat(startedIntent.getAction()) in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()116 assertThat(startedIntent.getPackage()) in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()
321 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen() local322 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() local558 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()
628 Intent startedIntent = shadowOf(mActivity).getNextStartedActivity(); in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails() local629 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()
446 final Intent startedIntent = intentCaptor.getValue(); in testSetAppIntent_toMdpApp_intentCorrect() local448 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() local536 final Bundle actual = startedIntent in testSetWifiMode_withUsageInfo_dataUsageShown()542 assertThat(startedIntent.getIntExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT_TITLE_RESID, 0)) in testSetWifiMode_withUsageInfo_dataUsageShown()