Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fa7d763 authored by William Xiao's avatar William Xiao
Browse files

Implement setting to restrict dream to wireless charging

The new setting limits dreams to only start when the device is charging
wirelessly. This CL implements the logic for both screen timeout and
power button presses. Note that the setting does not apply when the
"When to dream" setting is "Docked and charging" because there are
currently no devices that can be both docked and wireless charging.
The setting will be hidden on devices that cannot be wirelessly
charged.

Bug: 406802735
Test: atest DreamManagerServiceTest PowerManagerServiceTest
Flag: android.service.dreams.dreams_v2
Change-Id: I518e12dd9078031faff77cfeabbf54f071ae898d
parent 740452e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment