6ccaa540a18a69e5343e3e4d507f341880fcde5a |
|
16-Jun-2012 |
Nick Pelly <npelly@google.com> |
Include WIFI scan's in Battery Stats. Call noteWifiScanStartedFromSource() when a scan is started. Call noteWifiScanStoppedFromSource() when a scan is finished. The current implementation tracks to UID that requested the scan, and correctly tracks the duration of the scan. It ignores scan requests that occur when a scan is already in progress. It does not distinguish between active and passive scans. Repurpose all the noteScanWifiLockAcquired/Released() plumbing for WIFI scan tracking. The WIFI scan locks were never reported to the user. Use noteFullWifiLock() when WIFI scan locks are used - this makes sense because the power draw for a WIFI scan lock should be about the same as for a full WIFI lock. Bug: 6642581 Change-Id: Ida6e87992853698545b89f875c973a239218317d
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
1059c3c30ad96a15695c1a92ae8896e078a6309f |
|
05-Oct-2011 |
Jeff Sharkey <jsharkey@android.com> |
Move battery stats to xt_qtaguid for data stats. Replace TrafficStats calls by reading values from xt_qtaguid kernel module. To keep BatteryStatsImpl changes lightweight, cache recently parsed stats. Tracks mobile ifaces from ConnectivityService. Refactor xt_qtaguid parsing into factory outside of NMS. Add stats grouping based on UID, and total based on limiting filters like iface prefix and UID. Bug: 4902271 Change-Id: I533f116c434b77f93355bf95b839e7478528505b
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
58e0eefeb5e2e270e2b04369bbf29fc22abda8d5 |
|
16-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
Improve power tracking of WIFI use. We now distribute "wifi started" time across all apps that are holding WIFI locks that cause it to be started. But only when WIFI would not normally be running. Also have a mechanism to distribute other WIFI work that has happened across those processes based on their use. Also fixed a bug where we were not retaining the CPU speed step stats across boots...! Change-Id: I00e3153b98429166273750512cc37e7975211ab9
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
7e9f4eb2608148436cef36c9969bf8a599b39e72 |
|
11-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
Track client requests through location manager. This fixes a problem where applications could ask the location manager to do very heavy-weight things (like... say... update location every minute), which would get accounted against the system instead of the application because ultimately it is the system making the heavy calls (wake locks, etc). To solve this, we introduce a new class WorkSource representing the source of some work. Wake locks and Wifi locks allow you to set the source to use (but only if you are system code and thus can get the permission to do so), which is what will be reported to the battery stats until the actual caller. For the initial implementation, the location manager keeps track of all clients requesting periodic updates, and tells its providers about them as a WorkSource param when setting their min update time. The network location provider uses this to set the source on the wake and wifi locks it acquires, when doing work because of the update period. This should also be used elsewhere, such as in the GPS provider, but this is a good start. Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
9adb9c3b10991ef315c270993f4155709c8a232d |
|
13-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Various battery info things: - Now track wake locks in battery history. - Now track sensors in battery history. - Some filtering of sensory data. - Fixes to some data that wasn't cleared when resetting battery stats. - Print amount discharged since last charge. And the big part -- keep track of wake locks held per process, and kill processes that hold wake locks too much while they are in the background. This includes information in the battery stats about the process being killed, which will be available to the developer if the app is reported. Change-Id: I97202e94d00aafe0526ba2db74a03212e7539c54
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
32123fde1b82fc7f5d04f35e2b972364d4352ec9 |
|
23-Jul-2010 |
Mathias Agopian <mathias@google.com> |
Report sensor events to BatteryStats service Change-Id: I9b83aa709887aa658bc474391573f2d45b6c4eb2
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
6b7b4845212b3a439c527f2e1eca205b6b45fceb |
|
15-Jun-2010 |
Dianne Hackborn <hackbod@google.com> |
Various improvements to battery stats collection We now clear the battery stats when unplugging after the battery is full. This allows us to use the "total" stats as a new "since last charged" stat. Total is gone. I never used it, it was worthless. Since last charged is a lot more interesting. The battery history now collects a lot more stats, and keeps control over how much it can collect. Printing is now more descriptive. The kinds of stats have been renamed to SINCE_UNPLUGGED and SINCE_DISCHARGED. The other two stats are still there, but no longer printed; a future change will eliminate them completely along with all of their state. Change-Id: I4e9fcfcf8c30510092c76a8594f6021e9502fbc1
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
f37447bad3773b62176baa837908daf6edb44273 |
|
09-Oct-2009 |
Amith Yamasani <yamasani@google.com> |
Proper fix for zero signal strength and no_service. Fixes #2176141 Track phone service state changes and use a separate timer for out-of-service since the hunting can timeout on some devices. Store the timeout value in the config.xml, as it is device/network specific. Settings App will also change to use the hunting duration to compute the cost of zero signal.
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
32dbefda71c50bf848da21fb5d1255273439f90d |
|
19-Jun-2009 |
Amith Yamasani <yamasani@google.com> |
Track native processes and airplane mode. Turn signal strengths on/off when toggling airplane mode.
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
e9b06d754af03faf27012fbed1e7559ec1ba7c79 |
|
19-May-2009 |
Wink Saville <wink@google.com> |
Teleca 2b changes
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
5347bd4cda2b6afc18f8acab48e52131f35ed13c |
|
14-May-2009 |
Robert Greenwalt <robdroid@android.com> |
Add wifi multicast filter api (enable/disable). Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
633a1740ce5951ccb5d478ba2795f6f4fada1646 |
|
03-Apr-2009 |
Evan Millar <> |
AI 144333: Change the way the battery level tracking code works in BatteryStats. Before we simply kept track of the last 2 levels as recorded at plug and unplug events. During charge cycles this would be useful because it would tell us what the start and end levels were in the last discharge cycle. However during a discharge cycle this information could be misleading as it would give you the level at the last unplug event (beginning the the discharge cycle) and last plug event (end of the previous discharge cycle). Now we are still keeping track of 2 values, but they are "discharge cycle start level" and "discharge cycle current level". During a discharge cycle this will give you the level the current discharge cycle started at, and the current level. During a charge cycle the same data will be supplied as before (the start/end of the last discharge cycle). B=144249 Automated import of CL 144333
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
617f877c06c82584a38f41bb60d836e08c5e3bda |
|
01-Apr-2009 |
Dianne Hackborn <> |
AI 143800: am: CL 143748 Fix issue #1743326 (More battery stats) Adds stats for: - Number of raw user events that have happened in the system. - Number of times user activity has been reported, dividied by UID and type of activity. - Duration of screen brightness levels in 4 buckets. - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them. Original author: hackbod Merged from: //branches/cupcake/... Automated import of CL 143800
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
627bba736d022c39696b7c582a6af5592d2b8c33 |
|
25-Mar-2009 |
Dianne Hackborn <> |
Automated import from //branches/donutburger/...@142347,142347
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
d4c5f8919b0522bcaab41a5863c313fec52d3a79 |
|
25-Mar-2009 |
Eric Shienbrood <> |
Automated import from //branches/donutburger/...@140679,140679
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
105925376f8d0f6b318c9938c7b83ef7fef094da |
|
19-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake_rel/...@140373
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
076357b8567458d4b6dfdcf839ef751634cd2bfb |
|
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@132589
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
3dec7d563a2f3e1eb967ce2054a00b6620e3558c |
|
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@137055
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
3001a035439d8134a7d70d796376d1dfbff3cdcd |
|
19-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/com/android/internal/app/IBatteryStats.aidl
|