diff options
| author | 2024-03-29 09:17:48 -0400 | |
|---|---|---|
| committer | 2024-04-02 13:43:07 +0000 | |
| commit | 328e26ea4a73d00e92077db2a5f1667d97404d27 (patch) | |
| tree | eb612ee042ccb9206f8d30bcdfac1b9e16d6ea3b /libs/input/SpriteController.cpp | |
| parent | 167eeea91ce62c8a83db6ed9d3a06f3d8e192896 (diff) | |
Restrict AudioAttribute usages for notifications
Only calls can use USAGE_NOTIFICATION_RINGTONE. Only alarms can
use USAGE_ALARMS. No notifications can play on the media stream.
If an app specifies and incorrect usage we will use USAGE_NOTIFICATION
instead.
Test: NotificationChannelExtractorTest
Flag: com.android.server.notification.restrict_audio_attributes_call DEV
Flag: com.android.server.notification.restrict_audio_attributes_alarm
DEV
Flag: com.android.server.notification.restrict_audio_attributes_media
DEV
Bug: 331793339
Change-Id: Iefb5b7225ee0a8a1da694dc76841990a13a34572
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions