Package org.robolectric.shadows
Class ShadowUIModeManager
java.lang.Object
org.robolectric.shadows.ShadowUIModeManager
@Implements(android.app.UiModeManager.class) public class ShadowUIModeManager extends Object
-
Field Summary
Fields Modifier and Type Field Description int
currentModeType
int
currentNightMode
int
lastCarModePriority
int
lastFlags
-
Constructor Summary
Constructors Constructor Description ShadowUIModeManager()
-
Method Summary
Modifier and Type Method Description protected void
disableCarMode(int flags)
protected void
enableCarMode(int flags)
protected void
enableCarMode(int priority, int flags)
Set<Integer>
getActiveProjectionTypes()
int
getApplicationNightMode()
protected int
getCurrentModeType()
protected int
getNightMode()
protected boolean
releaseProjection(int projectionType)
protected boolean
requestProjection(int projectionType)
protected void
setApplicationNightMode(int mode)
void
setFailOnProjectionToggle(boolean failOnProjectionToggle)
protected void
setNightMode(int mode)
-
Field Details
-
currentModeType
public int currentModeType -
currentNightMode
public int currentNightMode -
lastFlags
public int lastFlags -
lastCarModePriority
public int lastCarModePriority
-
-
Constructor Details
-
ShadowUIModeManager
public ShadowUIModeManager()
-
-
Method Details
-
getCurrentModeType
-
enableCarMode
-
enableCarMode
-
disableCarMode
-
getNightMode
-
setNightMode
-
getApplicationNightMode
public int getApplicationNightMode() -
getActiveProjectionTypes
-
setFailOnProjectionToggle
public void setFailOnProjectionToggle(boolean failOnProjectionToggle) -
setApplicationNightMode
-
requestProjection
-
releaseProjection
-