YUKAI HUNG
da81c7c7bd
Merge "Fix the ExpandDividerPreference will flash one time in some corner cases" into sc-v2-dev am: 0ed32fca75 am: 22a28d3f7e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16115940
Change-Id: I08875c7fdfeb8151194ecc93ff351a19945fb2aa
2021-10-25 17:12:57 +00:00
YUKAI HUNG
22a28d3f7e
Merge "Fix the ExpandDividerPreference will flash one time in some corner cases" into sc-v2-dev am: 0ed32fca75
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16115940
Change-Id: I953a2e45433c6f7c563392ab98272261b37f3e9e
2021-10-25 17:02:36 +00:00
ykhung
36a57f4720
Fix the ExpandDividerPreference will flash one time in some corner cases
...
Bug: 204051529
Test: make SettingsRoboTests
Change-Id: Iaead6d2a596cbbf0281045b40e4b00f23ceb9f09
2021-10-25 22:22:49 +08:00
ykhung
b69983414e
Log battery saver schedule type and percentage when its value is changed am: aa73e48950 am: 7681f7ee7f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16101562
Change-Id: I03f16dc4154ffdbe086c652fcea0353dd1661312
2021-10-25 04:18:12 +00:00
ykhung
bbec97e078
Remove saver schedule type logging entry from BatterySaverController am: 58ff194380 am: 96c6fcb778
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16101561
Change-Id: I41807b943a306f55edd24531057d41ef826fb2d6
2021-10-25 04:18:09 +00:00
ykhung
7681f7ee7f
Log battery saver schedule type and percentage when its value is changed am: aa73e48950
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16101562
Change-Id: I7f555cccd53ae5c6e9e564d339042264e0601208
2021-10-25 04:03:40 +00:00
ykhung
96c6fcb778
Remove saver schedule type logging entry from BatterySaverController am: 58ff194380
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16101561
Change-Id: Id7810fa1777a91cdb404dd892117e42516d25417
2021-10-25 04:03:37 +00:00
ykhung
aa73e48950
Log battery saver schedule type and percentage when its value is changed
...
Bug: 15125481
Test: make SettingsGoogleRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: Ia728a4ea2da3930201d5634abda7aa8a8dd72133
2021-10-25 10:40:08 +08:00
ykhung
58ff194380
Remove saver schedule type logging entry from BatterySaverController
...
Bug: 15125481
Test: make SettingsGoogleRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: I698c4ef71217ecd68034cd5761e2b94cd868b38f
2021-10-23 15:27:37 +08:00
ykhung
62bff21618
Unitfy saver schedule type log format and log in the background am: 62a350d18c am: e814c55b74
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16101560
Change-Id: Idaa1bf4877d7be7e37eb4e75f373846e39a48df1
2021-10-22 13:53:50 +00:00
ykhung
e814c55b74
Unitfy saver schedule type log format and log in the background am: 62a350d18c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16101560
Change-Id: I1a555fbba1cada703423c3f94d41f67b5b89b00d
2021-10-22 13:42:38 +00:00
ykhung
62a350d18c
Unitfy saver schedule type log format and log in the background
...
Bug: 195306545
Test: make SettingsGoogleRoboTests
Change-Id: I13a01de804c3907d52f09def900ee1a057257ce3
2021-10-22 19:56:51 +08:00
YUKAI HUNG
265d683dc1
Merge "Update app usage page power summary" into sc-v2-dev am: 8e97bdd76c am: 054f3b5199
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16091765
Change-Id: Ic7bf43d79304b740b5b6cf2a148b317860ea4869
2021-10-21 11:08:48 +00:00
YUKAI HUNG
054f3b5199
Merge "Update app usage page power summary" into sc-v2-dev am: 8e97bdd76c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16091765
Change-Id: Ifbe0fee50f01f00784bd65aa6124081b41b1f3c7
2021-10-21 10:48:11 +00:00
Wesley.CW Wang
23a5fb5e74
Update app usage page power summary
...
- Present empty string when this app consumed power but no usage time,
usually they are some system components
Bug: 197749108
Test: make -j64 RunSettingsRoboTest
Change-Id: I1e88babb30c871748fa1f5fc23c7b4d834e384fd
2021-10-21 17:29:36 +08:00
TreeHugger Robot
40f8910e8f
Merge "Revert "Add PowerSaveWhitelistExceptIdle as Optimizted modes condition"" into sc-v2-dev am: 57919fbcfb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16063843
Change-Id: Ia964565d7a79b311b34e7be235ebb7c38b92793c
2021-10-18 15:25:25 +00:00
Wesley.CW Wang
d11dec2f82
Revert "Add PowerSaveWhitelistExceptIdle as Optimizted modes condition"
...
- Reverts commit e7cca4cd81
- Add try-catch to handle unexpected operate
Reason for revert: Previous fix will cause a side effect which makes app stuck at Optimize mode after switching state from Unrestricted to Optimize, add a try catch to handle previous issue first
BYPASS_INCLUSIVE_LANGUAGE_REASON=legacy naming, not edit by this code change
Bug: 199892006
Test: make SettingsRoboTests
Change-Id: I3b1850ab66bbf4cd605f14152a244a8ed7edd578
Merged-In: I3b1850ab66bbf4cd605f14152a244a8ed7edd578
2021-10-18 09:03:06 +00:00
Wesley.CW Wang
2146a873c2
Revert "Add PowerSaveWhitelistExceptIdle as Optimizted modes condition"
...
- Reverts commit e7cca4cd81
- Add try-catch to handle unexpected operate
Reason for revert: Previous fix will cause a side effect which makes app stuck at Optimize mode after switching state from Unrestricted to Optimize, add a try catch to handle previous issue first
BYPASS_INCLUSIVE_LANGUAGE_REASON=legacy naming, not edit by this code change
Bug: 199892006
Test: make SettingsRoboTests
Change-Id: I3b1850ab66bbf4cd605f14152a244a8ed7edd578
2021-10-18 09:02:11 +00:00
TreeHugger Robot
08390e9e87
Merge "Revert "Add PowerSaveWhitelistExceptIdle as Optimizted modes condition""
2021-10-14 11:18:19 +00:00
YUKAI HUNG
6d75dc803f
Merge "[B&R] avoid to backup & restore app which is in the PowerSaveWhitelistExceptIdle " into sc-v2-dev am: c4f761c079 am: 3d0d6a38aa
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16048454
Change-Id: I112627c5f6f56f95e8195f7c5be458da09cc5adf
2021-10-14 10:06:19 +00:00
YUKAI HUNG
3d0d6a38aa
Merge "[B&R] avoid to backup & restore app which is in the PowerSaveWhitelistExceptIdle " into sc-v2-dev am: c4f761c079
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16048454
Change-Id: Iaa9b0143b6dfc96aba4fd83982f2ebeb0c2bd575
2021-10-14 09:56:48 +00:00
YUKAI HUNG
c4f761c079
Merge "[B&R] avoid to backup & restore app which is in the PowerSaveWhitelistExceptIdle " into sc-v2-dev
2021-10-14 09:44:47 +00:00
YUKAI HUNG
b1e10399cc
[B&R] avoid to backup & restore app which is in the PowerSaveWhitelistExceptIdle
...
This reverts commit 9de5fe158d .
Reason for revert: revert it too based on ag/16048452
Change-Id: I97ffcfcbc37fb4a99e66213023b95af759d1ed3e
2021-10-14 09:34:27 +00:00
Wesley Wang
b900e0e43b
Revert "Add PowerSaveWhitelistExceptIdle as Optimizted modes condition"
...
This reverts commit 3f7839cad0 .
Reason for revert: This fix will cause a side effect which makes app switch state from Unrestricted to Optimize then it will lock at Optimize mode only, will prepare other cl to fix the previous issue
Change-Id: Ic5232eb0099fa1591f15e72747eca4d08b9af9b9
2021-10-14 09:31:13 +00:00
ykhung
3c497cc715
Adjust Battery Saver percentage slide size (sync from ag/13330588)
...
Screenshots:
https://screenshot.googleplex.com/72qRevtZXA4PTcg.png
https://screenshot.googleplex.com/3rJjDRehdsPL8AQ.png
Bug: 157532287
Bug: 202295741
Test: make SettingsGoogleRoboTests
Merged-In: Ia4453261c22919e325a971237efc79b4887362ec
Change-Id: I09fe6fe3de6da45959ee0babbd34202340ec661d
2021-10-13 11:26:15 +08:00
YUKAI HUNG
a6e52a5b65
Merge "Add try-catch to avoid IllegalStateException in the data parsing" into sc-v2-dev am: f438abe0d9 am: 70ad3f590b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16038010
Change-Id: I59602b4653741017b50a4e2bcff6d5e00fb89975
2021-10-12 12:06:20 +00:00
ykhung
72a25f16ee
Add try-catch to avoid IllegalStateException in the data parsing
...
if the BatteryStats service is crashed, we will provide the default instance for all modules in the battery settings, but it will encounter the IllegalStateException if we try to parse its history content (reference: ag/15926630)
Bug: 201729939
Test: make SettingsRoboTests
Change-Id: Ifebb48551e371e7c4e121969cb92cf95aa026812
2021-10-12 09:37:41 +00:00
Dmitri Plotnikov
4b8a7bcaa5
Use a simpler constructor
...
The constructor with two arguments is changing
Bug: 195306545
Test: make RunSettingsRoboTests
Change-Id: I56288bb5b3eb9d71ae49128ccbc72fd57abb48d1
2021-10-12 05:17:14 +00:00
TreeHugger Robot
d2a4b6c7e8
Merge "Update to new method of getting display power profile constants" into sc-v2-dev am: d754409050 am: d8d7b901b0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15927847
Change-Id: Iae7473f3c59b46ea22a71f23a1d480a013fbe097
2021-10-08 06:22:12 +00:00
TreeHugger Robot
d754409050
Merge "Update to new method of getting display power profile constants" into sc-v2-dev
2021-10-08 02:28:51 +00:00
TreeHugger Robot
bf19d369a0
Merge "Update adaptive preference summary" into sc-v2-dev am: 6ff60d7771 am: e6a10f3487
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15981706
Change-Id: If760aaa0006cadb1f5cbb999b977ffe719dfb6d7
2021-10-06 10:19:36 +00:00
YUKAI HUNG
6fc7e95f81
Merge "Support mouse hover event for BatteryChartView to highlight slot" into sc-v2-dev am: 14139de0cf am: e1d45963a6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15988049
Change-Id: I634f692a0706cf710571c58c6c7d4970effa7f5a
2021-10-06 10:14:07 +00:00
TreeHugger Robot
6ff60d7771
Merge "Update adaptive preference summary" into sc-v2-dev
2021-10-06 10:03:55 +00:00
ykhung
8eff5cc17e
Support mouse hover event for BatteryChartView to highlight slot
...
https://drive.google.com/file/d/19Ms4JOPVfQ6rfXr71vTeXJLSvJqJtRfw/
Bug: 201501553
Test: make SettingsRoboTests
Change-Id: I2c03585163ddb7809a09944aec326a41f6bd4758
2021-10-06 08:24:52 +00:00
YUKAI HUNG
0cb11a1f91
Merge "Replace the cached MotionEvent with getX() value to improve GC state" into sc-v2-dev am: f110e8a28c am: 4bc427ece3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15989087
Change-Id: Ief75f6bdc4ba97b4ad7ecbbbff5a7bbfd67b2452
2021-10-06 06:42:43 +00:00
ykhung
d1dd4cdf2c
Replace the cached MotionEvent with getX() value to improve GC state
...
avoid to cache the whole MotionEvent, since it will clone the whole
instance fields again to cause GC triggering, since we only need the
getX() value in the MotionEvent, rather than the whole data
Bug: 195306545
Test: make SettingsRoboTests
Change-Id: Ic3840b0a4eb6587ec229ba3de2c62ec868d1a535
2021-10-06 10:35:50 +08:00
TreeHugger Robot
8c38c77e1b
Merge "Post UI update later a while to avoid screen sluggish as possible" into sc-v2-dev am: 64dbb05a69 am: f15fa03d21
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15982192
Change-Id: Idf66dbf4f0f83d5bed598387ba9537bd8015a723
2021-10-06 02:10:20 +00:00
ykhung
33612098b3
Post UI update later a while to avoid screen sluggish as possible
...
When users turned on/off the saver mode, the system is busy in update
configurations and the dark/light theme, we should avoid updating the UI
in the same time to makes users feel the animation is not smooth
Bug: 201752975
Test: make -j64 RunSettingsRoboTests
Change-Id: I4c28af267616f796438a505e84ce376321c74981
2021-10-06 08:43:57 +08:00
Michael Wachenschwanz
dc150492e1
Update to new method of getting display power profile constants
...
Bug: 200226329
Test: builds and flashes
Change-Id: I4abcb609a383224bba1550cfd3e50bb68f58ba72
2021-10-05 11:32:13 -07:00
Wesley.CW Wang
4137253658
Update adaptive preference summary
...
Bug: 195627250
Test: make RunSettingsRoboTests
Change-Id: I50ed736bbba7ac8d3d6fcf026e9e17e2116f86a7
2021-10-05 17:52:43 +08:00
TreeHugger Robot
06d312f0af
Merge "Punt battery status action when entering Settings main page" into sc-v2-dev am: 99554d3c34 am: d9195b80af
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15938356
Change-Id: I3b030dd9ac65b93500814b62cae4ef48ceb3bc1b
2021-10-01 08:58:55 +00:00
TreeHugger Robot
99554d3c34
Merge "Punt battery status action when entering Settings main page" into sc-v2-dev
2021-10-01 08:34:35 +00:00
Wesley.CW Wang
0cd29a70a4
Punt battery status action when entering Settings main page
...
- Checking battery sharing states at the beging may have some performance issue, post battery status update to background thread to avoid ANR
Bug: 193600924
Test: make SettingsRoboTests
Change-Id: I3b73e6bd4f952bc832783b9b3b5d45db560d088c
2021-10-01 15:15:25 +08:00
ykhung
454698d97e
Invoke close() method for BatteryUsageStats to close cursor window
...
invoke close() method for BatteryUsageStats to close cursor window,
since BatteryUsageStats will implement "Closeable" interface in T.
(from Dimitri's request)
Bug: 201229421
Test: make SettingsRoboTests
Change-Id: Ibfca404d00cce51405cffddb636f685869ac130b
2021-09-29 00:44:11 +08:00
ykhung
96a8e63ebd
[Robustness] protect get battery stats from DeadSystemException am: e893a890ca am: f63b2e08da
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15926630
Change-Id: I3730258d026f39fe0e31e080128d812231ca3e00
2021-09-28 11:48:53 +00:00
ykhung
e893a890ca
[Robustness] protect get battery stats from DeadSystemException
...
Refine the original workaround patch in the ag/15527095 from NPE to
return default BatteryUsageStats instance as we merged in the
ag/15919139 (align the same solution).
Bug: 195306545
Test: make SettingsRoboTests
Change-Id: Ic03e8296d16ecb8629155f75727e9cde48c303eb
2021-09-28 10:00:50 +00:00
YUKAI HUNG
a006e4c8fc
Merge "[Security] resolve overlay attack on RequestIgnoreBatteryOptimizations" into sc-v2-dev am: d24f289548 am: e401e37369
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15898228
Change-Id: I750731ab9eb4bc063b33b2ca4c80999f5544b64f
2021-09-24 02:56:15 +00:00
YUKAI HUNG
e191079948
Merge "[Security] resolve CRLF attack on RequestIgnoreBatteryOptimizations" into sc-v2-dev am: 93f6df76be am: 3691ddaea2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15898227
Change-Id: I67cc5a21ef4797cd823b000b1c34be6d89bb7a05
2021-09-24 02:38:47 +00:00
YUKAI HUNG
d24f289548
Merge "[Security] resolve overlay attack on RequestIgnoreBatteryOptimizations" into sc-v2-dev
2021-09-24 02:28:41 +00:00
ykhung
a8a2075fd0
[Security] resolve overlay attack on RequestIgnoreBatteryOptimizations
...
we should put the addSystemFlags() after onCreate() method rather than the original onStart() method (refer the proposed solution in b/199167909)
Bug: 199167909
Test: make SettingsRoboTests
Change-Id: Ic7361443bfa2e1a6d8d962708c794fa0122a691c
2021-09-24 02:27:40 +00:00