diff options
| author | 2024-09-19 18:20:22 +0000 | |
|---|---|---|
| committer | 2024-10-14 20:04:43 +0000 | |
| commit | 231d7dfdff8c6da84c64250e21acbf378cd38f40 (patch) | |
| tree | d6afc847ded437e06c58749535625c9b83986be1 /libs/androidfw/StringPool.cpp | |
| parent | fca8ee70efc2f4c25cae86e89b6b85e834aeda59 (diff) | |
[SB][Notifs] Initial scaffolding for notification status bar chips.
This CL:
1) Adds `ActiveNotificationsInteractor.promotedOngoingNotifications`
flow that will emit all the active promoted notifs. (Right now, it
just emits every notification, so every notification will have a chip.)
2) Creates `NotifChipsViewModel`, which turns the notification objects
into status bar chip model objects.
3) Adds a new `OngoingActivityChipModel.Shown.ShortTimeDelta` model,
which supports showing short times like "15 min" or "1 hr".
4) Connects `NotifChipsViewModel` to `OngoingActivityChipsViewModel` to
show the notif chips if we don't have any screen recording or call
chips.
Bug: 364653005
Flag: com.android.systemui.status_bar_ron_chips
Test: With flag enabled, verify the top two notifications turn into
status bar chips
Test: With flag disabled, verify existing screen share and call chips
still work
Test: atest NotifChipsViewModelTest OngoingActivityChipsViewModelTest
Change-Id: I4b2dceb7d61f1c525b4c3ff150fbfcb1935f408b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions