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
Loading
Please register or sign in to comment