mxyyiyi
511b67e0b8
Get the application context and pass into to a background executor.
...
Bug: 360260798
Test: manual
Flag: EXEMPT bug fix
Change-Id: I77bf9a7be75257be7871714afaf1fba81787f8b1
2024-08-19 17:02:32 +08:00
mxyyiyi
8eaf8edf7e
Add AppOptimizationModeEventsUtils to save & update app optimization mode expiration events.
...
- [Update] Save app optimizaiton mode set & expire events from turbo.
- [Reset ] Restore optimization mode for expired events in Periodic job.
- [Delete] Cancel expiration event if user updates mode in app usage page.
Bug: 338965652
Test: atest + manual
Change-Id: I3fb7311207da1bdb1146ea1ff041aca6adb66052
2024-06-03 19:42:26 +08:00
Jacky Wang
ef8a51fac8
Reset app preferences does not trigger backup for App battery usages
...
Bug: 328712606
Fix: 328712606
Test: UT && Verify logcat when change/reset App battery usages
Change-Id: Ia3917c8dc2654185f5f048c048362fd47379b7d1
2024-03-11 13:41:03 +08:00
Jacky Wang
006bf17c4f
[DataStore] Migrate BatteryBackupHelper to BackupRestoreStorage
...
Bug: 325144964
Test: Manual tests
Change-Id: I19f7c78969d70648d1e45f1627827d98b1fdd1e0
2024-03-03 22:42:00 +08:00
mxyyiyi
f33597b41d
Update log metrics in battery usage.
...
- Remove redundant logs
- Update action id
Bug: 323495266
Test: manual
Change-Id: I3146405912f3df152c7a0d525ba06ba76e2e02df
2024-02-18 16:00:43 +08:00
mxyyiyi
06fa244255
Update action log metircs of app optimize mode.
...
Bug: 317329360
Test: manual
Change-Id: Id4cd610a5bcc7988ecbd4545f5ef77a5253aac33
2023-12-27 14:13:25 +08:00
Chaohui Wang
08a1c9876e
Revert^2 "Migrate to CompoundButton.OnCheckedChangeListener"
...
8979681a8d
Change-Id: I60edd3aabf49afbe4aa016af780baa68d928bddf
2023-11-07 14:17:15 +00:00
Sebastian Pickl
8979681a8d
Revert "Migrate to CompoundButton.OnCheckedChangeListener"
...
Revert submission 25147565-onSwitchChanged-CompoundButton
Reason for revert: breaking builds
Bug:309601476
Reverted changes: /q/submissionid:25147565-onSwitchChanged-CompoundButton
Change-Id: Ie746db87d9c642599593aa3d5e5baf6b7ba89c0e
2023-11-07 13:26:36 +00:00
Chaohui Wang
71d1f021af
Migrate to CompoundButton.OnCheckedChangeListener
...
Switch and SwitchCompat are both CompoundButton.
Using CompoundButton in Java will helps migration in the future.
Bug: 306658427
Test: manual - check Settings pages
Change-Id: If2e08a9a9557ec66a3b31ef18cd2e15943098a59
2023-11-07 20:22:27 +08:00
Jun Lan
cca804e1ed
Format battery java code
...
After this CL, we can follow Guideline:go/hc-mainline-dev#format-code to keep java format consistent.
Test: manual
Bug: 304439460
Change-Id: I5bb77f81b0bd9be618e34942eaaee8296bc42796
2023-11-06 13:55:48 +08:00
mxyyiyi
81e028931a
Refactor background optimization mode in Power Usage Detail page.
...
[Screenshot]:
before: https://screenshot.googleplex.com/6m5jYWHofY2pFov
after:
[App battery usage]
- [normal] https://screenshot.googleplex.com/7aurWk7cHKaWds7
- [always unrestried/optimized] https://screenshot.googleplex.com/3rGAh4ccUYTKBAr
[Allow Background usage]
- [Restricted]: https://screenshot.googleplex.com/MPXjQe5kPWw2nhr
- [Optimized]: https://screenshot.googleplex.com/6w4zTT6r34APnGc
- [Unrestricted]: https://screenshot.googleplex.com/97FgvHWMrwASqYH
Bug: 302063050
Bug: 306295660
Bug: 308359833
Test: manual
Change-Id: I3237d015549fe26e62d6d68c13403cc2cbdf0017
2023-11-01 11:17:30 +08:00