Home
last modified time | relevance | path

Searched refs:shadowActivity (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DSetupFingerprintEnrollIntroductionTest.java96 ShadowActivity shadowActivity = Shadows.shadowOf(mController.get()); in testKeyguardNotSecure_shouldFinishWithSetupSkipDialogResultSkip() local
98 assertThat(shadowActivity.getResultCode()).named("Result code") in testKeyguardNotSecure_shouldFinishWithSetupSkipDialogResultSkip()
115 ShadowActivity shadowActivity = Shadows.shadowOf(mController.get()); in testKeyguardSecure_shouldFinishWithFingerprintResultSkip() local
117 assertThat(shadowActivity.getResultCode()).named("Result code") in testKeyguardSecure_shouldFinishWithFingerprintResultSkip()
130 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded() local
131 assertThat(shadowActivity.getResultIntent()).isNotNull(); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded()
132 assertThat(shadowActivity.getResultIntent().hasExtra( in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded()
144 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() local
145 assertThat(shadowActivity.getResultIntent()).isNull(); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch()
159 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testCancelClicked_shouldSetIntentDataIfLockScreenAdded() local
[all …]
DFingerprintEnrollFindSensorTest.java92 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in enrollFingerprint_shouldProceed() local
94 shadowActivity.getNextStartedActivityForResult(); in enrollFingerprint_shouldProceed()
107 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in enrollFingerprintTwice_shouldStartOneEnrolling() local
109 shadowActivity.getNextStartedActivityForResult(); in enrollFingerprintTwice_shouldStartOneEnrolling()
115 assertThat(shadowActivity.getNextStartedActivityForResult()).named("Next activity 2") in enrollFingerprintTwice_shouldStartOneEnrolling()
129 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in layoutWithoutAnimation_shouldNotCrash() local
131 shadowActivity.getNextStartedActivityForResult(); in layoutWithoutAnimation_shouldNotCrash()
142 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in clickSkip_shouldReturnResultSkip() local
143 assertThat(shadowActivity.getResultCode()).named("result code") in clickSkip_shouldReturnResultSkip()
DFingerprintSuggestionActivityTest.java76 ShadowActivity shadowActivity = Shadows.shadowOf(mController.get()); in testKeyguardSecure_shouldFinishWithFingerprintResultSkip() local
78 assertThat(shadowActivity.getResultCode()).named("Result code") in testKeyguardSecure_shouldFinishWithFingerprintResultSkip()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetNewPasswordActivityTest.java99 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testChooseLockGeneric() local
100 Intent intent = getLaunchChooseLockIntent(shadowActivity); in testChooseLockGeneric()
114 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testSetupChooseLockGeneric() local
115 Intent intent = getLaunchChooseLockIntent(shadowActivity); in testSetupChooseLockGeneric()
135 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraWithoutPermission() local
136 assertThat(shadowActivity.getNextStartedActivityForResult()).isNull(); in testLaunchChooseLock_setNewPasswordExtraWithoutPermission()
159 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraWithPermission() local
160 Intent actualIntent = getLaunchChooseLockIntent(shadowActivity); in testLaunchChooseLock_setNewPasswordExtraWithPermission()
189 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraInvalidValue() local
190 Intent actualIntent = getLaunchChooseLockIntent(shadowActivity); in testLaunchChooseLock_setNewPasswordExtraInvalidValue()
[all …]
DChooseLockSettingsHelperTest.java52 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchConfirmationActivityWithExternalAndChallenge() local
53 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityWithExternalAndChallenge()
86 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchConfirmationActivityInternalAndChallenge() local
87 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityInternalAndChallenge()
115 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchConfirmationActivity_internal_shouldPropagateTheme() local
116 IntentForResult startedActivity = shadowActivity.getNextStartedActivityForResult(); in testLaunchConfirmationActivity_internal_shouldPropagateTheme()
DSetupChooseLockGenericTest.java64 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in setupChooseLockGenericPasswordComplexityExtraWithoutPermission() local
65 assertThat(shadowActivity.isFinishing()).isTrue(); in setupChooseLockGenericPasswordComplexityExtraWithoutPermission()
78 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in setupChooseLockGenericPasswordComplexityExtraWithPermission() local
79 assertThat(shadowActivity.isFinishing()).isFalse(); in setupChooseLockGenericPasswordComplexityExtraWithPermission()
DSetupChooseLockPasswordTest.java139 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in createActivity_clickDifferentOption_extrasShouldBePropagated() local
140 final Intent nextStartedActivity = shadowActivity.getNextStartedActivity(); in createActivity_clickDifferentOption_extrasShouldBePropagated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DLocalePickerWithRegionActivityTest.java37 final ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in onLocaleSelected_resultShouldBeOK() local
40 assertEquals(Activity.RESULT_OK, shadowActivity.getResultCode()); in onLocaleSelected_resultShouldBeOK()
45 final ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in onLocaleSelected_localeInfoShouldBeSentBack() local
48 assertNotNull(shadowActivity.getResultIntent().getSerializableExtra( in onLocaleSelected_localeInfoShouldBeSentBack()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DSetupPassthroughActivityTest.java171 ShadowActivity shadowActivity = shadowOf(activity); in create_trustedCallingPackage() local
172 shadowActivity.setCallingActivity( in create_trustedCallingPackage()
177 shadowActivity.getNextStartedActivityForResult(); in create_trustedCallingPackage()
195 ShadowActivity shadowActivity = shadowOf(activity); in create_nonTrustedCallingPackage() local
196 shadowActivity.setCallingActivity( in create_nonTrustedCallingPackage()
201 shadowActivity.getNextStartedActivityForResult(); in create_nonTrustedCallingPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardControllerTest.java121 final ShadowActivity shadowActivity = Shadows.shadowOf(fragment.getActivity()); in onDismissed_feedbackDisabled_shouldNotShowFeedbackDialog() local
126 assertThat(shadowActivity.getNextStartedActivity()).isNull(); in onDismissed_feedbackDisabled_shouldNotShowFeedbackDialog()
134 final ShadowActivity shadowActivity = Shadows.shadowOf(fragment.getActivity()); in onDismissed_feedbackEnabled_shouldShowFeedbackDialog() local
139 assertThat(shadowActivity.getNextStartedActivity().getComponent().getClassName()) in onDismissed_feedbackEnabled_shouldShowFeedbackDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DWorkModeConditionControllerTest.java60 final ShadowActivity shadowActivity = Shadow.extract(mActivity); in onPrimaryClick_shouldLaunchAccountsSetting() local
61 assertThat(shadowActivity.getNextStartedActivity().getComponent()).isEqualTo(componentName); in onPrimaryClick_shouldLaunchAccountsSetting()
DBackgroundDataConditionControllerTest.java66 final ShadowActivity shadowActivity = Shadow.extract(mActivity); in onPrimaryClick_shouldReturn2SummaryActivity() local
67 assertThat(shadowActivity.getNextStartedActivity().getComponent()).isEqualTo(componentName); in onPrimaryClick_shouldReturn2SummaryActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java431 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testSetAppIntent_toMdpApp_intentCorrect() local
432 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testSetAppIntent_toMdpApp_intentCorrect()
507 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testSetWifiMode_withUsageInfo_dataUsageShown() local
508 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testSetWifiMode_withUsageInfo_dataUsageShown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DDefaultAppShortcutPreferenceControllerBaseTest.java192 final ShadowActivity shadowActivity = shadowOf(mActivity); in handlePreferenceTreeClick_shouldStartManageDefaultAppIntent() local
194 final Intent intent = shadowActivity.getNextStartedActivity(); in handlePreferenceTreeClick_shouldStartManageDefaultAppIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java466 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in bindPreference_withIntentActionMetadata_shouldSetLaunchAction() local
468 final Intent launchIntent = shadowActivity.getNextStartedActivityForResult().intent; in bindPreference_withIntentActionMetadata_shouldSetLaunchAction()