java.lang.Object | |
↳ | cyanogenmod.hardware.CMHardwareManager |
Manages access to CyanogenMod hardware extensions
This manager requires the HARDWARE_ABSTRACTION_ACCESS permission.
To get the instance of this class, utilize CMHardwareManager#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_PERSISTENT_STORAGE | Persistent storage | |||||||||
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_TAP_TO_WAKE | Double-tap the touch panel to wake up the device | |||||||||
int | FEATURE_THERMAL_MONITOR | Thermal change monitor | |||||||||
int | FEATURE_TOUCH_HOVERING | Touchscreen hovering | |||||||||
int | FEATURE_UNIQUE_DEVICE_ID | Unique device ID | |||||||||
int | FEATURE_VIBRATOR | Variable vibrator intensity |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete an object from persistent storage
| |||||||||||
Determine if the given feature is enabled or disabled.
| |||||||||||
Gets the default picture adjustment for the current mode
| |||||||||||
Get or create an instance of the
CMHardwareManager
| |||||||||||
Gets the current picture adjustment values
| |||||||||||
Get a list of ranges valid for picture adjustment.
| |||||||||||
Determine if a CM Hardware feature is supported on this device
| |||||||||||
Read a byte array from persistent storage
| |||||||||||
Read an integer from persistent storage
| |||||||||||
Read a string from persistent storage
| |||||||||||
Register a callback to be notified of thermal state changes
| |||||||||||
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
| |||||||||||
Set the display gamma calibration for a specific control
| |||||||||||
Sets the desired hue/saturation/intensity/contrast
| |||||||||||
Set the current vibrator intensity
| |||||||||||
Unregister a callback previously registered to be notified of thermal state changes
| |||||||||||
Write a byte array to persistent storage, which persists thru factory reset
| |||||||||||
Write an integer to persistent storage, which persists thru factory reset
| |||||||||||
Write a string to persistent storage, which persists thru factory reset
|
[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)
Persistent storage
HSIC picture adjustment
Serial number other than ro.serialno
Increased display readability in bright light
Double-tap the touch panel to wake up the device
Thermal change monitor
Touchscreen hovering
Unique device ID
Variable vibrator intensity
Delete an object from persistent storage
key | String identifier for this item |
---|
Determine if the given feature is enabled or disabled. Only used for features which have simple enable/disable controls.
feature | the CM Hardware feature to query |
---|
Gets the default picture adjustment for the current mode
idx | the control to query |
---|
Get or create an instance of the CMHardwareManager
Gets the current picture adjustment values
Get a list of ranges valid for picture adjustment.
ThermalListenerCallback.State
Determine if a CM Hardware feature is supported on this device
feature | The CM Hardware feature to query |
---|
Read a byte array from persistent storage
key | String identifier for this item. Must not exceed 64 characters. |
---|
Read an integer from persistent storage
key | String identifier for this item. Must not exceed 64 characters. |
---|
Read a string from persistent storage
key | String identifier for this item. Must not exceed 64 characters. |
---|
Register a callback to be notified of thermal state changes
Enable or disable the given feature Only used for features which have simple enable/disable controls.
feature | the CM Hardware feature to set |
---|---|
enable | true to enable, false to disale |
Sets the desired color balance. Must fall within the range obtained from getColorBalanceRange()
Set the display color calibration to the given rgb triplet
rgb | RGB color calibration. Each value must be between
getDisplayColorCalibrationMin() and getDisplayColorCalibrationMax() ,
inclusive. |
---|
Set the display gamma calibration for a specific control
idx | the control to set |
---|---|
rgb | RGB color calibration. Each value must be between
getDisplayGammaCalibrationMin() and getDisplayGammaCalibrationMax() ,
inclusive. |
Sets the desired hue/saturation/intensity/contrast
Set the current vibrator intensity
intensity | the intensity to set, between getVibratorMinIntensity() and
getVibratorMaxIntensity() inclusive. |
---|
Unregister a callback previously registered to be notified of thermal state changes
Write a byte array to persistent storage, which persists thru factory reset
key | String identifier for this item. Must not exceed 64 characters. |
---|---|
value | The byte array to store, must be 1-4096 bytes. null deletes the key/value pair. |
Write an integer to persistent storage, which persists thru factory reset
key | String identifier for this item. Must not exceed 64 characters. |
---|---|
value | The integer to store |
Write a string to persistent storage, which persists thru factory reset
key | String identifier for this item. Must not exceed 64 characters. |
---|---|
value | The UTF-8 encoded string to store of at least 1 character. null deletes the key/value pair. |