Home
last modified time | relevance | path

Searched refs:ScreenOrientation (Results 1 – 8 of 8) sorted by relevance

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/display/
DDisplay.kt67 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()
DDisplayProperties.kt27 enum class ScreenOrientation { class
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/display/
DDisplayTest.kt33 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()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DEnsureUsingScreenOrientation.kt34 val orientation: DisplayProperties.ScreenOrientation,
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/parameterized/
DIncludeLandscapeOrientation.kt33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.LANDSCAPE)
DIncludePortraitOrientation.kt33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.PORTRAIT)
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java1086 @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()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1187 private DisplayProperties.ScreenOrientation mOriginalScreenOrientation;
2622 private void ensureUsingScreenOrientation(DisplayProperties.ScreenOrientation orientation) {