summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/fuelgauge
Commit message (Collapse)AuthorAgeFilesLines
* Merge "replace temporary metrics categories with permanent ones." into mnc-devChris Wren2015-05-131-1/+2
|\
| * replace temporary metrics categories with permanent ones.Chris Wren2015-05-131-1/+2
| | | | | | | | | | Bug: 21114836 Change-Id: I05ca033e2e15fc1ae4330453bbe50aaa6cd1ea6c
* | More updates to battery optimization whitelistJason Monk2015-05-121-7/+9
|/ | | | | | | | | | | Mostly just string updates. Also fix crash in power details. Bug: 19991702 Bug: 21027488 Bug: 21063077 Change-Id: I5a5e382a20ffaecd9eb16454906c985cc1510572
* Update strings for ignore optimizations controlJason Monk2015-05-111-2/+3
| | | | | Bug: 19991702 Change-Id: Ie5b54fd70176cfceb8b88cf18a9974321ba84c28
* Button that goes from app info details to app infoJason Monk2015-05-081-1/+3
| | | | | | | | | | | | | | | | This info button is shown on the header of all app detail pages. This button is hidden when coming from app info, to avoid allowing users to go in circles. Since app notification details had a settings button where the new info button goes, the app notification settings will move down to be a preference (this matches the usage access screen UX). Also fix a bug in launching app notification settings for managed profiles. Bug: 20633669 Change-Id: Idbb4f7c3326b4c6b0a19559b722ee0406eaba6c0
* Fix app headers in settingsJason Monk2015-05-061-1/+1
| | | | | | | | | Use SettingsPreferenceFragment's method for pinned headers where possible, and add a frame within the fragment for them to live in otherwise so that this view doesn't end up on the activity. Bug: 20886475 Change-Id: I985eb1497744ea50bfabed862e5088eb89df5b61
* Add high power whitelist for appsJason Monk2015-05-046-287/+571
| | | | | | | | | | | | - Strings not final! - New UX for power usage details (more preferency) - Add high power apps list shows on/off and screen to change (when possible) - Link from power usage summary to high power list - Link from advanced apps to high power list Bug: 19991702 Change-Id: I97c927ed82d3b89041e4429b427508545763d66c
* Fixed typo in package name.P.Y. Laligand2015-04-141-2/+2
| | | | Change-Id: I08641b7e1d56b44a18ac747371f3a3883a81224c
* Add activities to support voice settings.Barnaby James2015-04-131-0/+51
| | | | | | | | | Adds Voice Interaction Activities for: - Do not disturb mode (with interaction) - Battery Saver mode - Airplane mode Change-Id: I4480dc3a30975d94b71714ff58fbeebddfbc1c58
* Merge "Worked around back button navigation issue"Lifu Tang2015-04-091-8/+2
|\
| * Worked around back button navigation issueLifu Tang2015-04-091-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling startWithFragmentAsUser() without specifying FLAG_ACTIVITY_NEW_TASK to the intent starting the fragment could cause a native stack corruption. See b/17523189. However, adding that flag and start the preference panel with the same UserHandler will make it impossible to use back button to return to the previous screen. See b/20042570. We work around this issue by adding FLAG_ACTIVITY_NEW_TASK to the intent, while doing another check here to call startPreferencePanel() instead of startWithFragmentAsUser() when we're calling it as the same user. Bug: 20042570 Change-Id: I26b269414f410912b77aaa553a3fccebfa148659
* | Update name of field used from BatterySipperAdam Lesinski2015-04-072-24/+22
| | | | | | | | Change-Id: Ie7ec921d646b50826d4dfe942bc13ddfc4cd9190
* | Revert "Update name of field used from BatterySipper"Bart Sears2015-04-072-22/+24
| | | | | | | | | | | | | | | | | | Companion CL needed to be reverted as it was breaking the build, so reverting this CL as well until Adam has a chance to investigate. This reverts commit a74ddc29b831d788ecedffef3233ae7c8d3241a1. Change-Id: I8e6f2f48d930db9db7eae1a07492da91b0c38f88
* | Update name of field used from BatterySipperAdam Lesinski2015-04-062-24/+22
| | | | | | | | | | | | This relies on change Ia3d97e0a1c3352127185c18626d8ba8221c9ab40 Change-Id: Ibfb31da3938bf2ff4cf20444e680addabcca9eb3
* | log visibility of viewsChris Wren2015-03-274-4/+30
|/ | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Settings: Remove all unused imports.John Spurlock2015-03-181-4/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* am e964060b: am b4805e3a: Settings: Allow more lines of saver feature ↵John Spurlock2014-12-121-0/+50
|\ | | | | | | | | | | | | description text. * commit 'e964060b5de4b534431b58c2ac4fae9fdd6baedc': Settings: Allow more lines of saver feature description text.
| * Settings: Allow more lines of saver feature description text.John Spurlock2014-12-121-0/+50
| | | | | | | | | | Bug: 18706906 Change-Id: I27bfd5e70c3e20c17fcad691cfb3c9f74d7d0390
* | am f29bc1df: am 45893e65: Settings: Don\'t lose the switch bar returning to ↵John Spurlock2014-12-031-1/+4
|\ \ | |/ | | | | | | | | | | saver settings. * commit 'f29bc1df4e52090e2b55c63f63ef849722f267a4': Settings: Don't lose the switch bar returning to saver settings.
| * Settings: Don't lose the switch bar returning to saver settings.John Spurlock2014-12-031-1/+4
| | | | | | | | | | Bug: 18595359 Change-Id: I01c24fd8ed304837338c2b353805b3d3324e1639
| * Remove vestigial "Choose date format" option.Elliott Hughes2014-11-171-24/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Almost all of our date formatting goes via icu these days, so this is a no-op almost everywhere. (And should be a no-op everywhere soon.) There's no obvious way to fix it, so remove it. UI guidelines say we should use spelled out month names anyway. Bug: 18322220 (cherry picked from commit 30cc30864b2b41d73e187ba9a0f75ea1fa64b538) Change-Id: I2a84d69a1f21f71d8bce5b69202b07f1b422aa57
* | am eb7795ed: Merge "Use shortFormat instead of shortFormat4."Narayan Kamath2014-11-241-3/+2
|\ \ | | | | | | | | | | | | * commit 'eb7795ed31ee84c5569490b0949ea271865de7d8': Use shortFormat instead of shortFormat4.
| * | Use shortFormat instead of shortFormat4.Narayan Kamath2014-11-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | Won't make a difference since shortFormat4 is simply shortFormat with the 'y' characters doubled. bug: 18388178 Change-Id: I6177807430b295035092367553da5de3b942e2d6
* | | am 3dd51556: Merge "Remove vestigial "Choose date format" option."Elliott Hughes2014-11-171-24/+2
|\ \ \ | |/ / | | / | |/ |/| * commit '3dd51556bcbf7addcc17d29dd360165ee7ede1ee': Remove vestigial "Choose date format" option.
| * Remove vestigial "Choose date format" option.Elliott Hughes2014-11-141-24/+2
| | | | | | | | | | | | | | | | | | | | Almost all of our date formatting goes via icu these days, so this is a no-op almost everywhere. (And should be a no-op everywhere soon.) There's no obvious way to fix it, so remove it. UI guidelines say we should use spelled out month names anyway. Bug: 18322220 Change-Id: Ic9e903eceab3c096426f313bf4ef3a38644774e1
* | Apply predefined icon and label to managed profilesAlexandra Gherghina2014-10-311-6/+1
| | | | | | | | | | Bug: 18132630 Change-Id: Ie6cfee420847d6992accb0bc0ca3f5535260bc55
* | Skip Misc/Overcounted battery stats in release builds. automerge: f7a5017Michael Wright2014-10-241-0/+7
|\ \ | | | | | | | | | | | | | | | | | | automerge: 95f29a1 * commit '95f29a1930244b9978a55073326c9fb071c2615f': Skip Misc/Overcounted battery stats in release builds.
| * | Skip Misc/Overcounted battery stats in release builds.Michael Wright2014-10-241-0/+7
| |/ | | | | | | | | Bug: 18090734 Change-Id: I24d8eea9fcb0d0b9e50d512325ed91ce70eb16ac
* | am ef390443: am a312f7f8: Fix battery-history-chart large-mode labels in RTL ↵John Spurlock2014-10-131-0/+3
|\ \ | |/ | | | | | | | | | | layouts. * commit 'ef390443eb7a6a4ac52c62aea65e7ba94f1f897a': Fix battery-history-chart large-mode labels in RTL layouts.
| * Fix battery-history-chart large-mode labels in RTL layouts.John Spurlock2014-10-131-0/+3
| | | | | | | | | | Bug: 17425651 Change-Id: Iae53e111fa3c6bc822821a6a30bd34edb058c1a5
* | Update Settings to use themed Context.getDrawable()Alan Viverette2014-10-102-3/+3
| | | | | | | | | | | | | | | | | | | | Explicit null theme is passed when using Resources.getDrawable() and no theme is available, e.g. when using getResourcesForApplication(). This fixes an issue with ic_text_dot theming and helps avoid similar issues in the future. BUG: 17648301 Change-Id: I3e97c3490b6f2a55744f567b21284f2935ae9af7
* | Fix percentage formatting throughout Settings.Elliott Hughes2014-10-032-5/+8
|/ | | | | Bug: 15476051 Change-Id: Ic64e7c36d0e2732d3e0e79fec2b79de42decf77d
* Merge "Make Force Stop button work for packages of managed profile" into lmp-devZoltan Szatmary-Ban2014-09-251-1/+2
|\
| * Make Force Stop button work for packages of managed profileZoltan Szatmary-Ban2014-09-231-1/+2
| | | | | | | | | | | | | | Call force stop of a package for the correct profile. Bug: 17580914 Change-Id: I7c601618f7819d6775cf422dca70a929ee1089d9
* | Merge "Start PowerUsageDetails fragment in the correct activity" into lmp-devZoltan Szatmary-Ban2014-09-251-2/+8
|\ \
| * | Start PowerUsageDetails fragment in the correct activityZoltan Szatmary-Ban2014-09-241-2/+8
| |/ | | | | | | | | | | | | | | | | Make sure the stack does not get corrupted by running a fragment as a managed profile in an activity that runs as primary profile. Bug:17523189 Change-Id: I7a066a411c7995ffe44b73c6dc27b24eec85b5b3
* | Fix bug #17594602 Battery Usage refresh icon needs updatingFabrice Di Meglio2014-09-231-1/+1
|/ | | | | | - use the correct Framework asset for "refresh" Change-Id: I57d55c0646fb3a8693cf5cc51a4c7fa213873385
* Show Power usage details for the correct userZoltan Szatmary-Ban2014-09-181-2/+5
| | | | | | | | | Settings > Battery > Details has to observe managed profiles and start the Power Usage Detail fragment for the correct profile. Bug: 17523189 Change-Id: I7a47b972a8a0492b4a411197cd2c8c65f24c2e7e
* Little more on issue #17495264: tweak when we ignore initial times.Dianne Hackborn2014-09-151-1/+6
| | | | Change-Id: I7053eb64d7d2281984baef9606334c2df4783cc5
* Fix issue #17495264: Battery history graph is badDianne Hackborn2014-09-141-19/+36
| | | | | | Deal better with wall clock time changes in the battery history. Change-Id: I9d63edafc37bbf663e328a08ba09300be2142594
* Settings: Use new PowerManager call to set low power mode.John Spurlock2014-09-141-12/+55
| | | | | | | | | | | Bind the master switch to the power manager state instead of directly to the single setting. Depends on frameworks/base change: Ic030504c9cad9868a7137abbe837b170da37852b Bug:17460535 Change-Id: I8c68735308f58fdc07d4f64e765e84286918be7a
* Fix some things in settings: manage apps, battery, procstatsDianne Hackborn2014-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* Start cleaning up percentage formatting in Settings.Elliott Hughes2014-09-034-94/+9
| | | | | | | | 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
* Fix issues #16941902, #16901402, and #16135174.Dianne Hackborn2014-08-271-2/+9
| | | | | | | | | | | | | | | | | | Issue #16941902: Charged % of battery is mismatching between phone status area(top right corner) and battery screen Need to make sure the stats are updated when we come back to the foreground. Issue #16901402: Crash in Settings observed after tap on Battery option Don't allow us to have a null stats object. Issue #16135174: Apps page "smoke" gradient footer must be removed Finish tweaking layout to match mocks. Change-Id: I29d56b506a9468ec548feef7c3f9502a9b16ef4d
* Fix app icons on some Settings screensZoltan Szatmary-Ban2014-08-142-8/+32
| | | | | | | | | App icons appeared as the default icon and sometimes without the corp badge on Data Usage and Battery screens for applications that were only installed for the managed profile. This CL fixes the issue. Bug:16705204 Change-Id: I778d36554feb19f28f3cb9321a291cab3d3e17bb
* Fix issues in Settings: 16660423, 13172381, 16868094Dianne Hackborn2014-08-101-1/+8
| | | | | | | | | | | | | 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
* Merge "Move over to CharSequence version of badging method." into lmp-devKenny Guy2014-08-072-5/+3
|\
| * Move over to CharSequence version of badging method.Kenny Guy2014-08-072-5/+3
| | | | | | | | | | Bug: 16484455 Change-Id: Ie5ee010efc439219cb71fd4241fdb798a5f4ea12
* | Fix issue #16555033: Battery history overflowing too muchDianne Hackborn2014-08-073-18/+10
|/ | | | | | | | | Use new mechanism to retrieve battery stats, now that they can be much larger. Make sure these will ever end up going through an IPC. Change-Id: Ic582a61d736e24bddc905082c1565ece00fcbb29
* Badge texts correctly for accessibility in SettingsZoltan Szatmary-Ban2014-08-072-2/+17
| | | | | | | | If an app is a managed profile's app then its label should read correctly by TalkBack. Affected screens: Data Usage, Location, Battery. Bug:16053981 Change-Id: I393c0ebf56917032d619b1e39b4bf141ee236981