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 ObjectgetBrightnessConfigurationForUser(int userId)protected List<BrightnessChangeEvent>getBrightnessEvents(String callingPackage)protected ObjectgetDefaultBrightnessConfiguration()static DisplayManagerGlobalgetInstance()PointgetStableDisplaySize()Returns the 'natural' dimensions of the default display.protected WifiDisplayStatusgetWifiDisplayStatus()static voidreset()protected voidsetBrightnessConfigurationForUser(Object configObject, Object userId, Object packageName)protected voidsetSaturationLevel(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)
-