Searched refs:DisplayProperties (Results 1 – 11 of 11) sorted by relevance
41 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 …]
20 object DisplayProperties { object
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()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()
19 import com.android.bedstead.nene.display.DisplayProperties34 val theme: DisplayProperties.Theme,
19 import com.android.bedstead.nene.display.DisplayProperties34 val orientation: DisplayProperties.ScreenOrientation,
22 import com.android.bedstead.nene.display.DisplayProperties33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.DARK)
22 import com.android.bedstead.nene.display.DisplayProperties33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.LANDSCAPE)
22 import com.android.bedstead.nene.display.DisplayProperties33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.LIGHT)
22 import com.android.bedstead.nene.display.DisplayProperties33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.PORTRAIT)
135 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 …]
119 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) {