Searched refs:ScreenOrientation (Results 1 – 8 of 8) sorted by relevance
67 fun setScreenOrientation(orientation: DisplayProperties.ScreenOrientation) { in display()70 DisplayProperties.ScreenOrientation.PORTRAIT -> device.setOrientationPortrait() in display()71 DisplayProperties.ScreenOrientation.LANDSCAPE -> device.setOrientationLandscape() in display()78 fun getScreenOrientation(): DisplayProperties.ScreenOrientation { in display()82 Surface.ROTATION_0 -> DisplayProperties.ScreenOrientation.PORTRAIT in display()83 Surface.ROTATION_90 -> DisplayProperties.ScreenOrientation.LANDSCAPE in display()
27 enum class ScreenOrientation { class
33 TestApis.display().setScreenOrientation(DisplayProperties.ScreenOrientation.LANDSCAPE) in setScreenOrientation_landscape_orientationIsSet()37 ).isEqualTo(DisplayProperties.ScreenOrientation.LANDSCAPE) in setScreenOrientation_landscape_orientationIsSet()42 TestApis.display().setScreenOrientation(DisplayProperties.ScreenOrientation.PORTRAIT) in setScreenOrientation_portrait_orientationIsSet()46 ).isEqualTo(DisplayProperties.ScreenOrientation.PORTRAIT) in setScreenOrientation_portrait_orientationIsSet()
34 val orientation: DisplayProperties.ScreenOrientation,
33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.LANDSCAPE)
33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.PORTRAIT)
1086 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.LANDSCAPE)1090 ).isEqualTo(DisplayProperties.ScreenOrientation.LANDSCAPE); in ensureUsingScreenOrientation_landscape_orientationIsSet()1094 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.PORTRAIT)1098 ).isEqualTo(DisplayProperties.ScreenOrientation.PORTRAIT); in ensureUsingScreenOrientation_portrait_orientationIsSet()1118 ).isEqualTo(DisplayProperties.ScreenOrientation.LANDSCAPE); in includeRunOnLandscapeOrientationDevice_orientationIsSet()1125 .isEqualTo(DisplayProperties.ScreenOrientation.PORTRAIT); in includeRunOnPortraitOrientationDevice_orientationIsSet()
1187 private DisplayProperties.ScreenOrientation mOriginalScreenOrientation;2622 private void ensureUsingScreenOrientation(DisplayProperties.ScreenOrientation orientation) {