java.lang.Object | |
↳ | lineageos.hardware.LiveDisplayManager |
LiveDisplay is an advanced set of features for improving display quality under various ambient conditions. The backend service is constructed with a set of LiveDisplayFeatures which provide capabilities such as outdoor mode, night mode, and calibration. It interacts with LineageHardwareService to relay changes down to the lower layers. Multiple adaptive modes are supported, and various hardware features such as CABC, ACO and color enhancement are also managed by LiveDisplay.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ADJUSTMENT_CONTRAST | ||||||||||
int | ADJUSTMENT_HUE | ||||||||||
int | ADJUSTMENT_INTENSITY | ||||||||||
int | ADJUSTMENT_SATURATION | ||||||||||
int | FEATURE_AUTO_CONTRAST | Adjust images to increase contrast | |||||||||
int | FEATURE_CABC | Content adaptive backlight control, adjust images to increase brightness in order to reduce backlight level | |||||||||
int | FEATURE_COLOR_ADJUSTMENT | Capable of adjusting RGB levels | |||||||||
int | FEATURE_COLOR_BALANCE | System supports direct range-based control of display color balance (temperature). | |||||||||
int | FEATURE_COLOR_ENHANCEMENT | Adjust image to improve saturation and color | |||||||||
int | FEATURE_DISPLAY_MODES | System supports multiple display calibrations for different viewing intents. | |||||||||
int | FEATURE_MANAGED_OUTDOOR_MODE | System supports outdoor mode, but environmental sensing is done by an external application. | |||||||||
int | FEATURE_PICTURE_ADJUSTMENT | System supports manual hue/saturation/intensity/contrast adjustment of display. | |||||||||
int | MODE_AUTO | Enable automatic detection of appropriate mode | |||||||||
int | MODE_DAY | Change color temperature to day mode, and allow detection of outdoor conditions | |||||||||
int | MODE_NIGHT | Change color temperature to night mode | |||||||||
int | MODE_OFF | Disable all LiveDisplay adaptive features | |||||||||
int | MODE_OUTDOOR | Increase brightness/contrast/saturation for sunlight |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the current RGB triplet which is applied as a color adjustment.
| |||||||||||
Gets the static configuration and settings.
| |||||||||||
Gets the user-specified color temperature to use in the daytime.
| |||||||||||
Gets the default picture adjustment for the current display mode
| |||||||||||
Get or create an instance of the
LiveDisplayManager
| |||||||||||
Returns the current adaptive mode.
| |||||||||||
Gets the user-specified color temperature to use at night.
| |||||||||||
Gets the current picture adjustment settings (hue, saturation, intensity, contrast)
| |||||||||||
Checks if the auto contrast optimization feature is enabled.
| |||||||||||
Checks if outdoor mode should be enabled automatically when under extremely high
ambient light.
| |||||||||||
Checks if the CABC feature is enabled
| |||||||||||
Checks if the color enhancement feature is enabled
| |||||||||||
Determine whether night mode is enabled (be it automatic or manual)
| |||||||||||
Sets the state of auto contrast optimization
| |||||||||||
Enables automatic detection of outdoor conditions.
| |||||||||||
Sets the state of CABC
| |||||||||||
Sets the color adjustment to use.
| |||||||||||
Sets the state of color enhancement
| |||||||||||
Sets the color temperature to use in the daytime.
| |||||||||||
Selects a new adaptive mode.
| |||||||||||
Sets the color temperature to use at night.
| |||||||||||
Sets a new picture adjustment
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adjust images to increase contrast
Content adaptive backlight control, adjust images to increase brightness in order to reduce backlight level
Capable of adjusting RGB levels
System supports direct range-based control of display color balance (temperature). This is preferred over simple RGB adjustment.
Adjust image to improve saturation and color
System supports multiple display calibrations for different viewing intents.
System supports outdoor mode, but environmental sensing is done by an external application.
System supports manual hue/saturation/intensity/contrast adjustment of display.
Enable automatic detection of appropriate mode
Change color temperature to day mode, and allow detection of outdoor conditions
Change color temperature to night mode
Disable all LiveDisplay adaptive features
Increase brightness/contrast/saturation for sunlight
Gets the current RGB triplet which is applied as a color adjustment. The values are floats between 0 and 1. A setting of { 1.0, 1.0, 1.0 } means that no adjustment is made.
Returns | |
---|---|
float[] |
array of { R, G, B } offsets |
Gets the static configuration and settings.
Returns | |
---|---|
LiveDisplayConfig |
the configuration |
Gets the user-specified color temperature to use in the daytime.
Returns | |
---|---|
int |
the day color temperature |
Gets the default picture adjustment for the current display mode
Returns | |
---|---|
HSIC |
HSIC object with default values |
Get or create an instance of the LiveDisplayManager
Returns | |
---|---|
LiveDisplayManager |
LiveDisplayManager
|
Returns the current adaptive mode.
Returns | |
---|---|
int |
id of the selected mode |
Gets the user-specified color temperature to use at night.
Returns | |
---|---|
int |
the night color temperature |
Gets the current picture adjustment settings (hue, saturation, intensity, contrast)
Returns | |
---|---|
HSIC |
HSIC object with current settings |
Checks if the auto contrast optimization feature is enabled.
Returns | |
---|---|
boolean |
true if enabled |
Checks if outdoor mode should be enabled automatically when under extremely high ambient light. This is typically around 12000 lux.
Returns | |
---|---|
boolean |
if outdoor conditions should be detected |
Checks if the CABC feature is enabled
Returns | |
---|---|
boolean |
true if enabled |
Checks if the color enhancement feature is enabled
Returns | |
---|---|
boolean |
true if enabled |
Determine whether night mode is enabled (be it automatic or manual)
Returns | |
---|---|
boolean |
Sets the state of auto contrast optimization
Returns | |
---|---|
boolean |
true if state was changed |
Enables automatic detection of outdoor conditions. Outdoor mode is triggered when high ambient light is detected and it's not night.
Returns | |
---|---|
boolean |
true if state was changed |
Sets the state of CABC
Returns | |
---|---|
boolean |
true if state was changed |
Sets the color adjustment to use. This can be set by the user to calibrate their screen. This should be sent in the format { R, G, B } as floats from 0 to 1. A setting of { 1.0, 1.0, 1.0 } means that no adjustment is made. The hardware implementation may refuse certain values which make the display unreadable, such as { 0, 0, 0 }. This calibration will be combined with other internal adjustments, such as night mode, if necessary.
Parameters | |
---|---|
adj |
float |
Returns | |
---|---|
boolean |
true if state was changed |
Sets the state of color enhancement
Returns | |
---|---|
boolean |
true if state was changed |
Sets the color temperature to use in the daytime.
Returns | |
---|---|
boolean |
true if state was changed |
Selects a new adaptive mode.
Returns | |
---|---|
boolean |
true if the mode was selected |
Sets the color temperature to use at night.
Returns | |
---|---|
boolean |
true if state was changed |
Sets a new picture adjustment
Returns | |
---|---|
boolean |
true if success |