diff options
| author | 2025-03-19 18:12:52 +0000 | |
|---|---|---|
| committer | 2025-03-20 13:09:23 +0000 | |
| commit | 45bc02b42d6fa2a73bf9def8506d6be14b351001 (patch) | |
| tree | 872458d0f4ca947318ef65cfbb3996949f5b6cb4 /libs/androidfw/FileStream.cpp | |
| parent | 1182a91d968d3a2ef429949453759d55cf5f11f2 (diff) | |
[SB][Chips] Add TimeSource to ShortTimeDelta for chip model.
We need to pass a fake time source in the view model to make it easy to
set a fake time in tests.
Bug: 404502700
Flag: com.android.systemui.status_bar_chips_modernization
Test: Post promoted notif for 5 minutes in future -> verify chip says
"5min" and counts down to 4min, 3min, 2min, 1min, now
Test: Post promoted notif for over an hour in future -> verify chip says
"1hr"
Test: Post promoted notif for now -> verify chip has no text
Test: Post promoted notif for time in past -> verify chip has no text
Change-Id: I9dcedbb3cc483ac5b254a51a84dc40c092c9db4f
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions