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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void__constructor__()intgetAppSaturationLevel(String packageName)Returns the current display saturation level for thepackageName.protected intgetNightDisplayAutoMode()protected intgetNightDisplayColorTemperature()intgetSaturationLevel()Returns the current display saturation level.protected intgetTransformCapabilities()protected booleanisNightDisplayActivated()protected 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.
-
-
-
Method Detail
-
__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
@Implementation protected boolean setAppSaturationLevel(String packageName, int saturationLevel)
-
setTransformCapabilities
public boolean setTransformCapabilities(int transformCapabilities)
Sets the current transform capabilities.
-
getAppSaturationLevel
public int getAppSaturationLevel(String packageName)
Returns the current display saturation level for thepackageName.
-
getSaturationLevel
public int getSaturationLevel()
Returns the current display saturation level.
-
-