| java.lang.Object | |
| ↳ | cyanogenmod.profiles.BrightnessSettings |
The BrightnessSettings class allows for overriding and setting the brightness level
of the display. The range for brightness is between 0 -> 255.
Example for setting the brightness to ~25% (255 * .25):
BrightnessSettings twentyFivePercent = new BrightnessSettings(63, true) profile.setBrightness(twentyFivePercent);
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Unwrap
BrightnessSettings from a parcel.
| |||||||||||
Construct a
BrightnessSettings with a default value of 0.
| |||||||||||
Construct a
BrightnessSettings with a default value and whether or not it should
override user settings.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the default value for the
BrightnessSettings
| |||||||||||
Check whether or not the
BrightnessSettings overrides user settings.
| |||||||||||
Set whether or not the
BrightnessSettings should override default user values
| |||||||||||
Set the default value for the
BrightnessSettings
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Unwrap BrightnessSettings from a parcel.
Construct a BrightnessSettings with a default value of 0.
Construct a BrightnessSettings with a default value and whether or not it should
override user settings.
| value | ex: 255 (MAX) |
|---|---|
| override | whether or not the setting should override user settings |
Get the default value for the BrightnessSettings
Check whether or not the BrightnessSettings overrides user settings.
Set whether or not the BrightnessSettings should override default user values
| override | boolean override |
|---|
Set the default value for the BrightnessSettings
| value | ex: 255 (MAX) |
|---|