@Implements(value=android.hardware.display.DisplayManagerGlobal.class, isInAndroidSdk=false, minSdk=17, looseSignatures=true) public class ShadowDisplayManagerGlobal extends Object
DisplayManagerGlobal
.Constructor | Description |
---|---|
ShadowDisplayManagerGlobal() |
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) |
@Resetter public static void reset()
@Implementation public static DisplayManagerGlobal getInstance()
@Implementation protected WifiDisplayStatus getWifiDisplayStatus()
@Implementation(minSdk=27) public Point getStableDisplaySize() throws RemoteException
RemoteException
@Implementation(minSdk=28, maxSdk=28) protected void setSaturationLevel(float level)
@Implementation(minSdk=28) @HiddenApi protected void setBrightnessConfigurationForUser(Object configObject, int userId, String packageName)
@Implementation(minSdk=28) @HiddenApi protected Object getBrightnessConfigurationForUser(int userId)
@Implementation(minSdk=28) @HiddenApi protected Object getDefaultBrightnessConfiguration()
@Implementation(minSdk=28) @HiddenApi protected List<BrightnessChangeEvent> getBrightnessEvents(String callingPackage)