/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/ |
H A D | SetupFingerprintEnrollIntroductionTest.java | 157 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded() local 158 assertThat(shadowActivity.getResultIntent()).isNotNull(); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded() 159 assertThat(shadowActivity.getResultIntent().hasExtra( in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded() 171 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() local 172 assertThat(shadowActivity.getResultIntent()).isNull(); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() 186 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testCancelClicked_shouldSetIntentDataIfLockScreenAdded() local 187 assertThat(shadowActivity.getResultIntent()).isNotNull(); in testCancelClicked_shouldSetIntentDataIfLockScreenAdded() 188 assertThat(shadowActivity.getResultIntent().hasExtra( in testCancelClicked_shouldSetIntentDataIfLockScreenAdded() 212 assertThat(shadowActivity.getResultIntent()).isNotNull(); in testOnResultFromFindSensor_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() 213 assertThat(shadowActivity.getResultIntent().hasExtra( in testOnResultFromFindSensor_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() [all …]
|
H A D | FingerprintEnrollFindSensorTest.java | 93 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in enrollFingerprint_shouldProceed() local 95 shadowActivity.getNextStartedActivityForResult(); in enrollFingerprint_shouldProceed() 108 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in enrollFingerprintTwice_shouldStartOneEnrolling() local 110 shadowActivity.getNextStartedActivityForResult(); in enrollFingerprintTwice_shouldStartOneEnrolling() 116 assertWithMessage("Next activity 2").that(shadowActivity.getNextStartedActivityForResult()) in enrollFingerprintTwice_shouldStartOneEnrolling() 130 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in layoutWithoutAnimation_shouldNotCrash() local 132 shadowActivity.getNextStartedActivityForResult(); in layoutWithoutAnimation_shouldNotCrash() 143 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in clickSkip_shouldReturnResultSkip() local 144 assertWithMessage("result code").that(shadowActivity.getResultCode()) in clickSkip_shouldReturnResultSkip()
|
H A D | FingerprintSuggestionActivityTest.java | 115 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in testKeyguardSecure_shouldFinishWithFingerprintResultSkip() local 117 assertWithMessage("Result code").that(shadowActivity.getResultCode()) in testKeyguardSecure_shouldFinishWithFingerprintResultSkip()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
H A D | SetNewPasswordActivityTest.java | 99 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testChooseLockGeneric() local 100 Intent intent = getLaunchChooseLockIntent(shadowActivity); in testChooseLockGeneric() 114 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testSetupChooseLockGeneric() local 134 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraWithoutPermission() local 158 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraWithPermission() local 188 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraInvalidValue() local 216 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraNoneComplexity() local 243 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordWithoutExtra() local 271 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewParentProfilePasswordExtraWithPermission() local 298 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewParentProfilePasswordWithoutExtra() local [all …]
|
H A D | ChooseLockSettingsHelperTest.java | 52 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchConfirmationActivityWithExternal() local 53 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityWithExternal() 83 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchConfirmationActivityInternal() local 84 Intent startedIntent = shadowActivity.getNextStartedActivity(); in testLaunchConfirmationActivityInternal() 116 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchConfirmationActivity_internal_shouldPropagateTheme() local 117 IntentForResult startedActivity = shadowActivity.getNextStartedActivityForResult(); in testLaunchConfirmationActivity_internal_shouldPropagateTheme() 135 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in launchConfirmPattern_ForceVerify_shouldLaunchInternalActivity() local 136 Intent startedIntent = shadowActivity.getNextStartedActivity(); in launchConfirmPattern_ForceVerify_shouldLaunchInternalActivity() 155 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in launchConfirmPassword_ForceVerify_shouldLaunchInternalActivity() local 156 Intent startedIntent = shadowActivity.getNextStartedActivity(); in launchConfirmPassword_ForceVerify_shouldLaunchInternalActivity()
|
H A D | SetupChooseLockGenericTest.java | 64 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()
|
H A D | SetupChooseLockPasswordTest.java | 142 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in createActivity_clickDifferentOption_extrasShouldBePropagated() local 143 final Intent nextStartedActivity = shadowActivity.getNextStartedActivity(); in createActivity_clickDifferentOption_extrasShouldBePropagated()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/ |
H A D | LocalePickerWithRegionActivityTest.java | 37 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()
|
/aosp12/packages/apps/TV/tests/robotests/src/com/android/tv/ |
H A D | SetupPassthroughActivityTest.java | 170 ShadowActivity shadowActivity = shadowOf(activity); in create_trustedCallingPackage() local 171 shadowActivity.setCallingActivity(createTrustedComponent()); in create_trustedCallingPackage() 175 shadowActivity.getNextStartedActivityForResult(); in create_trustedCallingPackage() 193 ShadowActivity shadowActivity = shadowOf(activity); in create_nonTrustedCallingPackage() local 194 shadowActivity.setCallingActivity( in create_nonTrustedCallingPackage() 199 shadowActivity.getNextStartedActivityForResult(); in create_nonTrustedCallingPackage() 215 ShadowActivity shadowActivity = shadowOf(activity); in create_nullCallingPackage() local 216 shadowActivity.setCallingActivity(null); in create_nullCallingPackage() 220 shadowActivity.getNextStartedActivityForResult(); in create_nullCallingPackage() 347 ShadowActivity shadowActivity = shadowOf(activity); in createSetupActivityFor() local [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/ |
H A D | WorkModeConditionControllerTest.java | 60 final ShadowActivity shadowActivity = Shadow.extract(mActivity); in onPrimaryClick_shouldLaunchAccountsSetting() local 61 assertThat(shadowActivity.getNextStartedActivity().getComponent()).isEqualTo(componentName); in onPrimaryClick_shouldLaunchAccountsSetting()
|
H A D | BackgroundDataConditionControllerTest.java | 66 final ShadowActivity shadowActivity = Shadow.extract(mActivity); in onPrimaryClick_shouldReturn2SummaryActivity() local 67 assertThat(shadowActivity.getNextStartedActivity().getComponent()).isEqualTo(componentName); in onPrimaryClick_shouldReturn2SummaryActivity()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
H A D | SliceContextualCardControllerTest.java | 121 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
H A D | DefaultAppShortcutPreferenceControllerBaseTest.java | 188 final ShadowActivity shadowActivity = shadowOf(mActivity); in handlePreferenceTreeClick_shouldStartManageDefaultAppIntent() local 190 final Intent intent = shadowActivity.getNextStartedActivity(); in handlePreferenceTreeClick_shouldStartManageDefaultAppIntent()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
H A D | BrightnessLevelPreferenceControllerTest.java | 197 final ShadowActivity shadowActivity = shadowOf(activity); in handlePreferenceTreeClick_transitionTypeNone_shouldPassToNextActivity() local 202 final Intent intent = shadowActivity.getNextStartedActivity(); in handlePreferenceTreeClick_transitionTypeNone_shouldPassToNextActivity()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
H A D | DashboardFeatureProviderImplTest.java | 526 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in bindPreference_withIntentActionMetadata_shouldSetLaunchAction() local 528 final Intent launchIntent = shadowActivity.getNextStartedActivityForResult().intent; in bindPreference_withIntentActionMetadata_shouldSetLaunchAction()
|