summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Robert Horvath <robhor@google.com> 2021-10-21 15:14:25 +0200
committer Robert Horvath <robhor@google.com> 2022-01-27 23:08:26 +0100
commit570645567faacbbdedf5c53cde751f4406366242 (patch)
tree4a8e928a10760039960a3c6e1a8334ca748825b5 /api/api.go
parentf7e59f08d2737e060f3c708ff0477c58443d4ec0 (diff)
Introduce Low Power Standby API and wakelock restrictions
In Low Power Standby, additional restrictions are placed on apps that are in a process state of FOREGROUND_SERVICE or less important during standby (while the device is non-interactive): - Wakelocks are disabled - Network access is blocked During doze maintenance windows the restrictions are lifted temporarily. This change introduces the APIs for Low Power Standby, as well as the wakelock restrictions. This feature is targeting TVs. To prevent Low Power Standby from being enabled on other devices, the feature is guarded by the config flag config_lowPowerStandbySupported. Bug: 190822356 Test: atest LowPowerStandbyControllerTest PowerManagerServiceTest Ignore-AOSP-First: New permission only added internally for now. Change-Id: Ia40f8a0fc4b366860af58ad76c988f93a5d41936
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions