java.lang.Object | |
↳ | lineageos.power.PerformanceManager |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | POWER_PROFILE_CHANGED | Broadcast sent when profile is changed | |||||||||
int | PROFILE_BALANCED | Balanced power profile The default mode for balanced power savings and performance | |||||||||
int | PROFILE_BIAS_PERFORMANCE | Performance bias profile This mode improves performance at the cost of some power. | |||||||||
int | PROFILE_BIAS_POWER_SAVE | Power save bias profile This mode decreases performance slightly to improve power savings. | |||||||||
int | PROFILE_HIGH_PERFORMANCE | High-performance profile This mode sacrifices power for maximum performance | |||||||||
int | PROFILE_POWER_SAVE | Power save profile This mode sacrifices performance for maximum power saving. | |||||||||
String | TAG |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the currently active performance profile
Returns null if no profiles are available.
| |||||||||||
Returns the number of supported profiles, -1 if unsupported
This is queried via the PowerHAL.
| |||||||||||
Gets the specified power profile
Returns null if power profiles are not enabled or the profile was not found
| |||||||||||
Gets the current power profile
Returns -1 if power profiles are not enabled
| |||||||||||
Gets a set, sorted by weight, of all supported power profiles
Returns an empty set if power profiles are not enabled
| |||||||||||
Set the system power profile
| |||||||||||
Set the system power profile
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Broadcast sent when profile is changed
Balanced power profile The default mode for balanced power savings and performance
Performance bias profile This mode improves performance at the cost of some power.
Power save bias profile This mode decreases performance slightly to improve power savings.
High-performance profile This mode sacrifices power for maximum performance
Power save profile This mode sacrifices performance for maximum power saving.
Gets the currently active performance profile Returns null if no profiles are available.
Returns | |
---|---|
PerformanceProfile |
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
PerformanceManager |
Returns the number of supported profiles, -1 if unsupported This is queried via the PowerHAL.
Returns | |
---|---|
int |
Gets the specified power profile Returns null if power profiles are not enabled or the profile was not found
Parameters | |
---|---|
profile |
int |
Returns | |
---|---|
PerformanceProfile |
Gets the current power profile Returns -1 if power profiles are not enabled
Returns | |
---|---|
int |
Gets a set, sorted by weight, of all supported power profiles Returns an empty set if power profiles are not enabled
Returns | |
---|---|
SortedSet<PerformanceProfile> |
Set the system power profile
Parameters | |
---|---|
profile |
int |
Returns | |
---|---|
boolean |
Throws | |
---|---|
IllegalArgumentException |
if invalid |
Set the system power profile
Parameters | |
---|---|
profile |
PerformanceProfile |
Returns | |
---|---|
boolean |
Throws | |
---|---|
IllegalArgumentException |
if invalid |