java.lang.Object | |
↳ | cyanogenmod.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the number of supported profiles, -1 if unsupported
This is queried via the PowerHAL.
| |||||||||||
Gets the current power profile
Returns null if power profiles are not enabled
| |||||||||||
Check if profile has app-specific profiles
Returns true if profile has app-specific profiles.
| |||||||||||
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.
Returns the number of supported profiles, -1 if unsupported This is queried via the PowerHAL.
Gets the current power profile Returns null if power profiles are not enabled
Check if profile has app-specific profiles Returns true if profile has app-specific profiles.
Set the system power profile
IllegalArgumentException | if invalid |
---|