Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.test.espresso.device.rules\n===================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/test/espresso/device/rules/package-summary \"View this page in Kotlin\") \\|Java\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| [DisplaySizeRule](/reference/androidx/test/espresso/device/rules/DisplaySizeRule) | Test rule for restoring device to its starting display size when a test case finishes |\n| [ScreenOrientationRule](/reference/androidx/test/espresso/device/rules/ScreenOrientationRule) | Restores the screen orientation when a test case finishes. |\n| [SkipUnsupportedDeviceActionsRule](/reference/androidx/test/espresso/device/rules/SkipUnsupportedDeviceActionsRule) | Rule for skipping tests when a device action is called on an unsupported device. |"]]