Home
last modified time | relevance | path

Searched refs:failureMode (Results 1 – 25 of 55) sorted by relevance

123

/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/
DAnnotationExecutorUtil.java39 public static void checkFailOrSkip(String message, boolean value, FailureMode failureMode) { in checkFailOrSkip() argument
40 if (failureMode.equals(FailureMode.FAIL)) { in checkFailOrSkip()
42 } else if (failureMode.equals(FailureMode.SKIP)) { in checkFailOrSkip()
45 throw new IllegalStateException("Unknown failure mode: " + failureMode); in checkFailOrSkip()
52 public static void failOrSkip(String message, FailureMode failureMode) { in failOrSkip() argument
53 switch (failureMode) { in failOrSkip()
59 throw new IllegalStateException("Unknown failure mode: " + failureMode); in failOrSkip()
/cts/common/device-side/bedstead/modules/root/src/main/kotlin/com/android/xts/root/
DRootAnnotationExecutor.kt57 is RequireAdbRoot -> requireAdbRoot(annotation.failureMode) in applyAnnotation()
58 is RequireRootInstrumentation -> requireRootInstrumentation(annotation.failureMode) in applyAnnotation()
62 private fun requireAdbRoot(failureMode: FailureMode) { in requireAdbRoot()
66 AnnotationExecutorUtil.failOrSkip("Device does not have root available.", failureMode) in requireAdbRoot()
70 private fun requireRootInstrumentation(failureMode: FailureMode) { in requireRootInstrumentation()
74 AnnotationExecutorUtil.failOrSkip("Test is not instrumented as root.", failureMode) in requireRootInstrumentation()
/cts/common/device-side/bedstead/modules/multiuser/src/main/kotlin/com/android/bedstead/multiuser/
DAnnotationLogicExtensions.kt46 failureMode in RequireHasMainUser()
62 failureMode in logic()
79 failureMode in RequireVisibleBackgroundUsers()
88 failOrSkip(message, failureMode) in RequireNotVisibleBackgroundUsers()
96 failOrSkip(message, failureMode) in RequireVisibleBackgroundUsersOnDefaultDisplay()
104 failOrSkip(message, failureMode) in RequireNotVisibleBackgroundUsersOnDefaultDisplay()
/cts/common/device-side/bedstead/modules/root/src/main/kotlin/com/android/xts/root/annotations/
DRequireRootInstrumentation.kt30 val failureMode: FailureMode = FailureMode.SKIP, constant in com.android.xts.root.annotations.RequireRootInstrumentation
53 failureMode: FailureMode
55 AutoAnnotation_RequireRootInstrumentationKt_requireRootInstrumentation(reason, failureMode)
DRequireAdbRoot.kt39 val failureMode: FailureMode = FailureMode.SKIP, constant in com.android.xts.root.annotations.RequireAdbRoot
61 failureMode: FailureMode
63 AutoAnnotation_RequireAdbRootKt_requireAdbRoot(reason, failureMode)
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissionsAnnotationExecutor.kt60 annotation.failureMode in applyAnnotation()
71 annotation.failureMode in applyAnnotation()
109 annotation.failureMode in applyAnnotation()
120 annotation.failureMode in applyAnnotation()
175 private fun requireNotInstantApp(reason: String, failureMode: FailureMode) { in requireNotInstantApp()
179 failureMode in requireNotInstantApp()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DAnnotationLogicExtensions.kt80 failureMode in RequireFeature()
88 failureMode in RequireDoesNotHaveFeature()
98 failureMode in logic()
108 failureMode in RequireNotLowRamDevice()
DDeviceState.java608 ensureTestAppHasPermissionAnnotation.failureMode()
617 ensureTestAppDoesNotHavePermissionAnnotation.failureMode()
634 requireSystemServiceAvailableAnnotation.failureMode());
643 requireTargetSdkVersionAnnotation.failureMode());
654 requireSdkVersionAnnotation.failureMode());
659 requireSdkVersionAnnotation.failureMode(),
675 requirePackageInstalledAnnotation.failureMode());
683 requirePackageNotInstalledAnnotation.failureMode()
761 requireInstantAppAnnotation.failureMode());
767 requireNotInstantAppAnnotation.failureMode());
[all …]
DTestAppsComponent.kt58 failureMode: FailureMode in ensureTestAppHasPermission()
65 if (failureMode == FailureMode.SKIP && e.message!!.contains("Cannot grant") || in ensureTestAppHasPermission()
81 failureMode: FailureMode in ensureTestAppDoesNotHavePermission()
87 if (failureMode == FailureMode.SKIP) { in ensureTestAppDoesNotHavePermission()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/
DInteractiveAnnotationExecutor.java58 requireBooleanStepResultAnnotation.failureMode()); in applyAnnotation()
104 boolean expectedResult, String reason, FailureMode failureMode) { in requireBooleanStepResult() argument
112 checkFailOrSkip(reason, result == expectedResult, failureMode); in requireBooleanStepResult()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DDeviceOwnerComponent.kt87 failureMode: FailureMode, in ensureHasDeviceOwner()
153 failureMode in ensureHasDeviceOwner()
158 removeAllNonTestUsers(failureMode) in ensureHasDeviceOwner()
224 private fun removeAllNonTestUsers(failureMode: FailureMode) { in removeAllNonTestUsers()
261 failureMode in removeAllNonTestUsers()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DRequireTelephonySupport.java33 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireQuickSettingsSupport.java33 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireNotInstantApp.java35 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireSystemServiceAvailable.java37 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireInstantApp.java35 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireMultiUserSupport.java40 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireTargetSdkVersion.java38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireSdkVersion.java39 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireHasDefaultBrowser.java36 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireNotVisibleBackgroundUsersOnDefaultDisplay.java38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireVisibleBackgroundUsers.java38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireVisibleBackgroundUsersOnDefaultDisplay.java38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireLowRamDevice.java36 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
DRequireNotVisibleBackgroundUsers.java38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method

123