diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-04-27 09:47:32 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-04-29 12:38:09 -0700 |
commit | 0b4daca9ba54b7252ea8c159218391380eb00c8a (patch) | |
tree | f613c1a320934f01ec040427c84ee00371cb13fe /core/java/android/os/PowerManager.java | |
parent | 5686780404a41901d226cc7ba506c1c0ba284713 (diff) | |
download | frameworks_base-0b4daca9ba54b7252ea8c159218391380eb00c8a.zip frameworks_base-0b4daca9ba54b7252ea8c159218391380eb00c8a.tar.gz frameworks_base-0b4daca9ba54b7252ea8c159218391380eb00c8a.tar.bz2 |
Implement user-settable power save whitelist.
The whitelist is now maintained by DeviceIdleController,
which is moving out into its own independent system service.
Network stats now queries it for the whitelist, instead of
collecting that itself.
Also did a few improvements in alarm manager -- made the
code for moving alarms out of the pending list more robust,
and fixed the debug output to always print the contents of
the pending list even if we aren't in a pending state. (That
would have helped me identify the problem much earlier.)
Change-Id: I0f7119d4c553c3af4d77b2f71246fa6e2c13c561
Diffstat (limited to 'core/java/android/os/PowerManager.java')
-rw-r--r-- | core/java/android/os/PowerManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/PowerManager.java b/core/java/android/os/PowerManager.java index 01c9a21..1d9d7d2 100644 --- a/core/java/android/os/PowerManager.java +++ b/core/java/android/os/PowerManager.java @@ -920,6 +920,14 @@ public final class PowerManager { = "android.os.action.DEVICE_IDLE_MODE_CHANGED"; /** + * @hide Intent that is broadcast when the set of power save whitelist apps has changed. + * This broadcast is only sent to registered receivers. + */ + @SdkConstant(SdkConstant.SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_POWER_SAVE_WHITELIST_CHANGED + = "android.os.action.POWER_SAVE_WHITELIST_CHANGED"; + + /** * Intent that is broadcast when the state of {@link #isPowerSaveMode()} is about to change. * This broadcast is only sent to registered receivers. * |