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
Constructors Constructor Description ShadowColorDisplayManager()
-
Method Summary
Modifier and Type Method Description protected void
__constructor__()
int
getAppSaturationLevel(String packageName)
Returns the current display saturation level for thepackageName
.protected int
getNightDisplayAutoMode()
protected int
getNightDisplayColorTemperature()
int
getSaturationLevel()
Returns the current display saturation level.protected int
getTransformCapabilities()
protected boolean
isNightDisplayActivated()
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.
-