OSDN Git Service

In NotificationRecord, clean out adjustments once they've been applied.
authorWill Brockman <brockman@google.com>
Fri, 25 Jan 2019 15:37:30 +0000 (10:37 -0500)
committerWill Brockman <brockman@google.com>
Fri, 25 Jan 2019 15:50:53 +0000 (15:50 +0000)
commitb020b5e57b1b4b71dd3976e032ae20762dd63e91
tree00313da0a1346a3c651b8a0812e873188985dc0f
parent07182c8622947e0407c6cd72fea4f6ab629f4b55
In NotificationRecord, clean out adjustments once they've been applied.

This frees up some memory and prevents unnecessary re-processing of
the adjustments.  It also deduplicates the NOTIFICATION_ASSISTANT tron
log record that is written every time a new notification is
created. It also prevents any other duplication of event logs.

Bug: 122823423
Test: atest SystemUITests NotificationAssistantServiceTest  and manual testing.
Change-Id: Ie2514e8e9ac19f79b1ad0afcde4d96649fe28069
services/core/java/com/android/server/notification/NotificationRecord.java