public class

LiveDisplayConfig

extends Object
implements Parcelable
java.lang.Object
   ↳ lineageos.hardware.LiveDisplayConfig

Class Overview

Holder class for LiveDisplay static configuration. This class holds various defaults and hardware capabilities which are involved with LiveDisplay.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
LiveDisplayConfig(BitSet capabilities, int defaultMode, int defaultDayTemperature, int defaultNightTemperature, boolean defaultAutoOutdoorMode, boolean defaultAutoContrast, boolean defaultCABC, boolean defaultColorEnhancement, Range<Integer> colorTemperatureRange, Range<Integer> colorBalanceRange, Range<Float> hueRange, Range<Float> saturationRange, Range<Float> intensityRange, Range<Float> contrastRange, Range<Float> saturationThresholdRange)
Public Methods
int describeContents()
Range<Integer> getColorBalanceRange()
Get the range of supported color balance
Range<Integer> getColorTemperatureRange()
Get the range of supported color temperatures
Range<Float> getContrastRange()
Get the supported range for contrast adjustment
boolean getDefaultAutoContrast()
Get the default value for auto contrast
boolean getDefaultAutoOutdoorMode()
Get the default value for automatic outdoor mode
boolean getDefaultCABC()
Get the default value for CABC
boolean getDefaultColorEnhancement()
Get the default value for color enhancement
int getDefaultDayTemperature()
Gets the default color temperature to use in the daytime.
int getDefaultMode()
Get the default adaptive mode.
int getDefaultNightTemperature()
Gets the default color temperature to use at night.
Range<Float> getHueRange()
Get the supported range for hue adjustment
Range<Float> getIntensityRange()
Get the supported range for intensity adjustment
List<Range<Float>> getPictureAdjustmentRanges()
Convenience method to get a list of all picture adjustment ranges with a single call.
Range<Float> getSaturationRange()
Get the supported range for saturation adjustment
Range<Float> getSaturationThresholdRange()
Get the supported range for saturation threshold adjustment
boolean hasFeature(int feature)
Checks if a particular feature or mode is supported by the system.
boolean hasModeSupport()
Checks if LiveDisplay has support for adaptive modes.
boolean isAvailable()
Checks if LiveDisplay is available for use on this device.
String toString()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public LiveDisplayConfig (BitSet capabilities, int defaultMode, int defaultDayTemperature, int defaultNightTemperature, boolean defaultAutoOutdoorMode, boolean defaultAutoContrast, boolean defaultCABC, boolean defaultColorEnhancement, Range<Integer> colorTemperatureRange, Range<Integer> colorBalanceRange, Range<Float> hueRange, Range<Float> saturationRange, Range<Float> intensityRange, Range<Float> contrastRange, Range<Float> saturationThresholdRange)

added in API level 6

Parameters
capabilities BitSet
defaultMode int
defaultDayTemperature int
defaultNightTemperature int
defaultAutoOutdoorMode boolean
defaultAutoContrast boolean
defaultCABC boolean
defaultColorEnhancement boolean
colorTemperatureRange Range
colorBalanceRange Range
hueRange Range
saturationRange Range
intensityRange Range
contrastRange Range
saturationThresholdRange Range

Public Methods

public int describeContents ()

added in API level 6

Returns
int

public Range<Integer> getColorBalanceRange ()

added in API level 6

Get the range of supported color balance

Returns
Range<Integer> linear range which maps into the temperature range curve

public Range<Integer> getColorTemperatureRange ()

added in API level 6

Get the range of supported color temperatures

Returns
Range<Integer> range in Kelvin

public Range<Float> getContrastRange ()

added in API level 6

Get the supported range for contrast adjustment

Returns
Range<Float> float range

public boolean getDefaultAutoContrast ()

added in API level 6

Get the default value for auto contrast

Returns
boolean true if enabled

public boolean getDefaultAutoOutdoorMode ()

added in API level 6

Get the default value for automatic outdoor mode

Returns
boolean true if enabled

public boolean getDefaultCABC ()

added in API level 6

Get the default value for CABC

Returns
boolean true if enabled

public boolean getDefaultColorEnhancement ()

added in API level 6

Get the default value for color enhancement

Returns
boolean true if enabled

public int getDefaultDayTemperature ()

added in API level 6

Gets the default color temperature to use in the daytime. This is typically set to 6500K, however this may not be entirely accurate. Use this value for resetting controls to the default.

Returns
int the default day temperature in K

public int getDefaultMode ()

added in API level 6

Get the default adaptive mode.

Returns
int the default mode

public int getDefaultNightTemperature ()

added in API level 6

Gets the default color temperature to use at night. This is typically set to 4500K, but this may not be entirely accurate. Use this value for resetting controls to defaults.

Returns
int the default night color temperature

public Range<Float> getHueRange ()

added in API level 6

Get the supported range for hue adjustment

Returns
Range<Float> float range

public Range<Float> getIntensityRange ()

added in API level 6

Get the supported range for intensity adjustment

Returns
Range<Float> float range

public List<Range<Float>> getPictureAdjustmentRanges ()

added in API level 6

Convenience method to get a list of all picture adjustment ranges with a single call.

Returns
List<Range<Float>> List of float ranges

public Range<Float> getSaturationRange ()

added in API level 6

Get the supported range for saturation adjustment

Returns
Range<Float> float range

public Range<Float> getSaturationThresholdRange ()

added in API level 6

Get the supported range for saturation threshold adjustment

Returns
Range<Float> float range

public boolean hasFeature (int feature)

added in API level 6

Checks if a particular feature or mode is supported by the system.

Returns
boolean true if capable

public boolean hasModeSupport ()

added in API level 6

Checks if LiveDisplay has support for adaptive modes.

Returns
boolean true if adaptive modes are available

public boolean isAvailable ()

added in API level 6

Checks if LiveDisplay is available for use on this device.

Returns
boolean true if any feature is enabled

public String toString ()

Returns
String

public void writeToParcel (Parcel out, int flags)

added in API level 6

Parameters
out Parcel
flags int