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

Commit d80f46a1 authored by Atneya Nair's avatar Atneya Nair
Browse files

Batch zen audio restrictions across usages

Migrate Zen audio restrictions to new API which batches across usages.

New applyRestriction logic partitions usages across those which should
be muted, and those which shouldn't be, with a single appops call for
each (both directions are needed since the restriction state is never
implicitly cleared).

Modify mocking tests to handle the refactored call, additionally
verifying the restriction state across all usages in the process. In
doing so, a few redundant tests can be eliminated.

Test: atest ZenModeHelperTest
Flag: EXEMPT mechanical refactor
Bug: 415378815
Change-Id: I5c8435fcff1a90bb61d0dbfad8a35cb54cf76d40
parent 5c1799e5
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