Comments (3)
Froyo
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2.1_r1/android/os/BatteryStats.java#BatteryStats
public static final int STATS_TOTAL = 0;
public static final int STATS_LAST = 1;
public static final int STATS_CURRENT = 2;
public static final int STATS_UNPLUGGED = 3;
Gingerbread
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.3_r1/android/os/BatteryStats.java#BatteryStats
public static final int STATS_SINCE_CHARGED = 0;
public static final int STATS_LAST = 1;
public static final int STATS_CURRENT = 2;
public static final int STATS_SINCE_UNPLUGGED = 3;
from betterbatterystats.
Hi Sven
I'm currently tracking the performance of my new "2200mAh" battery. Currently it seems to be doing surprisingly well. I did notice that BBS is reporting the "since unplugged" time as 17h 47m, whereas I know that I took the new battery off charge over 24 hours ago. I did reboot the phone half way through yesterday afternoon, which seems suspisciously close to the time that BBS is reporting as "since unplugged". Maybe those different stats options need a bit more thinking about after all...
I've also been comparing the numbers out of BBS and Spare Parts' Battery History (recall that I am running Froyo). Firstly, the "awake"/"running" vs "screen on" times don't quite tally. BBS reports awake time as 3h 18m, with screen on time 24m 9s. Battery History reports running time as 18.% with screen on time as 2.3%. The proportions of the two sets of stats don't quite match: the raio of awake to screen on as reported by BBS is 8.08, whereas with Battery History it is 8.25. (Either way, it looks too high for comfort.)
When I go in to examine the wakelocks, I get the following:
Code:
BBS Battery History
ProviderThread 12m 30s 13m 16s
Alarm Manager 3m 15s 7m 41s
SyncDataListener 2m 2s 3m 7s
GTALK_ASYNC_CONN 1m 51s 2m 32s
It occurs to me that these discrepancies could also be due to the different baselines that BBS and Battery History are using for "since unplugged".
I do realise, by the way, that you developed BBS for Gingerbread users and it's not wholly reasonable for me to ask for it to work 100% on Froyo, so please don't regard this as a priority bug. It's more of an observation, motivated by the fact that BBS presents the information in a much more helpful way than Battery History does. For example, you manage to provide informative process names; in contrast, Battery History reported ProviderThread and GTALK_AYNC_CONN as UID 10002 and UID 10015 respectively, which is not very helpful. Also, in Battery History you have to tap on the process in the list to see the wakelock time whereas you show that on the main display in BBS
It's also clear to me that I need to spend a bit more time trying to eliminate some of those wakelocks!
from betterbatterystats.
Fixed in 1.1.0
from betterbatterystats.
Related Issues (20)
- crash on opening the settings
- Add screenshots of the application HOT 2
- OutOfMemoryError after giving permission HOT 1
- Reference from or to are empty: (ref_boot, ref_current) HOT 1
- No stats has been collected yet HOT 6
- Fallback to 'since boot', No stats have been collected HOT 3
- Android 14 vs BATTERY_STATS HOT 4
- immediate crash on samsung galaxy a54 (android 13) HOT 2
- can't grant BATTERY_STATS DUMP PACKAGE_USAGE_STATS HOT 1
- App cannot be removed HOT 3
- Cant go to app HOT 3
- REQUEST: Battery health
- Not working on Pixel 8 Pro with Android 14 HOT 1
- [DOCS] Add F-Droid badge to Readme HOT 1
- [DOCS] Add Google Play badge to Readme
- [QUESTION] Why there wasnt new lately commits/releases? Is the project dead? HOT 1
- Add link to Github to About page
- adb -d shell settings put global hidden_api_policy 1 still shows Private APIs not granted HOT 4
- Add a shell script to the repository, containing all the adb commands for rootless devices
- Diagnostics shows error: BBS not tracking data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betterbatterystats.