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

Skip to content
Commit 46ccaf46 authored by Robert Horvath's avatar Robert Horvath
Browse files

LowPowerStandby: Add APIs to get/set custom Policy

The Low Power Standby Policy declares:
- Packages (by package name) that should be exempt from
  Low Power Standby restrictions
- Reasons why an app may be dynamically exempt from Low Power Standby
  restrictions.
- Features apps are allowed to use during Low Power Standby.
  The features are Strings, so that vendors can define custom features
  for functionality that may not always be available or allowed in
  all Low Power Standby policies.

The existing exemption for active Voice Interaction Sessions is migrated
to use a predefined allow-reason, and enabled in the default policy.
When a policy without the VIS allow-reason is set, then apps having an
active VIS are no longer exempted from Low Power Standby restrictions.

Bug: 234002812
Test: atest LowPowerStandbyControllerTest LowPowerStandbyTest
Change-Id: I8747ae5b49613122e922aae7a917cbd2771ae091
parent d2267f07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment