Giter Site home page Giter Site logo

Comments (3)

asksven avatar asksven commented on July 30, 2024

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.

asksven avatar asksven commented on July 30, 2024

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.

asksven avatar asksven commented on July 30, 2024

Fixed in 1.1.0

from betterbatterystats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.