Package org.robolectric.shadows
Class ShadowColorDisplayManager
java.lang.Object
org.robolectric.shadows.ShadowColorDisplayManager
@Implements(className="android.hardware.display.ColorDisplayManager",
isInAndroidSdk=false,
minSdk=29)
public class ShadowColorDisplayManager
extends Object
Shadow for
ColorDisplayManager
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getAppSaturationLevel
(String packageName) Returns the current display saturation level for thepackageName
.protected int
protected int
int
Returns the current display saturation level.protected int
protected boolean
static void
reset()
protected boolean
setAppSaturationLevel
(String packageName, int saturationLevel) protected boolean
setNightDisplayActivated
(boolean activated) protected boolean
setNightDisplayAutoMode
(int autoMode) protected boolean
setNightDisplayColorTemperature
(int temperature) protected boolean
setSaturationLevel
(int saturationLevel) boolean
setTransformCapabilities
(int transformCapabilities) Sets the current transform capabilities.
-
Constructor Details
-
ShadowColorDisplayManager
public ShadowColorDisplayManager()
-
-
Method Details
-
getTransformCapabilities
-
setNightDisplayActivated
-
isNightDisplayActivated
-
setNightDisplayColorTemperature
-
getNightDisplayColorTemperature
-
setNightDisplayAutoMode
-
getNightDisplayAutoMode
-
setSaturationLevel
-
setAppSaturationLevel
-
setTransformCapabilities
public boolean setTransformCapabilities(int transformCapabilities) Sets the current transform capabilities. -
getAppSaturationLevel
Returns the current display saturation level for thepackageName
. -
getSaturationLevel
public int getSaturationLevel()Returns the current display saturation level. -
reset
-