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 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, int userId, String packageName)protected voidsetSaturationLevel(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)
-
-