summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/fuelgauge
Commit message (Collapse)AuthorAgeFilesLines
* Creates Sipper even the consumption is very littleLifu Tang2013-09-032-5/+10
| | | | Change-Id: I9682f262a481f3586760b8464b96eeb22814a840
* Fix RTL layout of text in Battery history screenAmith Yamasani2013-08-281-12/+19
| | | | | | | Change the anchor position and alignment direction for text. Bug: 10447666 Change-Id: Ida4161c738cf9a32cc8ff98037f3755046e64e33
* Sort recent apps, show message when no recent appsLifu Tang2013-08-191-0/+8
| | | | Change-Id: I70bb1913435b46fc87aec10075e43f98ef07ef62
* Supress Location button when coming from LocationLifu Tang2013-08-193-4/+11
| | | | Change-Id: Ie1f1aed17206530ec7c8a1cde43a4380b7232823
* Linked the recent location apps to battery pageLifu Tang2013-08-153-738/+900
| | | | | | | | | | | | * Extracted BatteryStatsHelper from PowerUsageSummary * Dropped the "pause" and "resume" method from the RadioButtonPreference * Opening battery usage page when the user clicks the recent location apps item Change-Id: I5a2d03271434765780154265976d8caa7f8060d8
* Shows "App Info" for system appsLifu Tang2013-08-141-3/+2
| | | | | | | If a specific Uid contains only one package, we show the "App Info" button, even if it's a system app Change-Id: Ie39b6d90e62ae432c636d50729f0aa45405ce67c
* Moved LocationSettings into location sub-packageLifu Tang2013-07-291-1/+1
| | | | Change-Id: I55b30df5b6889576539b8cb880e3032f417ddfd7
* Update to show new location monitoring op.Dianne Hackborn2013-07-091-0/+5
| | | | Change-Id: I921e95327c743c5b9b89bfe5a94beca67bfdb7de
* Use FastPrintWriter.Dianne Hackborn2013-06-241-2/+5
| | | | Change-Id: If7f77185d7a76f14ac63f9c2af9911fb67ad97d9
* Following renaming of battery stats.Dianne Hackborn2013-06-141-1/+1
| | | | Change-Id: I889680dddf18fb2a480017199cc072a2d1469c27
* Follow network stats changes.Jeff Sharkey2013-06-063-40/+76
| | | | | | | | Now Wi-Fi and mobile traffic is recorded separately, which means we can compute much more accurate usage estimates. Bug: 5543387 Change-Id: I26120a219649a3c84806fab0fd1602ab07509410
* Use circular avatars wherever appropriateAmith Yamasani2013-05-131-3/+5
| | | | | | Battery stats, Data usage and Running apps Change-Id: Ib7f851e55ef7e44f18d3f8a2cd27f5f2204b0145
* Fix issue #7691456: adbd CPU usage identified as Bluetooth in battery statsDianne Hackborn2013-04-101-2/+2
| | | | | | Should be comparing with Bluetooth UID, not the wrong and broken GID. Change-Id: I2cb33e25b0ae5a441a467c12d91860dcf36232dc
* battery history details: update status bars on any changeTodd Poynor2013-03-181-59/+59
| | | | | | | | | 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
* Actually use the cache for names and icons.Amith Yamasani2013-02-192-4/+7
| | | | | | | | | | Fixes the flashes in name and icon in Battery usage screen when refreshing. Bug: 8219466 Some earlier refactoring must have messed up the cache's scope. It will now avoid reloading name and icon if already present in the cache. Change-Id: I99c1f14dd53828dcb74cf12c02c47628e2e64d30
* fix an issue where sensors power usage wasn't reported properlyMathias Agopian2013-02-041-6/+10
| | | | | | | the battery service records a sensor's *handle*, but the PowerUsageSummary code used it as a sensor *type*. Change-Id: I0d2cbdffc24238d5e02f0d6369fa44ed990176a4
* am bbf8daf4: am 505232be: Merge "Fix of Settings application sort crash"Dianne Hackborn2013-01-251-1/+1
|\ | | | | | | | | | | | | # By Jia Arlan # Via Android Git Automerger (1) and others * commit 'bbf8daf4602b62d806c4946196b526edbe08e056': Fix of Settings application sort crash
| * am 505232be: Merge "Fix of Settings application sort crash"Dianne Hackborn2013-01-241-1/+1
| |\ | | | | | | | | | | | | | | | | | | # By Jia Arlan # Via Gerrit Code Review (1) and Henrik Baard (1) * commit '505232be07e388c602529e14254df013637b16f2': Fix of Settings application sort crash
| | * Fix of Settings application sort crashJia Arlan2013-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original implementation of compareTo function will sometimes cause crash when the power usage list above 32 items. When comparing double values a proper comparison method needs to be used. Using just subtraction does not take into account NaN:S, infinities and +/-0 numbers. In certain cirtumstances it seems that using subtraction causes compareTo to return values that is not expected by the sorting code and causes an illegal argument exception with "Comparison method violates its general contract!". This problem only happens if the sort code is called arrays containing more than 32 (currently) due to how ComparableTimSort works (call chain is Collections.sort -> Arrays.sort(Object[]) -> ComparableTimSort. Change-Id: If732f04797a3c8b2a43568c90bb73a1ec69a4c98
* | | Refresh battery stats when the battery state or charge level changes.Amith Yamasani2012-12-261-0/+2
|/ / | | | | | | | | | | | | | | | | This will keep them in sync. We still don't automatically update the stats periodically, in case the user is investigating some behavior. That's why we have a refresh button. Bug: 7737824 Change-Id: I8a59cad6c72f540533b3526fc476260465c73492
* | Pass the locale code in the help url for help pages.Amith Yamasani2012-12-061-5/+2
| | | | | | | | | | | | | | Otherwise the help will always be shown in English. Bug: 7564049 Change-Id: I94da36aa1ae5aabd118178866b7e570bb77add34
* | Push scrollbars to screen edges.Jeff Sharkey2012-11-301-2/+8
| | | | | | | | | | | | | | | | Push scrollbar to screen edges on custom ListView and ScrollViews to match Preferences framework behavior. Bug: 7633165 Change-Id: Ideecd0e243c7de7bf977caef2b1585e707a00ca4
* | Internationalize bytes and percentages.Jeff Sharkey2012-11-142-20/+5
|/ | | | | Bug: 7545890 Change-Id: I634fafe9d61a2ebbf7a0cc56d8255457ee9fe1b2
* Follow more Secure settings to Global.Jeff Sharkey2012-09-271-2/+2
| | | | | Bug: 7232014, 7231331, 7231198 Change-Id: Iea055cfa58edb253b55fe30bf294994ad338cfa4
* Fix issue 7198767, 7198366, 7189824.Dianne Hackborn2012-09-212-7/+17
| | | | | | | | | | | | Bug #7198767: Crash on choosing App info from the Recent apps tab Bug #7198366: Settings UI should not show other Users' apps Bug #7189824: Settings crashes on trying to access Battery usage summary Also fix running services to be able to show user bitmap when in secondary users, crash in running services if a service is running whose app is not installed for the current user. Change-Id: Ief24810c9ddce1ec3f8641ce08af79e1bc18f221
* Load user photos through system_server.Jeff Sharkey2012-09-191-4/+1
| | | | | Bug: 7194137 Change-Id: Ie36ca40c48fb06d55d120bfcf3db69aea9d83829
* Use UserManager.getUserIcon() to get the user's avatar.Amith Yamasani2012-09-171-5/+2
| | | | Change-Id: I035a5e2a518eb827a2e44910471ed04923921aa3
* Multi-user battery settings.Dianne Hackborn2012-09-124-20/+85
| | | | | | Aggregates battery use from other users into one line item. Change-Id: I811e681891a9ff098491de1e096232f38bf061a9
* Include WIFI scan time in per-application power usage summary.Nick Pelly2012-06-151-13/+29
| | | | | | | | Also, improve logging to more easily show power break-down for each UID. Bug: 6642581 Change-Id: Ib36f4bf9c8c579797225cf887e5b2d323cca61b0
* Help menus for several screens.Amith Yamasani2012-04-231-0/+13
| | | | | Bug: 5144896 Change-Id: Ib2f5146f6f62f2a33261bb165c3bf1bf13b22f38
* Android OS battery usage overstated by screen on timeTodd Poynor2011-12-161-1/+2
| | | | | Change-Id: Icbc4b3ecf91bdbb90da3ee0cf1c68bec953d0177 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* Bring back network counters in battery stats.Jeff Sharkey2011-10-091-2/+4
| | | | | Bug: 4902271 Change-Id: I0900c030407a86efb14a9d528ab355c56f54679e
* Account for all wake lock usage.Dianne Hackborn2011-10-031-1/+26
| | | | | | | | | Wake locks can be held outside of what we measure in battery stats, by things not going through the power manager. Account for this by computing the total wake time that is not covered by known wake locks and screen on time, and blame this on Android OS. Change-Id: Idf2907bc35f8c35f92155671c8dba521ae9ea804
* Data usage strings, sweep touches, fixes.Jeff Sharkey2011-09-251-4/+2
| | | | | | | | | | | | Change strings around limiting background data. Move limit/warning sweeps above inspection sweeps, and teach about additional neighbors on different axis. Guard against DialogFragment.show(), fix pie chart to draw edges, and remove data usage from battery UI. Bug: 5341374, 5337650, 5337385, 5319465, 5236335 Change-Id: Iea8c2a2ab405b645d85abe34a0178d4b8874cdd5
* Fix issue #5320747: Disabling an app that is an active device administrator...Dianne Hackborn2011-09-161-1/+21
| | | | | | | | | | | | | | | ...can lead to an unsecure device Now you can't disable device admins. Or clear their data. Or force stop them. Or uninstall them (though the package manager also prevents uninstalling, might as well disable this button along with everything else). Change-Id: I69eefc2342e6f932908e9f5b87d3a601752810a4
* Unify data/power layout, confirm disable, round.Jeff Sharkey2011-09-024-129/+34
| | | | | | | | | | Share consistent layout between data usage and battery usage. Show confirmation dialog before disabling mobile data. Round warning/limit sweep values to match displayed label. Suppress fade when switching data usage tabs. Bug: 5208510, 5058157, 5038589, 5252816 Change-Id: I3c76f3397445d2d3b173666a41672871df4c61af
* Use the new isNetworkSupported api for wifi-onlyRobert Greenwalt2011-08-312-2/+2
| | | | | | | | 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
* Bug 5038721: battery info links to new location setting for GPS management.Gilles Debunne2011-08-221-7/+7
| | | | Change-Id: I7063e0b93b6ef9f94cd783ce57206e302126bd9a
* Use a different wallpaper fragment title from the preference item.Amith Yamasani2011-07-251-2/+32
| | | | | | | Change wallpaper list ordering to alphabetic. Display battery level and charging status in Battery settings. Change-Id: I8ead0fb0f018c79ed258bd1c1ca3f8ecaf32da83
* No split action bar in screens with one actionGilles Debunne2011-07-111-11/+9
| | | | | | Bug 5012012 Change-Id: I87d38e0cc97762aa9043b0c5834a42848cc2a0fe
* A few tweaks to the battery history chart.Dianne Hackborn2011-04-131-5/+12
| | | | Change-Id: Id133267592acf7a979a625704d2d922a24f5ff41
* am 38d3353e: am 03e90322: Merge "Remove more entries not relevant to ↵Amith Yamasani2011-03-022-11/+27
|\ | | | | | | | | | | | | wifi-only devices." into honeycomb * commit '38d3353e37be450b1b95d2525acbd53e9b67130e': Remove more entries not relevant to wifi-only devices.
| * Remove more entries not relevant to wifi-only devices.Amith Yamasani2011-03-012-11/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Changes for ril.h version 6.Wink Saville2011-02-171-1/+2
|/ | | | Change-Id: I7e269e5a971c70d6d9a1731b82c538b722cbc01d
* Updating Delete and Refresh icons to Honeycomb styleJustin Ho2011-01-271-1/+1
| | | | | Bug: 3362749 Change-Id: Ib4b61c9e7db05b0627c1f353d3747268455dab6c
* Add back the refresh button and fix refresh when restarted.Amith Yamasani2011-01-201-2/+7
| | | | | | | | | | | 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
* Use the new Preference:icon attribute and placeholder for showing icons on ↵Amith Yamasani2010-11-172-2/+2
| | | | the left.
* Don't show battery usage information if data is bogus.Amith Yamasani2010-11-121-10/+20
|
* Buttons in battery details now switch fragments.Dianne Hackborn2010-11-121-5/+17
| | | | | | These were launching a whole new settings activity. Change-Id: I6876acf54d484119eec339c8597b5d9d843bae56
* Start fragmentizing battery usage.Dianne Hackborn2010-11-113-127/+144
| | | | Change-Id: I0864f6738b37c3203e166bb8f7e61e8904d9980a