Package org.robolectric.shadows
Class ShadowDisplayManagerGlobal
- java.lang.Object
-
- org.robolectric.shadows.ShadowDisplayManagerGlobal
-
@Implements(value=android.hardware.display.DisplayManagerGlobal.class, isInAndroidSdk=false, minSdk=17, looseSignatures=true) public class ShadowDisplayManagerGlobal extends Object
Shadow forDisplayManagerGlobal
.
-
-
Constructor Summary
Constructors Constructor Description ShadowDisplayManagerGlobal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
getBrightnessConfigurationForUser(int userId)
protected List<BrightnessChangeEvent>
getBrightnessEvents(String callingPackage)
protected Object
getDefaultBrightnessConfiguration()
static DisplayManagerGlobal
getInstance()
Point
getStableDisplaySize()
Returns the 'natural' dimensions of the default display.protected WifiDisplayStatus
getWifiDisplayStatus()
static void
reset()
protected void
setBrightnessConfigurationForUser(Object configObject, int userId, String packageName)
protected void
setSaturationLevel(float level)
-
-
-
Method Detail
-
reset
@Resetter public static void reset()
-
getInstance
@Implementation public static DisplayManagerGlobal getInstance()
-
getWifiDisplayStatus
@Implementation protected WifiDisplayStatus getWifiDisplayStatus()
-
getStableDisplaySize
@Implementation(minSdk=27) public Point getStableDisplaySize() throws RemoteException
Returns the 'natural' dimensions of the default display.- Throws:
RemoteException
-
setSaturationLevel
@Implementation(minSdk=28, maxSdk=28) protected void setSaturationLevel(float level)
-
setBrightnessConfigurationForUser
@Implementation(minSdk=28) @HiddenApi protected void setBrightnessConfigurationForUser(Object configObject, int userId, String packageName)
-
getBrightnessConfigurationForUser
@Implementation(minSdk=28) @HiddenApi protected Object getBrightnessConfigurationForUser(int userId)
-
getDefaultBrightnessConfiguration
@Implementation(minSdk=28) @HiddenApi protected Object getDefaultBrightnessConfiguration()
-
getBrightnessEvents
@Implementation(minSdk=28) @HiddenApi protected List<BrightnessChangeEvent> getBrightnessEvents(String callingPackage)
-
-