java.lang.Object | |
↳ | lineageos.hardware.LineageHardwareManager |
Manages access to LineageOS hardware extensions
This manager requires the HARDWARE_ABSTRACTION_ACCESS permission.
To get the instance of this class, utilize LineageHardwareManager#getInstance(Context context)
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FEATURE_ADAPTIVE_BACKLIGHT | Adaptive backlight support (this refers to technologies like NVIDIA SmartDimmer, QCOM CABL or Samsung CABC) | |||||||||
int | FEATURE_AUTO_CONTRAST | Auto contrast | |||||||||
int | FEATURE_COLOR_BALANCE | Color balance | |||||||||
int | FEATURE_COLOR_ENHANCEMENT | Color enhancement support | |||||||||
int | FEATURE_DISPLAY_COLOR_CALIBRATION | Display RGB color calibration | |||||||||
int | FEATURE_DISPLAY_GAMMA_CALIBRATION | Display gamma calibration | |||||||||
int | FEATURE_DISPLAY_MODES | Display modes | |||||||||
int | FEATURE_HIGH_TOUCH_SENSITIVITY | High touch sensitivity for touch panels | |||||||||
int | FEATURE_KEY_DISABLE | Hardware navigation key disablement | |||||||||
int | FEATURE_LONG_TERM_ORBITS | Long term orbits (LTO) | |||||||||
int | FEATURE_PICTURE_ADJUSTMENT | HSIC picture adjustment | |||||||||
int | FEATURE_SERIAL_NUMBER | Serial number other than ro.serialno | |||||||||
int | FEATURE_SUNLIGHT_ENHANCEMENT | Increased display readability in bright light | |||||||||
int | FEATURE_TOUCHSCREEN_GESTURES | Touchscreen gesture | |||||||||
int | FEATURE_TOUCH_HOVERING | Touchscreen hovering | |||||||||
int | FEATURE_VIBRATOR | Variable vibrator intensity |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine if the given feature is enabled or disabled.
| |||||||||||
Gets the default picture adjustment for the current mode
| |||||||||||
This method was deprecated
in API level 8.
No replacement.
| |||||||||||
This method was deprecated
in API level 8.
No replacement.
| |||||||||||
This method was deprecated
in API level 8.
No replacement.
| |||||||||||
Get or create an instance of the
LineageHardwareManager
| |||||||||||
This method was deprecated
in API level 8.
No replacement.
| |||||||||||
Gets the current picture adjustment values
| |||||||||||
Get a list of ranges valid for picture adjustment.
| |||||||||||
Determine if a Lineage Hardware feature is supported on this device
| |||||||||||
Enable or disable the given feature
Only used for features which have simple enable/disable controls.
| |||||||||||
Sets the desired color balance.
| |||||||||||
Set the display color calibration to the given rgb triplet
| |||||||||||
This method was deprecated
in API level 8.
No replacement.
| |||||||||||
Sets the desired hue/saturation/intensity/contrast
| |||||||||||
Set the current vibrator intensity
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adaptive backlight support (this refers to technologies like NVIDIA SmartDimmer, QCOM CABL or Samsung CABC)
Auto contrast
Color balance
Color enhancement support
Display RGB color calibration
Display gamma calibration
Display modes
High touch sensitivity for touch panels
Hardware navigation key disablement
Long term orbits (LTO)
HSIC picture adjustment
Serial number other than ro.serialno
Increased display readability in bright light
Touchscreen gesture
Touchscreen hovering
Variable vibrator intensity
Determine if the given feature is enabled or disabled. Only used for features which have simple enable/disable controls.
Parameters | |
---|---|
feature |
int : the Lineage Hardware feature to query |
Returns | |
---|---|
boolean |
true if the feature is enabled, false otherwise. |
Returns | |
---|---|
Range<Integer> |
the available range for color temperature adjustments |
Returns | |
---|---|
DisplayMode |
the currently active display mode |
Returns | |
---|---|
DisplayMode |
the default display mode to be set on boot |
Gets the default picture adjustment for the current mode
Returns | |
---|---|
HSIC |
HSIC object with default settings |
Returns | |
---|---|
int[] |
the current RGB calibration, where int[0] = R, int[1] = G, int[2] = B. |
Returns | |
---|---|
int |
the default value for all colors |
Returns | |
---|---|
int |
The minimum value for all colors |
Returns | |
---|---|
int |
The minimum value for all colors |
This method was deprecated
in API level 8.
No replacement.
Parameters | |
---|---|
idx |
int : the control to query |
Returns | |
---|---|
int[] |
the current RGB gamma calibration for the given control |
This method was deprecated
in API level 8.
No replacement.
Returns | |
---|---|
int |
the maximum value for all colors |
This method was deprecated
in API level 8.
No replacement.
Returns | |
---|---|
int |
the minimum value for all colors |
Returns | |
---|---|
DisplayMode[] |
a list of available display modes on the devices |
Get or create an instance of the LineageHardwareManager
Returns | |
---|---|
LineageHardwareManager |
LineageHardwareManager
|
Returns | |
---|---|
String |
the destination location of LTO data, or null on failure |
Returns | |
---|---|
long |
the interval, in milliseconds, to trigger LTO data download |
Returns | |
---|---|
String |
the source location of LTO data, or null on failure |
This method was deprecated
in API level 8.
No replacement.
Returns | |
---|---|
int |
the number of RGB controls the device supports |
Gets the current picture adjustment values
Returns | |
---|---|
HSIC |
HSIC object with current settings |
Get a list of ranges valid for picture adjustment.
Returns | |
---|---|
List<Range<Float>> |
range list |
Returns | |
---|---|
String |
the serial number to display instead of ro.serialno, or null on failure |
Returns | |
---|---|
TouchscreenGesture[] |
a list of available touchscreen gestures on the devices |
Returns | |
---|---|
int |
The default vibrator intensity. |
Returns | |
---|---|
int |
The maximum vibrator intensity. |
Returns | |
---|---|
int |
The minimum vibrator intensity. |
Returns | |
---|---|
int |
The warning threshold vibrator intensity. |
Returns | |
---|---|
boolean |
true if this implementation does it's own lux metering |
Determine if a Lineage Hardware feature is supported on this device
Parameters | |
---|---|
feature |
int : The Lineage Hardware feature to query |
Returns | |
---|---|
boolean |
true if the feature is supported, false otherwise. |
Returns | |
---|---|
boolean |
true if adaptive backlight should be enabled when sunlight enhancement is enabled. |
Enable or disable the given feature Only used for features which have simple enable/disable controls.
Parameters | |
---|---|
feature |
int : the Lineage Hardware feature to set |
enable |
boolean : true to enable, false to disale |
Returns | |
---|---|
boolean |
true if the feature is enabled, false otherwise. |
Sets the desired color balance. Must fall within the range obtained from getColorBalanceRange()
Returns | |
---|---|
boolean |
true if success |
Set the display color calibration to the given rgb triplet
Parameters | |
---|---|
rgb |
int : RGB color calibration. Each value must be between
getDisplayColorCalibrationMin() and getDisplayColorCalibrationMax() ,
inclusive. |
Returns | |
---|---|
boolean |
true on success, false otherwise. |
This method was deprecated
in API level 8.
No replacement.
Set the display gamma calibration for a specific control
Parameters | |
---|---|
idx |
int : the control to set |
rgb |
int : RGB color calibration. Each value must be between
getDisplayGammaCalibrationMin() and getDisplayGammaCalibrationMax() ,
inclusive. |
Returns | |
---|---|
boolean |
true on success, false otherwise. |
Parameters | |
---|---|
mode |
DisplayMode |
makeDefault |
boolean |
Returns | |
---|---|
boolean |
true if setting the mode was successful |
Sets the desired hue/saturation/intensity/contrast
Returns | |
---|---|
boolean |
true if success |
Parameters | |
---|---|
gesture |
TouchscreenGesture |
state |
boolean |
Returns | |
---|---|
boolean |
true if setting the activation status was successful |
Set the current vibrator intensity
Parameters | |
---|---|
intensity |
int : the intensity to set, between getVibratorMinIntensity() and
getVibratorMaxIntensity() inclusive. |
Returns | |
---|---|
boolean |
true on success, false otherwise. |