History log of /packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a312f7f8044a07a2a41de477cc30bb34fc1df55f 13-Oct-2014 John Spurlock <jspurlock@google.com> Fix battery-history-chart large-mode labels in RTL layouts.

Bug: 17425651
Change-Id: Iae53e111fa3c6bc822821a6a30bd34edb058c1a5
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
94aae9afd18c17848aed68addd19d93c937c7555 14-Sep-2014 Dianne Hackborn <hackbod@google.com> Little more on issue #17495264: tweak when we ignore initial times.

Change-Id: I7053eb64d7d2281984baef9606334c2df4783cc5
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
2b54a9fa571a429e188b5e37d4732debd3e90ac0 14-Sep-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17495264: Battery history graph is bad

Deal better with wall clock time changes in the battery history.

Change-Id: I9d63edafc37bbf663e328a08ba09300be2142594
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
c891ce6565fbeba8414c470b109088ac959f7143 12-Sep-2014 Dianne Hackborn <hackbod@google.com> Fix some things in settings: manage apps, battery, procstats

Issue #17461567: java.lang.ArithmeticException: divide by zero when
looking at Settings > Battery

Yeah, let's not do that.

Issue #17365562: Running services RAM totals are wrong

Okay so like a few months ago, I had this vacation coming up, and
it was around the feature complete (hahah) deadline, and I had to
rush to get this in before I left. So I rushed. And, well, I forgot
a few things. Here they are. We now show the right numbers and
even update things correctly when you change what processes are
being shown. Wow.

Finally, fixed a few issues in the dev tools procstats UI.

Change-Id: I8348a9c2ec3226a455c5c8465729e4487f324c8b
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
7253df35a09d8d61ececedbb66179171802e42a7 03-Sep-2014 Elliott Hughes <enh@google.com> Start cleaning up percentage formatting in Settings.

This fixes some of the percentage formatting issues, but there are
still about ten strings with hard-coded %%s in them.

Bug: 15476051
Change-Id: I668b6b16e598425f6006f6de0005c980f613f5b2
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
1cf2077c3762349f4838ab041e6a06363ebd0b26 11-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issues in Settings: 16660423, 13172381, 16868094

Issue #16660423: Stability: ArrayIndexOutOfBoundsException in settings:
at com.android.settings.fuelgauge.BatteryHistoryChart$ChartData.draw(
BatteryHistoryChart.java:109)

Issue #13172381: No content description in Battery charging section

Issue #16868094: Settings crash on switching to landscape mode with
"Google Text-to-speech" settings icon selected

Change-Id: I94d0e83f72d571eb90aad6742acabce56c0298ec
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
c19eb361a407058b76cbbc866106db9fc81d9596 10-Jul-2014 Dianne Hackborn <hackbod@google.com> Battery chart fixes.

When there is no data to show, don't make a crazy collapsed chart.

Also avoid re-creating the chart when scrolling.

And fix various other things.

Change-Id: Ia1895bc7c46e6d830e66f66e66f17726e1e23e3f
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
6fd48e224f89e4d4e154dcf2e494c201293cc167 01-Jul-2014 Dianne Hackborn <hackbod@google.com> Issue #15986092: Add power tracking of flashlight.

Also improve drawing of date markers to allow a middle
marker for really looong durations.

Change-Id: I0c12ec9b6de102360d9171627787462dfa58b7ef
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
96debb5c96e8b75945ea2c2e1171cf29fe2c2887 20-Jun-2014 Dianne Hackborn <hackbod@google.com> Update to follow battery stats change.

Improve how we decide that WIFI is on.

Change-Id: If209d85dd88b6bdd56913684a890f732b8234a8c
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
68f005fbd48f18cdab0168ba92b8fd40776edc1e 19-Jun-2014 Dianne Hackborn <hackbod@google.com> Modify proc stats to show new memory use computation.

Switch the proc status UI's memory use bar to be based on the
new total memory use computation, instead of showing that weird
"time spent in memory states" thing.

Also now have it link to a detail page that shows details of time
spent in memory states and RAM used by various things.

Change-Id: I6817a499db518adb8e72466a5e9cfe18a81be5d5
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
b11c97379918fce423bfb0b96a8319a8e698845d 13-Jun-2014 Dianne Hackborn <hackbod@google.com> Fix issue #15597136: n7 not showing estimated discharge time

Use battery plugged state to decide whether to show the estimated
discharge time remaining vs. charge time remaining.

Change-Id: I2e0d12871201e7d4927aaa9a94d15bff949a881c
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
3bd46a70c1e63c16542fcec1b87b99693cbbbf1e 12-Jun-2014 Dianne Hackborn <hackbod@google.com> I am a Material girl, living in a Material world.

Change-Id: I3206041666a3236fdeb5f5897e6d8767137c2b85
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
a7a62c5b66189f114a8ad41c53bbe0bb00ae1e90 11-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15545573 Battery use chart is incorrect for date labels and time axis labels

- use DateFormat.getBestDateTimePattern(...) to get the best Date and Time format
depending on the Locale
- format the label according to the best format
- remove non needed formatting strings

Change-Id: I78b62b9a7c9401e47e62c7161214636bb43324fc
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
7158e6299210d08f82c29135c001652508b79dfb 31-May-2014 Dianne Hackborn <hackbod@google.com> Tweak battery usage to match red lines.

Most of this is done, the main thing missing is the color
of the bars which seems like a framework issue.

Note that this introduces a change to the global theme
making colorControlActivated the specified blue color,
which impacts all of the settings UI. (Except apparently
progress bars, and thus the bug.)

Change-Id: I4a5ca8c3b94dc23b8f065f60fe697ee0e76ff47d
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
a32d81797f0e8164f922d9626ed6258c93b72772 24-May-2014 Dianne Hackborn <hackbod@google.com> Fix issue #15185822: Stability: ArithmeticException: divide by zero

Also small visual improvements.

Change-Id: I55dc30539a4ef67e9261f338c8c5a729a6958d9b
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
5a9ace3a7abe5de8d6f3307dad830ac9b1d5ae04 16-May-2014 Dianne Hackborn <hackbod@google.com> Update battery use chart to better match new mocks.

Change-Id: I714cb30ccd9b8144785aee16a23ae2b723df4347
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
525f2bdfd2b5293ba4338a9664da9a21d468ba0a 29-Apr-2014 Dianne Hackborn <hackbod@google.com> Update battery charge/drain label.

Match UX spec.

Change-Id: If1408458d488ac2ae3a63449e44ff18fc56e08d5
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
0be7598cb8c8cf6808b336204632615c5f26298f 24-Apr-2014 Dianne Hackborn <hackbod@google.com> Show time remaining / to charge.

Rework the battery graph to include the time remaining or
time to charge.

Change-Id: Ib26b761cb10e01f5f3aa4189db10d44b8ce62f89
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
55985d2ceca9cecfbc07bb331bf48fe28849b818 21-Mar-2014 Dianne Hackborn <hackbod@google.com> Switch to new "cpu running" state for showing wake time in chart.

Change-Id: I69b27c506e057353d9ee32f5d80e3077c7eba207
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
18083b1eb770a2a6d543cfa4abb17ae2c121d836 22-Jan-2014 Dianne Hackborn <hackbod@google.com> Battery: report calculated power, tweak signal strength colors.

BatteryHistoryHelper now computes the total power to be the total
including the unaccounted, so we don't go > 100%. However for the
unaccounted/over-counted details, we want to report the actual
computed amount. Use a new API to do this.

Also tweak the signal strength colors so that the "no signal" state
is stronger, by being reddish instead of bright yellow.

Change-Id: I6af9fbcce8c3324883db0184f7ac215cb41b6230
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
fb03058dc9827c9f588cc4f42a74201b8ae06e8c 13-Dec-2013 Dianne Hackborn <hackbod@google.com> Update to follow BatteryStats.

Change data use to be based on packets instead of bytes.

Change-Id: I536dd2c2fc3fbeb12689e793f79e5fac984fe3af
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
49759af6b06b884d3a1af9dbb120370893744b94 15-Sep-2013 Dianne Hackborn <hackbod@google.com> Various proc stats UI improvements.

- Option to include system processes.
- Option to use uss instead of pss sizes.
- Option to select type of stats: background processes, foreground (top)
processes, cached processes.
- Details now shows max mem usage.

Change-Id: Ic994564ce846bc1021bf35576feeb9ef095b0e48
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
74809c2679d9c046f73acb4473434f9f5ad4b1c1 28-Aug-2013 Amith Yamasani <yamasani@google.com> Fix RTL layout of text in Battery history screen

Change the anchor position and alignment direction for text.

Bug: 10447666
Change-Id: Ida4161c738cf9a32cc8ff98037f3755046e64e33
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
56247a63fc621815ecff82a278ad8553174922a0 16-Mar-2013 Todd Poynor <toddpoynor@google.com> battery history details: update status bars on any change

Don't apply the "X axis (time) still within previous pixel" optimization
to the status bars below the battery level graph. Keep the path cursor
position and previous state variables up-to-date in this case.

Bug: 8132455
Change-Id: I09390256e3e71d34813de655a1d01ec054ee778a
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
8af88fb8387259e51615709b2d1ea0260f7057fd 31-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Use the new isNetworkSupported api for wifi-only

Didn't have an API for this before so people used a hacked system property (ro.carrier)
to determine if the device supported mobile data. Added new API and switching callsites.

bug:5087537
Change-Id: Ibd799559be102a9e2fd552d1a23d1afbcf8f4614
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
b28c0c95c21bb60b8259b0cafb16754e590b4a9b 14-Apr-2011 Dianne Hackborn <hackbod@google.com> A few tweaks to the battery history chart.

Change-Id: Id133267592acf7a979a625704d2d922a24f5ff41
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
c06d4c48a9455d6018f2d793c6b8f211f1131055 25-Feb-2011 Amith Yamasani <yamasani@google.com> Remove more entries not relevant to wifi-only devices.

Bug: 3488384
Bug: 3487976
Bug: 3488381

Removed Cell standby entry from Battery use screen.
Removed Mobile signal strength from BatteryHistory screen.
Added wifi IP address to About->Status
Remove auto-timezone checkbox in Settings->Date & time

Change-Id: I228721a3613b1aeb600026e42274337886552698
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
d2be882d8f2e5acd8a5806c649ba4640249cf4ba 21-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3114356: Storage visualization in Manage Apps is confusing

Also fixes issue #3097388: If you launch Manage Applications when SD
card app info isn't available, incomplete information gets cached

Change-Id: If3377a965653590e5bc1df25e38764a83e96b820
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
916adce02d5b37038cd78d11a8c884237684f9a8 20-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3108683: GRH18: Battery usage chart FCs

Make array more bigger, and bounds check the thing.

Change-Id: Iaffebefd27c16c6ecf57566803859be1a5049b8a
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
19df79af269c4a2354b0989cebfcfe949aea42c4 20-Sep-2010 Dianne Hackborn <hackbod@google.com> Some improvements to the manage apps code:

- Battery stats now aggregates bluetooth usage.
- Battery stats now uses new history iterator API.
- Battery stats chart is refectored to have the start of a
common facility for building tick charts.
- Manage apps will now asynchronously wait for the apps list
if it is taking >.25ms to build.

Change-Id: I568dd74beedf9a0a5a4c88ab567510cee9af8299
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
cb818619c669d4257a4df969dd03eff479ba84d0 16-Sep-2010 Dianne Hackborn <hackbod@google.com> Update power usage UI to follow WIFI data changes.

Now handles WIFI start times being distributed across applications,
and collapses all work done in WIFI uid procs (esp that supplicant
thing) into the apps and overall WIFI category.

Change-Id: I341e5d63c45eeb0fb4121beed62474d947f9de11
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
a712c3b7b5a17129d016ede082e3e3b2bbd31f9a 19-Aug-2010 Dianne Hackborn <hackbod@google.com> A couple small settings fixes:

- Correctly position WIFI/GPS charts.
- Start out with running services hidden in case we need to show
the progress bar.

Change-Id: I8852f334f68f4e9122b5d688d9fd57d0f94d94d8
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
be5994d20152c7194aac79eb8152240655fd3373 13-Aug-2010 Dianne Hackborn <hackbod@google.com> Some improvements to the battery usage UI:

- Show wake lock usage in the battery history.
- Show WIFI usage in the battery history.
- Show the amount an app has held a wake lock in the app details.
- Also fix service run time computation in running services.

Change-Id: I5aa959857f83808fbc709f65204f59bbfb73935b
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
938079c9b36f0a45e58b5b086393647d71aebeba 25-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix drawing of phone signal chart.

Change-Id: I15253624ab37d3a494a541d813ee1bf2187e145d
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
cbaf6ceb8e6b2d36a40589de6380ff93e75335df 23-Jul-2010 Dianne Hackborn <hackbod@google.com> Add battery history details activity.

Adds a full-screen version of the battery history visualization,
which you can get to by tapping on the battery history chart in
the summary screen.

Change-Id: Ibca5ef3d0883ff6ffa80b6ddca3c8ac838c85842
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
c01b0c83fca571229621d16b757a46dc0fae7dfe 24-Jun-2010 Dianne Hackborn <hackbod@google.com> Allow user to see and stop heavy-weight processes.

Change-Id: If5caed3972ab03a54fbf8c459cdfc136e4bdc020
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
12fd447d6f46b0c06072b0e9735589bf14cc53f6 23-Jun-2010 Dianne Hackborn <hackbod@google.com> More battery level improvements.

Take into account durations when there is no data due to
a reboot. Also show times when charging and screen is on.

Change-Id: I84e75efb3339b0596bea3bbca9dbea6d9f864537
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
b9b7e5c863c9dda33cacc9978ee8c98b6b395d60 21-Jun-2010 Dianne Hackborn <hackbod@google.com> Small improvements to bettery level graphing.

Deal with data that doesn't start with updates; don't try to
make lines horizontal (a battery doesn't change is a battery
that is dead!).

Change-Id: I10a7938a04cc5ed5e92a55857851d8d70b64c3b6
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
4f0e5350fccd78bf881b938aaf0f484d135829a0 15-Jun-2010 Dianne Hackborn <hackbod@google.com> Improve battery chart, fuel gauge now shows time since charged.

Switch default stats to new time since charged. Update to follow
API changes. Improve the battery history chart.
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java
ea38e678537cf740b5f30c1d69c7a332e98cdd2c 11-Jun-2010 Dianne Hackborn <hackbod@google.com> Show history of battery level.

Also clean up to remove dead code for running services and old
battery usage UI.

Finally some string improvements from Roy.

Change-Id: I8765a4c744b92edd1505f14c47fea57b918e5d7b
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryHistoryChart.java