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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
int
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
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
-
__constructor__
-
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.
-