/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/ |
D | AnnotationExecutorUtil.java | 39 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/ |
D | RootAnnotationExecutor.kt | 57 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/ |
D | AnnotationLogicExtensions.kt | 46 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/ |
D | RequireRootInstrumentation.kt | 30 val failureMode: FailureMode = FailureMode.SKIP, constant in com.android.xts.root.annotations.RequireRootInstrumentation 53 failureMode: FailureMode 55 AutoAnnotation_RequireRootInstrumentationKt_requireRootInstrumentation(reason, failureMode)
|
D | RequireAdbRoot.kt | 39 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/ |
D | PermissionsAnnotationExecutor.kt | 60 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/ |
D | AnnotationLogicExtensions.kt | 80 failureMode in RequireFeature() 88 failureMode in RequireDoesNotHaveFeature() 98 failureMode in logic() 108 failureMode in RequireNotLowRamDevice()
|
D | DeviceState.java | 608 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 …]
|
D | TestAppsComponent.kt | 58 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/ |
D | InteractiveAnnotationExecutor.java | 58 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/ |
D | DeviceOwnerComponent.kt | 87 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/ |
D | RequireTelephonySupport.java | 33 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireQuickSettingsSupport.java | 33 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireNotInstantApp.java | 35 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireSystemServiceAvailable.java | 37 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireInstantApp.java | 35 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireMultiUserSupport.java | 40 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireTargetSdkVersion.java | 38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireSdkVersion.java | 39 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireHasDefaultBrowser.java | 36 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireNotVisibleBackgroundUsersOnDefaultDisplay.java | 38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireVisibleBackgroundUsers.java | 38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireVisibleBackgroundUsersOnDefaultDisplay.java | 38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireLowRamDevice.java | 36 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|
D | RequireNotVisibleBackgroundUsers.java | 38 FailureMode failureMode() default FailureMode.SKIP; in failureMode() method
|