Commit Graph

36 Commits

Author SHA1 Message Date
Amith Yamasani
1aae305fa0 Add back the refresh button and fix refresh when restarted.
Bug: 3364738

Fixes the case where after an orientation change, the battery stats
does not refresh.

Also added back the refresh menu button that was on the phone.

Change-Id: I06c69d17c9945ae976e4e7dc135e2e96242fe721
2011-01-20 11:25:43 -08:00
Amith Yamasani
43a673053f Use the new Preference:icon attribute and placeholder for showing icons on the left. 2010-11-17 16:37:16 -08:00
Amith Yamasani
137588d60b Don't show battery usage information if data is bogus. 2010-11-12 14:13:03 -08:00
Dianne Hackborn
c05dedf9be Buttons in battery details now switch fragments.
These were launching a whole new settings activity.

Change-Id: I6876acf54d484119eec339c8597b5d9d843bae56
2010-11-12 12:44:52 -08:00
Dianne Hackborn
59a48604b5 Start fragmentizing battery usage.
Change-Id: I0864f6738b37c3203e166bb8f7e61e8904d9980a
2010-11-11 22:32:58 -08:00
Dianne Hackborn
21023464b2 Fix issue #3177284: Account for wake lock power usage on Crespo
Change-Id: I5988d28fd192cd7fdb85140172a92141eb389964
2010-11-08 19:05:00 -08:00
Dianne Hackborn
d2be882d8f 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
2010-10-20 16:54:41 -07:00
Dianne Hackborn
916adce02d Fix issue #3108683: GRH18: Battery usage chart FCs
Make array more bigger, and bounds check the thing.

Change-Id: Iaffebefd27c16c6ecf57566803859be1a5049b8a
2010-10-19 16:23:53 -07:00
Dianne Hackborn
19df79af26 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
2010-09-20 17:06:17 -07:00
Dianne Hackborn
cb818619c6 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
2010-09-17 11:28:08 -07:00
Dianne Hackborn
a712c3b7b5 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
2010-08-18 17:47:39 -07:00
Dianne Hackborn
ff3673c7f4 Make running services initial update async.
Also fix the value show for an app's awake time.

Change-Id: I801681d3a1d47a6bb1f3fb8cc5b0ef009201146f
2010-08-15 17:29:07 -07:00
Dianne Hackborn
be5994d201 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
2010-08-13 14:22:34 -07:00
Dianne Hackborn
938079c9b3 Fix drawing of phone signal chart.
Change-Id: I15253624ab37d3a494a541d813ee1bf2187e145d
2010-07-25 12:41:05 -07:00
Dianne Hackborn
cbaf6ceb8e 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
2010-07-24 13:37:04 -07:00
Dianne Hackborn
c01b0c83fc Allow user to see and stop heavy-weight processes.
Change-Id: If5caed3972ab03a54fbf8c459cdfc136e4bdc020
2010-06-24 12:38:33 -07:00
Dianne Hackborn
12fd447d6f 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
2010-06-22 16:08:50 -07:00
Dianne Hackborn
b9b7e5c863 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
2010-06-21 14:42:49 -07:00
Dianne Hackborn
4f0e5350fc 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.
2010-06-16 18:45:07 -07:00
Dianne Hackborn
ea38e67853 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
2010-06-11 12:46:21 -07:00
Dianne Hackborn
728ac35373 New Running Services UI.
This introduces a simplified (thanks, dsandler!) UI for Running Services,
collapsing the groups of apps and processes into single lines.  Tapping
on a line moves to a new activity showing details on that group, where the
stop functionality is now available.

This UI is now also integrated into Manage Applications, as the Running
tab.  You no longer get a really confusing, misleading, scary list of
every package that appears to be laying around for some reason.

The code was also re-organized, to put everything related to Manage
Applications and Running Services under its own package.

There is still some clean-up -- some performance improvements (such as
not re-computing the world when we switch to the details view), and if
this looks good then eradicating the old running services UI.

Change-Id: I3fc059c18060600742cab5b455d11ff74bf45ae3
2010-06-07 12:33:53 -07:00
Jacek Surazski
456dc95fee Send battery reports using ApplicationErrorReport.BatteryInfo. 2010-02-26 22:53:54 +01:00
Dianne Hackborn
cb497546ba Add new button to report battery usage to the developer.
This displays a new button on the application battery usage details
screen for the user to send a bug report to the developer, if that is
possible to do.  Also adds a button to directly force stop the app
from the details screen, and uses the new facilities to determine
whether the button should be enabled.
2010-02-22 11:31:37 -08:00
Amith Yamasani
992f10240d Refactor settings hierarchy and clump all volumes in one dialog.
Bug:2362077 Bug:2312836 Bug:2166486

Split Sound and Display into separate top-level settings.
All volume settings (including Alarm volume) now in one Volume dialog.
Remove some sub-texts to reduce clutter.
2010-01-25 14:58:34 -08:00
Dianne Hackborn
517ea9ffea Update to use new ActivityManager.forceStopPackage() API. 2010-01-05 15:47:41 -08:00
Amith Yamasani
270d273e55 Use radio hunting time in addition to signal strength for cell standby computation. Fixes #2176141 2009-10-19 15:21:33 -07:00
Amith Yamasani
395273662c Use a custom system icon for native processes.
New icons for system components in Battery Use screen.
2009-09-30 18:42:29 -07:00
Amith Yamasani
d459bebd89 Use the ratio of different CPU speeds to compute CPU power consumption per app. 2009-09-20 15:57:39 -07:00
Amith Yamasani
c25f8955be Link to bluetooth settings.
WiFi -> Wi-Fi
2009-07-22 16:26:20 -07:00
Amith Yamasani
8fb0ec36ec UI improvements for "Battery use" app.
Change the controls UI to display a suggestion.
Bluetooth AT command tracking (not enabled yet).
2009-07-20 17:43:13 -07:00
Amith Yamasani
1fd2958ad4 Fix an NPE.
Sometimes name is null, compare the other way around.
2009-06-25 12:27:21 -07:00
Amith Yamasani
0f1e11e219 Track native processes.
Add gauge to detail screen and make it look like the item from summary screen.
Some string changes.
2009-06-25 00:40:50 -07:00
Amith Yamasani
0422a3bf61 Minor UI improvements and showing of unplugged duration. 2009-06-12 14:23:15 -07:00
Amith Yamasani
78fd96a1c5 More details in the summary and details screens.
Show packages included, time that a subsystem was on for.
Load label and icon in the background and cache the values.
Switch between totals and since-unplugged.
Other UI improvements.
2009-06-10 20:19:42 -07:00
Amith Yamasani
7f6aa6283a Add detail page for Battery usage and track GPS and foreground CPU.
Show details such as Cpu time, Cpu foreground time, data sent/received,
and GPS usage.
2009-06-03 16:31:15 -07:00
Amith Yamasani
2a2daf960c Top level screen for App Fuel Gauge.
Shows sorted list of power usage (with some debug information) by the top 10
apps and subsystems. Doesn't yet take into account certain subsystems such
as data network usage, audio/video DSP usage, Bluetooth and lights other than
screen backlight.

Screen, Idle, Wifi and Voice usage and CPU time are accounted for.

Also need to add detail screens for each item and suggested actions.
2009-05-22 19:41:32 -07:00