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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintgetAppSaturationLevel(String packageName) Returns the current display saturation level for thepackageName.protected intprotected intintReturns the current display saturation level.protected intprotected booleanprotected booleansetAppSaturationLevel(String packageName, int saturationLevel) protected booleansetNightDisplayActivated(boolean activated) protected booleansetNightDisplayAutoMode(int autoMode) protected booleansetNightDisplayColorTemperature(int temperature) protected booleansetSaturationLevel(int saturationLevel) booleansetTransformCapabilities(int transformCapabilities) Sets the current transform capabilities.
-
Constructor Details
-
ShadowColorDisplayManager
public ShadowColorDisplayManager()
-
-
Method Details
-
__constructor__
@Implementation protected void __constructor__() -
getTransformCapabilities
@Implementation protected int getTransformCapabilities() -
setNightDisplayActivated
@Implementation protected boolean setNightDisplayActivated(boolean activated) -
isNightDisplayActivated
@Implementation protected boolean isNightDisplayActivated() -
setNightDisplayColorTemperature
@Implementation protected boolean setNightDisplayColorTemperature(int temperature) -
getNightDisplayColorTemperature
@Implementation protected int getNightDisplayColorTemperature() -
setNightDisplayAutoMode
@Implementation protected boolean setNightDisplayAutoMode(int autoMode) -
getNightDisplayAutoMode
@Implementation protected int getNightDisplayAutoMode() -
setSaturationLevel
@Implementation protected boolean setSaturationLevel(int saturationLevel) -
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.
-