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