summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2021-09-16 13:58:22 -0400
committer Yuri Lin <yurilin@google.com> 2021-09-23 17:55:14 +0000
commitbac3f7da332f593fb9e6faf32a20bc87b08ae1cc (patch)
tree30e7858a96e20971590835f7a9f80c20c989afbc /libs/androidfw/StringPool.cpp
parentb53041d1eb9c0b4d4d673191849a8418836ae9cd (diff)
Log a notification update when fields such as importance or ranking score are updated.
This update happens in the function performing the actual sort because while adjustments are queued, the actual updates to fields in the NotificationRecord don't happen until sorting time. To avoid spurious extra logging, we only log an update to notifications that were updated via assistant adjustments (by tracking those keys in a set). Note that there are two ways adjustments can be applied to notifications: synchronously to an enqueued notification or asynchronously (prompting the sort). Given that enqueued notification (posts or updates) are logged once the post or update goes through, this change only logs the updates to the ones updated asynchronously. (Otherwise, we may see a notification "update" before the notification is ever even visible to the user.) Bug: 195579280 Test: manual via statsd_testdrive, atest NotificationManagerServiceTest Change-Id: I97ef8865e31653f0fee0ac943251fecc21e5e05f Merged-In: I97ef8865e31653f0fee0ac943251fecc21e5e05f
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions