diff options
| author | 2024-12-17 19:42:58 +0000 | |
|---|---|---|
| committer | 2024-12-19 21:03:59 +0000 | |
| commit | 0c74c972a56cbed1dad7fd5978e248e163e806ae (patch) | |
| tree | 42ad74d7f2a601601e0557cd5297b81c16cf8d37 /libs/androidfw/StringPool.cpp | |
| parent | a3f96c47c9d7704d7f018792e31c0327c69108b3 (diff) | |
[Notif] Auto-promote notifications ealier in the pipeline.
The existing PromotedNotificationsProvider class that automatically
promotes certain notifications for testing purposes is only triggered at
the end of the notification pipeline, after rendering has finished. This
works for the status bar chips, but doesn't work for other notification
promotion features like higher ranking.
This CL re-works PromotedNotificationsProvider to:
1) Happen earlier in the notif pipeline so it can be used by other
promotion features
2) Changes how notifications are marked as auto-promoted. In this CL,
FLAG_PROMOTED_ONGOING is set to true so that all other parts of the
pipeline can just check `Notification.isPromotedOngoing()` and they
don't need to worry about whether a notification was promoted via the
standard criteria or automatically promoted.
It also renames the provider + associated classes to
AutomaticPromotionCoordinator.
Bug: 364653005
Flag: com.android.systemui.promote_notifications_automatically
Test: Send a notification that should be auto promoted -> verify it gets
promoted and has a status bar chip
Change-Id: I159f44d6f56fbfbeb48a1a002df338c0c6742d26
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions