Wesley.CW Wang
7fb4cbf005
Adjust optimize page logging timing
...
- Log the optimize mode only when leave this page and mode changed
- Update mOptimizationMode at onResume to make sure the state is sync
with framework
Bug: 195306545
Test: make SettingsRoboTests
Change-Id: Iab116220cd7d2b1bdb1c170c4b47016c763bf4fe
2021-11-03 12:05:15 +08:00
ykhung
e7d4fefde0
Fix NPE issue of usage detailed page learn more button click event am: 8f0291cd1a
am: b85bf67314
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16174737
Change-Id: I210c941a06b9d905bb8b37500377ad088f1d3230
2021-11-02 18:25:27 +00:00
ykhung
b85bf67314
Fix NPE issue of usage detailed page learn more button click event am: 8f0291cd1a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16174737
Change-Id: I06e12f5250b7abe8ce5546cf3c91952f6704fe6e
2021-11-02 18:13:07 +00:00
ykhung
8f0291cd1a
Fix NPE issue of usage detailed page learn more button click event
...
root cause: some OEMs can not provide valid intent for help & feedback
solution: check the intent is vaild or not before show up the help content
Bug: 204844010
Test: make RunSettingsRoboTests
Change-Id: I4e7a7c926205be1179d55d33ada345024c8a44ab
2021-11-02 16:34:34 +00:00
ykhung
f5d2293cf3
Avoid intermediate touch hover effect when a11y is enabled am: ae5bddc5e5
am: 00bc734b6a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16170323
Change-Id: Ifa6ecd6da1d6cc2c577aa8bcd4aa7c2e97c65cb6
2021-11-02 10:43:34 +00:00
ykhung
00bc734b6a
Avoid intermediate touch hover effect when a11y is enabled am: ae5bddc5e5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16170323
Change-Id: Ibcf69b3ff520458b486fdecd0ec92d8983167bac
2021-11-02 10:30:50 +00:00
ykhung
ae5bddc5e5
Avoid intermediate touch hover effect when a11y is enabled
...
Bug: 201501553
Test: make SettingsRoboTests
Change-Id: I08e64a73547f71281fa94dc56ba8fe08312ebed0
2021-11-02 16:47:31 +08:00
Jason Chiu
7f6b9e26c9
Merge changes from topic "slice-highlight" into sc-v2-dev am: 6821b6be32
am: 026b1b5df6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16151654
Change-Id: If46903bb26371ea90075d1c6cc063af4d10a88d4
2021-11-02 02:43:42 +00:00
Jason Chiu
026b1b5df6
Merge changes from topic "slice-highlight" into sc-v2-dev am: 6821b6be32
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16151654
Change-Id: Ib03d41631d8bf961fa3ff3957eb5452411da7792
2021-11-02 02:28:16 +00:00
Jason Chiu
6821b6be32
Merge changes from topic "slice-highlight" into sc-v2-dev
...
* changes:
Add highlight menu keys for all toggle pref controllers and custom slices
Support slice deep links highlighting menu entries
2021-11-02 02:14:09 +00:00
TreeHugger Robot
9abf3e5e76
Merge "Optimize battery optimize page control flow" into sc-v2-dev am: c6a5bcc933
am: 137f9acac1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16138630
Change-Id: I53031d3f0c7abe2ac1a089534f0908c939ffb49c
2021-11-01 08:20:08 +00:00
TreeHugger Robot
137f9acac1
Merge "Optimize battery optimize page control flow" into sc-v2-dev am: c6a5bcc933
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16138630
Change-Id: Ic9d497517b6778c413909917d485575a054dc331
2021-11-01 08:07:13 +00:00
Jason Chiu
2989c50a23
Add highlight menu keys for all toggle pref controllers and custom slices
...
Bug: 204695404
Test: manual, robotest build pass, unit
Change-Id: Iad2e28ada8ddb766ffa7eff2c8dc581250cbd6f8
2021-11-01 15:00:18 +08:00
Wesley.CW Wang
151b88f76f
Optimize battery optimize page control flow
...
- Post the setup logic into background and setup once only when leaving
this page, this can improve the performance since we won't setup
every time when switching preference
Bug: 195306545
Bug: 199892006
Test: make SettingsRoboTests
Change-Id: I1c3ee4673cf5cdba0abe39f208dfb1412082c579
2021-11-01 14:52:42 +08:00
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