summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Steve Elliott <steell@google.com> 2023-06-14 17:49:23 +0000
committer Steve Elliott <steell@google.com> 2023-07-05 17:04:57 -0400
commit0d2e209bd7647a06e7c9de0b22c384df56ec22c0 (patch)
tree04189b362aa51f2938d612fc0fbc1eca4dc611da /libs/androidfw/ApkParsing.cpp
parentf49451bbea2fd8708e12a679927d7b1d4c77cd7e (diff)
Individually track vis duration of unseen notifs
Previously, if the user has been on the keyguard for 5 seconds, then we mark all unseen notifications as seen when the device is unlocked, even if some notifications were not present for the entire (or any of the) 5 second visible duration. We now track for each unseen notification that since it has been posted / the device was locked, that the user has been on the keyguard for 5 seconds. When a notification has reached this threshold, it is marked as "seen on lockscreen", and will be marked as seen for real once the device is unlocked. Note that if the notification is updated, the 5 second threshold is reset. REVERT^2: In order to reduce potential jank, we now only start tracking seen notifications when locked if the setting is enabled. Fixes: 277616032 Test: atest KeyguardCoordinatorTest Change-Id: Iec2fdc977157bda85b41c5c64bfcce6d2ec9fd7f
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions