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 intcurrentModeTypeintcurrentNightModeintlastCarModePriorityintlastFlags
-
Constructor Summary
Constructors Constructor Description ShadowUIModeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisableCarMode(int flags)protected voidenableCarMode(int flags)protected voidenableCarMode(int priority, int flags)Set<Integer>getActiveProjectionTypes()intgetApplicationNightMode()protected intgetCurrentModeType()protected intgetNightMode()protected booleanreleaseProjection(int projectionType)protected booleanrequestProjection(int projectionType)protected voidsetApplicationNightMode(int mode)voidsetFailOnProjectionToggle(boolean failOnProjectionToggle)protected voidsetNightMode(int mode)
-
-
-
Method Detail
-
getCurrentModeType
@Implementation protected int getCurrentModeType()
-
enableCarMode
@Implementation(maxSdk=29) protected void enableCarMode(int flags)
-
enableCarMode
@Implementation(minSdk=30) protected void enableCarMode(int priority, int flags)
-
disableCarMode
@Implementation protected void disableCarMode(int flags)
-
getNightMode
@Implementation protected int getNightMode()
-
setNightMode
@Implementation protected void setNightMode(int mode)
-
getApplicationNightMode
public int getApplicationNightMode()
-
setFailOnProjectionToggle
public void setFailOnProjectionToggle(boolean failOnProjectionToggle)
-
setApplicationNightMode
@Implementation(minSdk=31) @HiddenApi protected void setApplicationNightMode(int mode)
-
requestProjection
@Implementation(minSdk=31) protected boolean requestProjection(int projectionType)
-
releaseProjection
@Implementation(minSdk=31) protected boolean releaseProjection(int projectionType)
-
-