Home
last modified time | relevance | path

Searched refs:DisplayProperties (Results 1 – 11 of 11) sorted by relevance

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/display/
DDisplay.kt41 fun setDisplayTheme(displayTheme: DisplayProperties.Theme) { in display()
51 fun getDisplayTheme(): DisplayProperties.Theme { in display()
57 UiModeManager.MODE_NIGHT_NO -> DisplayProperties.Theme.LIGHT in display()
58 UiModeManager.MODE_NIGHT_YES -> DisplayProperties.Theme.DARK in display()
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()
[all …]
DDisplayProperties.kt20 object DisplayProperties { object
/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()
51 TestApis.display().setDisplayTheme(DisplayProperties.Theme.DARK) in setDisplayTheme_setDark_themeIsSet()
53 assertThat(TestApis.display().getDisplayTheme()).isEqualTo(DisplayProperties.Theme.DARK) in setDisplayTheme_setDark_themeIsSet()
58 TestApis.display().setDisplayTheme(DisplayProperties.Theme.LIGHT) in setDisplayTheme_setLight_themeIsSet()
60 assertThat(TestApis.display().getDisplayTheme()).isEqualTo(DisplayProperties.Theme.LIGHT) in setDisplayTheme_setLight_themeIsSet()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DEnsureUsingDisplayTheme.kt19 import com.android.bedstead.nene.display.DisplayProperties
34 val theme: DisplayProperties.Theme,
DEnsureUsingScreenOrientation.kt19 import com.android.bedstead.nene.display.DisplayProperties
34 val orientation: DisplayProperties.ScreenOrientation,
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/parameterized/
DIncludeDarkMode.kt22 import com.android.bedstead.nene.display.DisplayProperties
33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.DARK)
DIncludeLandscapeOrientation.kt22 import com.android.bedstead.nene.display.DisplayProperties
33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.LANDSCAPE)
DIncludeLightMode.kt22 import com.android.bedstead.nene.display.DisplayProperties
33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.LIGHT)
DIncludePortraitOrientation.kt22 import com.android.bedstead.nene.display.DisplayProperties
33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.PORTRAIT)
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java135 import com.android.bedstead.nene.display.DisplayProperties;
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()
1102 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.DARK)
1104 assertThat(Display.INSTANCE.getDisplayTheme()).isEqualTo(DisplayProperties.Theme.DARK); in ensureUsingDisplayTheme_setDark_themeIsSet()
1108 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.LIGHT)
1110 assertThat(Display.INSTANCE.getDisplayTheme()).isEqualTo(DisplayProperties.Theme.LIGHT); in ensureUsingDisplayTheme_setLight_themeIsSet()
1118 ).isEqualTo(DisplayProperties.ScreenOrientation.LANDSCAPE); in includeRunOnLandscapeOrientationDevice_orientationIsSet()
[all …]
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java119 import com.android.bedstead.nene.display.DisplayProperties;
1186 private DisplayProperties.Theme mOriginalDisplayTheme;
1187 private DisplayProperties.ScreenOrientation mOriginalScreenOrientation;
2615 private void ensureUsingDisplayTheme(DisplayProperties.Theme theme) {
2622 private void ensureUsingScreenOrientation(DisplayProperties.ScreenOrientation orientation) {