Package org.robolectric.shadows
Class ShadowDisplayManagerGlobal
java.lang.Object
org.robolectric.shadows.ShadowDisplayManagerGlobal
@Implements(value=android.hardware.display.DisplayManagerGlobal.class,
isInAndroidSdk=false)
public class ShadowDisplayManagerGlobal
extends Object
Shadow for
DisplayManagerGlobal
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected Object
getBrightnessConfigurationForUser
(int userId) protected List<BrightnessChangeEvent>
getBrightnessEvents
(String callingPackage) protected Object
static DisplayManagerGlobal
Returns the 'natural' dimensions of the default display.protected WifiDisplayStatus
static void
reset()
protected void
setBrightnessConfigurationForUser
(Object configObject, int userId, String 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, int userId, String packageName) -
getBrightnessConfigurationForUser
@Implementation(minSdk=28) @HiddenApi protected Object getBrightnessConfigurationForUser(int userId) -
getDefaultBrightnessConfiguration
-
getBrightnessEvents
@Implementation(minSdk=28) @HiddenApi protected List<BrightnessChangeEvent> getBrightnessEvents(String callingPackage)
-