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 for
DisplayManagerGlobal
.-
Constructor Summary
Constructors Constructor Description ShadowDisplayManagerGlobal()
-
Method Summary
Modifier and Type Method Description protected void
__constructor__(IDisplayManager dm)
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, Object userId, Object packageName)
protected void
setSaturationLevel(float level)
-
Constructor Details
-
ShadowDisplayManagerGlobal
public ShadowDisplayManagerGlobal()
-
-
Method Details
-
reset
-
__constructor__
-
getInstance
-
getWifiDisplayStatus
-
getStableDisplaySize
Returns the 'natural' dimensions of the default display.- Throws:
RemoteException
-
setSaturationLevel
-
setBrightnessConfigurationForUser
@Implementation(minSdk=28) @HiddenApi protected void setBrightnessConfigurationForUser(Object configObject, Object userId, Object packageName) -
getBrightnessConfigurationForUser
@Implementation(minSdk=28) @HiddenApi protected Object getBrightnessConfigurationForUser(int userId) -
getDefaultBrightnessConfiguration
-
getBrightnessEvents
@Implementation(minSdk=28) @HiddenApi protected List<BrightnessChangeEvent> getBrightnessEvents(String callingPackage)
-