# androidx.test.espresso.device.rules

# androidx.test.espresso.device.rules

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/test/espresso/device/rules/package-summary "View this page in Java")

## Classes

|---------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|
| [DisplaySizeRule](https://developer.android.com/reference/kotlin/androidx/test/espresso/device/rules/DisplaySizeRule)                                   | Test rule for restoring device to its starting display size when a test case finishes |
| [ScreenOrientationRule](https://developer.android.com/reference/kotlin/androidx/test/espresso/device/rules/ScreenOrientationRule)                       | Restores the screen orientation when a test case finishes.                            |
| [SkipUnsupportedDeviceActionsRule](https://developer.android.com/reference/kotlin/androidx/test/espresso/device/rules/SkipUnsupportedDeviceActionsRule) | Rule for skipping tests when a device action is called on an unsupported device.      |