diff options
author | Beverly <beverlyt@google.com> | 2020-05-13 12:30:20 -0400 |
---|---|---|
committer | Beverly <beverlyt@google.com> | 2020-05-20 11:31:09 -0400 |
commit | a4f3f81eadbba638f2da9780437150769463e13d (patch) | |
tree | 19065bfa8e062021378c7b68d00bafdf717c5ba1 /rs/java/android/renderscript/ProgramStore.java | |
parent | 5c82912ab7b933fa02ed2b5e72dadfeb00ad7354 (diff) |
Don't readd pending notifs to NEM's allNotifs list
Instead, we reuse the pending notification entry so we don't
unnecessarily create and retain mutliple notification entries for the same
notification.
Additionally:
- dump all notifications kept by NEM in a dumpsys/bugreport
- move mLeakDetector.trackGarbage(entry) to after NEM.listeners are told to
remove their references to the entry
- trackGarbage(entry) on pending notifications that are removed
Test: receive phone call, see HUN still appears
Test: post high priority notification (HUN) and then send immediate
update, still see HUN
Test: atest HeadUpNotificationTests
Test: atest NotificationEntryManagerTest
Test: adb shell dumpsys activity service com.android.systemui/.SystemUIService dependency DumpController NotificationEntryManager
Test: check memory usage of com.android.systemui before and after
running NexusLauncherTests (observe view count doesn't incrementally get
worse)
Fixes: 156301621
Change-Id: I60ec7847f0b8cc3f3a3ab3fbc0004991e816dc16
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions