diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-05-08 17:21:48 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-05-11 15:16:47 -0700 |
commit | 8d66b3fbf5d8036e25d64a8472bcd2b6b7892a1a (patch) | |
tree | cc4aa1432f4abecd3b7d34275945a0c1c678fd34 /api/current.txt | |
parent | cfd6e9dfd063cba795497f251aa6f7fe2554f10b (diff) | |
download | frameworks_base-8d66b3fbf5d8036e25d64a8472bcd2b6b7892a1a.zip frameworks_base-8d66b3fbf5d8036e25d64a8472bcd2b6b7892a1a.tar.gz frameworks_base-8d66b3fbf5d8036e25d64a8472bcd2b6b7892a1a.tar.bz2 |
Implement device idle in power manager.
When in device idle mode, we now prevent most apps
from being able to hold partial wake locks. The
device idle controller now pushes its white list of
app uids into the power manager, so it can apply this
policy correctly to only apps that are not whitelisted.
The implementation adds a new "disabled" flag to a wake
lock which is set when we want to apply this policy. When
set, we ensure that we tell battery stats that the wake lock
is not being held and ignore that wake lock when computing
the power state summary.
Also add new SDK APIs to schedule alarms that are allowed
to execute while in idle mode.
Finally add new dumpsys commands to the device idle controller
to completely disable and re-enable its operation, to use
for testing.
Change-Id: I1f16672c6ac06d03bb538f9854d5843db9aa6f27
Diffstat (limited to 'api/current.txt')
-rw-r--r-- | api/current.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 0ef4766..99db3c5 100644 --- a/api/current.txt +++ b/api/current.txt @@ -3762,7 +3762,9 @@ package android.app { method public android.app.AlarmManager.AlarmClockInfo getNextAlarmClock(); method public void set(int, long, android.app.PendingIntent); method public void setAlarmClock(android.app.AlarmManager.AlarmClockInfo, android.app.PendingIntent); + method public void setAndAllowWhileIdle(int, long, android.app.PendingIntent); method public void setExact(int, long, android.app.PendingIntent); + method public void setExactAndAllowWhileIdle(int, long, android.app.PendingIntent); method public void setInexactRepeating(int, long, long, android.app.PendingIntent); method public void setRepeating(int, long, long, android.app.PendingIntent); method public void setTime(long); |