4870e9d5eba59fb257a87f97f1adf0b734cf48d3 |
|
09-Apr-2015 |
Dianne Hackborn <hackbod@google.com> |
More work on device idle mode and other power stuff. Add idle mode support to the alarm manager. Introduce a new concept of flags associated with alarms to tell the alarm manager how to treat the alarm -- they allow everything from the alarm that will bring us out of idle mode, to alarms that are allowed when idle or should also bring us out of idle. The standalone boolean is now also a flag. (Note there is currently no protection from user space setting the flags however it wants; I will be working on that in a follow-up change.) When in idle mode, the alarm manager pushes all alarms that shouldn't execute during that time over to a separate list that is not executed until out of idle. To help with this, I reworked a bit how Alarm objects are managed, so that when rebatching or moving between lists we don't have to allocated new objects but can just use the same existing instance. Also tweaked the sync manager to deal with idle mode, which currently just means doing the same thing as when low on storage -- turning off sync. Add new ACTION_CHARGING and ACTION_DISCHARGING broadcasts that apps can listen for to know when the device is actively charging and discharging. These are better than the old POWER_CONNECTED and POWER_DISCONNECTED ones because we only report charging when we actually see that there is enough power being provided to charge the battery (and will report discharging if there is not enough power). The job controller uses these new actions for scheduling jobs that want to run while plugged in. Removed the "stable charging" stuff while doing so, since the new charging state serves as an even better signal for that. Introduced two new process states: FOREGROUND_SERVICE and TOP_SLEEPING. This will allow us to treat foreground services specially (such as still allowing network access to them for background music playback) while not mixing them together with whatever happens to be the top activity while the device is asleep. Also some other small cleanup here and there. Change-Id: I7a9808b578bad6f50deb8e1baf919298512a0d3a
/frameworks/base/core/java/android/os/BatteryManager.java
|
6e53931f49f49245deef8622eb8e7dc6ccf04536 |
|
25-Feb-2015 |
Jeff Brown <jeffbrown@google.com> |
Add Context.getSystemService(Class<?>). Added an overload of getSystemService() that takes a class instead of a service name to eliminate the extra cast and provide more type safety. Cleaned up docs. Removed the default constructor of BatteryManager which should not have existed. Change-Id: I9da46b20641fc83ecd3342560e5b94cb721f289c
/frameworks/base/core/java/android/os/BatteryManager.java
|
5fde3ff375e6cec3c11ddef7a4650d5f5f4942d1 |
|
05-Jun-2014 |
Todd Poynor <toddpoynor@google.com> |
BatteryManager: battery property query API update Move battery property value accessors to BatteryManager. Hide BatteryProperty class. Bug: 15191190 Change-Id: Ic021e6e28a8bc30c145ccc31b3a3446ba82d2004
/frameworks/base/core/java/android/os/BatteryManager.java
|
540f4d6db34905b38ee1095ef35fe98d3fa38a9e |
|
09-May-2014 |
Todd Poynor <toddpoynor@google.com> |
BatteryManager: Add property ENERGY_COUNTER and long data type properties Change-Id: Ie7f9b19c5cd47a48bb33af03d51acddaa14b0243
/frameworks/base/core/java/android/os/BatteryManager.java
|
e35872da97ac6bd07d2d9ac5af8a7c18ad290718 |
|
10-Dec-2013 |
Todd Poynor <toddpoynor@google.com> |
BatteryManager: Add API and service for battery property retrieval Add service "batterymanager" and method getProperty to retrieve battery properties. This is a public API. Make BatteryProperty public. Cleanups for public-facing API. Change-Id: I3637d131aabe4811dff40661728d5353eaf854c4
/frameworks/base/core/java/android/os/BatteryManager.java
|
a4d8204e3068b9d8d6908d4cf3440e81967867a3 |
|
03-Oct-2012 |
Jeff Brown <jeffbrown@google.com> |
Fix some synchronization issues in BatteryService. Some of the BatteryService state was being locked sometimes and it wasn't at all consistent. Bug: 7158734 Change-Id: I46e75f66fde92c5a577a80a6bd99c9573066f3c1
/frameworks/base/core/java/android/os/BatteryManager.java
|
37a37f445cbcd64376af153dd79ea2a123d9405d |
|
15-Aug-2012 |
Brian Muramatsu <btmura@google.com> |
add wireless charger support bug: 6879638 - add new enum value BATTERY_PLUGGED_WIRELESS - check for sys online file with contents "Wireless" Change-Id: I22dc3c40f50573c98643e7b5cbcb237d0216530d
/frameworks/base/core/java/android/os/BatteryManager.java
|
4ca7f1e2811dc889e526de6c3d30bac8501c23d2 |
|
28-Oct-2010 |
Joe Onorato <joeo@google.com> |
Implement reminder power dialog and invalid charger dialog. Bug: 2510318 Bug: 2974431 Change-Id: I92eb419eeffb657e5572a35a490735a96b303d6b
/frameworks/base/core/java/android/os/BatteryManager.java
|
02241ab2929c34aa48acdf4befcc9cacd86c1a6f |
|
12-Oct-2010 |
Jean-Baptiste Queru <jbq@google.com> |
am 89fbcd72: resolved conflicts for merge of c2894474 to gingerbread-plus-aosp Merge commit '89fbcd72fbe6ef26ea2703f8e338fd198c958ecc' * commit '89fbcd72fbe6ef26ea2703f8e338fd198c958ecc': Support showing "Cold" battery health.
|
9239612870d08fbf79b3c53f11bd5d7cb4beb875 |
|
20-Sep-2010 |
Imre Sunyi <imre.sunyi@sonyericsson.com> |
Support showing "Cold" battery health. The Linux kernel supports reporting "cold" battery health to sysfs. Android framework has not implemented this and it defaults to "unknown" This adds handling the cold battery health. Change-Id: Idcc156aae6aabce73391081143f79d052edf332e
/frameworks/base/core/java/android/os/BatteryManager.java
|
deff9c85ec5c9884d731817e43058589d6fd4631 |
|
04-Sep-2010 |
Mike Lockwood <lockwood@android.com> |
Add extra to ACTION_BATTERY_CHANGED to indicate an invalid charger is attached. Change-Id: I24a24a49d2e3ddee8fbce590ef75ea323b3be97b Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/os/BatteryManager.java
|
edd9316ca9b3b24d54e8a2468927da7e813098fc |
|
19-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Add better APIs for the battery status, and other cleanup. Also add new configs for keeping screen on while docked, which will be used elsewhere. Change-Id: Ifaa1118f14fd850ac809895f9a5c9e8c413259b8
/frameworks/base/core/java/android/os/BatteryManager.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/os/BatteryManager.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/os/BatteryManager.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/os/BatteryManager.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/android/os/BatteryManager.java
|