diff options
| author | 2022-12-13 22:36:02 -0500 | |
|---|---|---|
| committer | 2023-02-13 16:11:17 +0000 | |
| commit | 3a710b8bf753fa496ec4850f6a375638813122e9 (patch) | |
| tree | be5fa08bcec934187ac56ddeb3d05c52883641cd /api/api_test.go | |
| parent | 0db8b1deb6c0a59be6d16048384059e23c35d71a (diff) | |
Bypass HUN snooze for notifs with FSI
If an app posts a time-sensitive (alarm, call, etc.) notification that
can either HUN or FSI, it's possible for *neither* alerting behavior to
happen if the user has snoozed HUNs for the package and System UI has
suppressed FSIs because the screen is on and unlocked and the
FSI_REQUIRES_KEYGUARD flag is set.
In this case, assume any notification with an FSI is time-sensitive
(like an alarm or incoming call) and ignore whether HUNs have been
snoozed for the package.
Bug: 245356701
Test: atest NotificationInterruptStateProviderImplTest
Test: manual tests of relevant FSI/HUN snooze scenarios
Change-Id: Idee76ef9fc9d303903617ffd5bc79aad0756b2a0
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions