Commit Graph

1451 Commits

Author SHA1 Message Date
Fan Zhang
6507613ebc Log visibility change for all fragments.
Bug: 30681771
Test: SettingsUnitTests

Refactor visibility logging from InstrumentedFragment into a mixin. And
apply mixin in remaining fragments.

Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
2016-08-18 14:04:13 -07:00
Salvador Martinez
b9ab480a29 Disabled BSM mode switch when plugged in
Battery Saver mode can no longer be toggled
when the device is plugged in. Additionaly,
A content description was added to the switch
so that talkback says something when it is single
tapped.

Bug: 30083279
Change-Id: Id901598dbe13c443cae0b32769a2e3ef50428c08
2016-08-08 13:55:07 -07:00
Adam Lesinski
f584eaa03a Update FakeUid with new methods
Bug:28931278
Change-Id: I845337633b1840ae66bda065985624aa67b070df
2016-07-15 18:08:29 -07:00
Jason Monk
d589bafc4a Update battery content descriptions with labels
Change-Id: I0ad4ca753f8f5e1a01e2e21181526ddb921d487a
Fixes: 28301362
2016-06-21 13:36:57 -04:00
Jason Monk
a627844fed Fix only one battery stat showing sometimes.
Take into account the prefs we are currently caching within the
group when counting how many prefs have been added.

Change-Id: I962acd41592c1a9366882711d3f4944bffb54d22
Fixes: 27931457
2016-04-21 10:12:30 -04:00
Jason Monk
43fa74b9fd Merge "Fix battery history details" into nyc-dev 2016-04-11 18:58:25 +00:00
Jason Monk
0b026116be Fix battery history details
Change-Id: Ibf73d28d227574cba0866accdf7c9dc810b24906
Fixes: 27844566
2016-04-11 14:55:34 -04:00
Jason Monk
e04517611f Pull pref summaries from power usage summary
Change-Id: I9bd3d1041576e183e7e5e03aaecc5128ea5227c2
Fixes: 27644604
2016-04-11 10:25:04 -04:00
Jason Monk
be8d5aa2b9 Settings tweaks
Change-Id: I68829fa8e49534d4635a008c94dced3c7ab6f4b1
Fixes: 27834471
Fixes: 27834626
Fixes: 27567838
Fixes: 27834676
2016-04-08 16:44:31 -04:00
Jason Monk
3676b931d9 Add moar dividers
Bug: 27834471
Change-Id: I575040edcdf76124f21a667e64762acb86a65cb2
2016-04-04 13:20:59 -04:00
Jason Monk
f38fb38f26 Switch to whitelist for animations
Disable animations for all SettingsPreferenceFragments, unless they
explicitly ask for them before creating their preference screens.

Turn it on for all fragments using the cached removal currently.

Bug: 27713314
Change-Id: I1bc14e7aeb3ee5b8ddb4f3547f472305cd312edf
2016-03-18 15:16:12 -04:00
Jason Monk
045e518b55 Fix battery history detail up
Bug: 27476391
Change-Id: I21f2bbbf4306d36ffa1c4825ecaebd45dca50171
2016-03-16 16:29:26 -04:00
Jason Monk
0d6a574100 Try to recycle prefs in battery summary
Bug: 27404159
Change-Id: I5a71413f22e14b8300b6821da661a613392a06e0
2016-03-16 15:52:35 -04:00
Joe Onorato
f10a422b54 Add method to BatteryStats
Change-Id: Ie05a1ff4ea081bed1777882d3ec6fd84fc5ba98f
2016-03-09 15:27:29 -08:00
Jason Monk
d1ea8a05b0 Fix and update battery detail page
Bug: 27205329
Change-Id: Ie984348d59c1b15bec7283a94a94489f78cacb79
2016-02-23 12:45:20 -05:00
Jason Monk
9cc88e5e5e Make battery settings use new battery graph.
Change-Id: I633a8750f9668c6315cd42866297ac3460375c22
2016-02-18 14:12:32 -05:00
Adam Lesinski
31b5758fc7 Update FakeUid interface to match BatteryStats.Uid
Change-Id: I900fed93c11f8d424ca0dd2afe562b421cd30eeb
2016-02-01 15:18:16 -08:00
Adam Lesinski
af1f84a0cd Merge "Update FakeUid to match new methods in BatteryStats.Uid interface" 2016-01-28 00:03:57 +00:00
Chris Wren
9d1bfd1e8d port settings over to new metrics enum
Change-Id: I0b3efd2f4db773ccbc52bfe59ee8eb0dab9584fb
2016-01-27 10:58:58 -05:00
Adam Lesinski
32255ccc13 Update FakeUid to match new methods in BatteryStats.Uid interface
Change-Id: I7574acbc11c93d93c965e4af80835a0dc59dc360
2016-01-26 15:04:35 -08:00
Adam Lesinski
d4574a06b2 Add bt traffic accounting
Bug:26039657
Change-Id: I8f8d0389b5b55e02b4a3528b010b76938d87a2a3
2016-01-18 18:39:47 -08:00
Jason Monk
27985e1f92 Move some battery stuff to SettingsLib
So that it can be used in the battery detail panel

Change-Id: I31eac974d29838726450940109b52d458f29c192
2016-01-08 14:13:05 -05:00
Jason Monk
af24b6377e Add battery saver conditional
Change-Id: If80b749185537f252dae88230f80b29bcf321fdf
2015-12-16 12:38:32 -05:00
Jason Monk
3069581512 Summary support for Settings Home
Also add summaries to a few of the major items.

Change-Id: I17924f14941fe095d819e142cdd21cf4b4e9ffd1
2015-11-17 13:51:45 -05:00
Philip P. Moltmann
99b78b3eeb Deal with daylight savings time in battery chart.
Without daylight saving time the middle between two beginnings of days
can only be another beginning of a day or noon. Due to daylight savings
time this can be shifted by up to one hour in either direction.

This change corrects the middle value.

Testing Done: Tried the calculation of the three values with Lisbon time
and

mStartWallTime = 1414254027000L;
mEndWallTime = 1414473627000L;

which spans over 10/26/2014, the day daylight saving ended in Lisbon.

Change-Id: I2d2ba6e1fd2e409ca3f6b0f7674ec250da7ffad5
2015-10-27 12:19:46 -07:00
Jason Monk
39b467482d Depend on support lib preferences
Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
2015-10-13 10:12:20 -04:00
Adam Lesinski
1f78f774ca Update implementation to match BatteryStats.Uid
(cherry picked from commit 2350b8445c)

Change-Id: I4289fbb912f3109d0be6a9ab4254bea4c2866d3d
2015-09-18 17:12:30 -07:00
Julia Reynolds
f08185b8e3 Differentiate battery optimization string.
Bug: 23585186
Change-Id: If98629c7a3204f2600c9d7d9c257de24e826f085
2015-09-08 12:49:32 -04:00
Wei Liu
9dde0669f2 am 656c805b: am 70238114: am 6e58d516: Refactor UidDetailProvider and its dependencies to SettingsLib.
* commit '656c805bf38dd299ae25fbe39806650122aa6314':
  Refactor UidDetailProvider and its dependencies to SettingsLib.
2015-08-25 18:45:34 +00:00
Wei Liu
6e58d516f0 Refactor UidDetailProvider and its dependencies to SettingsLib.
so that it can be reused by Wear app data usage.

Change-Id: Id05f888274e15fbeffa175ee8073de02a8966867
2015-08-25 11:02:59 -07:00
Julia Reynolds
e492ee06ad Make the app header bar more consistent.
- Don't include info link if just came from app info page
- include back button on app info page when launched from header
Bug: 22203029

Change-Id: I737332a487c41e0a93d161b55659700a1f936844
2015-08-19 15:18:55 -04:00
Julia Reynolds
4ffebed985 am c1682e0a: am 904a7e96: am db4a029f: am 62fdd558: am 0ece6a32: String update for battery details page.
* commit 'c1682e0a7270f7805267f7cfaa66a2d22a8d83df':
  String update for battery details page.
2015-08-17 17:57:03 +00:00
Julia Reynolds
0ece6a3241 String update for battery details page.
Bug: 22978210
Change-Id: I87d231868d6116c3f0d88a6a6d3ca5fac1ce8c90
2015-08-17 13:14:38 -04:00
Adam Lesinski
516ee46c48 Merge commit 'f34d3111' into manualmerge
Change-Id: I4bc1b449c4b48b6f295035457b66b95e180c6ddd
2015-08-14 14:22:48 -07:00
Adam Lesinski
8f743471d5 BatteryStats: Fix coalescing of shared app GIDs and system UIDs
UIDs that consumed power and were actually shared app GIDs are now
coelsced for system apps as well as regular applications. In addition,
system UIDs like logd, NFC, DRM, etc are coalesced into Android System.

Bug:23189342
Change-Id: I6c8eb4baec66fba3d1f71a155d8ea1fe920ffec9
2015-08-13 22:12:47 -07:00
Dianne Hackborn
70c52fcbf8 am 0583f297: am b98206c9: am 01cfaade: am e9bcef35: am be4df036: Fix issue #23037899: Support for Battery Optimization permission + Dialog
* commit '0583f297f8223cacda71bda5b2b896cc03031b89':
  Fix issue #23037899: Support for Battery Optimization permission + Dialog
2015-08-11 00:50:00 +00:00
Dianne Hackborn
be4df036e1 Fix issue #23037899: Support for Battery Optimization permission + Dialog
New pretty dialog.

Change-Id: I6094b83139beffc407b01049a0d9d1f85a95df07
2015-08-10 17:07:14 -07:00
Julia Reynolds
f4a6994106 am 0b514bdd: am 415d6a24: am f47896d2: am 77dc56bc: am 2557d8a2: Merge "Wrap text on long preferences." into mnc-dev
* commit '0b514bdd219e28cb1c920265fe36c1c30a6c8d5c':
  Wrap text on long preferences.
2015-08-10 21:07:50 +00:00
Jason Monk
b4b4e2a981 am d1cecdd3: am 55511dab: am 9614b503: am a1f64bf2: am cf1e22f4: Merge "Remove extra help & feedback menu from power usage" into mnc-dev
* commit 'd1cecdd33e7366e5b23dcc7f05078bde0b43c13c':
  Remove extra help & feedback menu from power usage
2015-08-10 20:39:46 +00:00
Julia Reynolds
2557d8a251 Merge "Wrap text on long preferences." into mnc-dev 2015-08-10 20:32:49 +00:00
Jason Monk
3006c377c2 Remove extra help & feedback menu from power usage
Bug: 23044354
Change-Id: Ic722655a50eddbf4f8e53a2b73ed49b5cf6426a4
2015-08-10 15:58:09 -04:00
Julia Reynolds
13b1ef1482 am af3414c2: am 559a3e78: am e113f0c4: am b7028f25: am 5ab0e183: Merge "Hide optimization control on battery details page for non whitelisted apps." into mnc-dev
* commit 'af3414c2c759f07d3febb89cd161bac4f91ce21a':
  Hide optimization control on battery details page for non whitelisted apps.
2015-08-07 17:04:24 +00:00
Julia Reynolds
89a7a88124 Wrap text on long preferences.
Bug: 22987590
Change-Id: Iaef2c7d7d4581372a381d537f6d85a64d94bdf12
2015-08-06 14:23:47 -04:00
Julia Reynolds
2f01c5f5b5 Hide optimization control on battery details page for non whitelisted apps.
Bug: 22978210
Change-Id: If532960478dccf6ef9bea08a27167e1850749277
2015-08-06 11:42:40 -04:00
Chris Wren
aa352b39ca am 96117fc7: am 97ad12db: am 59f07cc7: am cb176a41: am 2a56d7f2: Merge "fix InactiveApps instrumentation" into mnc-dev
* commit '96117fc751d45f8ab307512821c9a19ee48249f6':
  fix InactiveApps instrumentation
2015-07-29 17:31:01 +00:00
Xiaohui Chen
e43640b376 Merge "sys user split: first pass updating Settings" 2015-07-28 17:39:59 +00:00
Chris Wren
f464a9a4a4 fix InactiveApps instrumentation
Bug: 21114836
Change-Id: I84357981158d057c2d302822801fb54ad82a901c
2015-07-28 16:56:22 +00:00
Xiaohui Chen
44879a387a sys user split: first pass updating Settings
Update various places in Settings to use "admin" ueser flag
instead of checking user id "0".  This should be no-op in
single user mode since the only admin user would be user 0.
In split system user mode, this will correctly ACL admin
user instead of non-interactive system user.

Bug: 19913735
Change-Id: Ida4d59c5f689ea0dc34b3b3ff0822b087fa0afd6
2015-07-27 15:39:28 -07:00
Jason Monk
3b521b60d3 Merge "Battery summary - tint uid 0 icon" into mnc-dev 2015-07-27 18:36:10 +00:00
Jason Monk
5ef0a9e826 Battery summary - tint uid 0 icon
Bug: 22657823
Change-Id: If360420ada70777520ccc682022f7f4e2e50a70b
2015-07-27 13:03:42 -04:00