Make bubble flag removals from notification delegate (sysui) sticky

Have a bit on NotificationRecord that indicates whether the bubble
has been user dismissed (i.e. notif active without FLAG_BUBBLE).

Checking this bit prevents the flag from being clobbered on subsequent
ranking updates.

Adds tests for the extractor applying the flag correctly based on this bit
and tests for ensuring the record state is set correctly in response to
onNotificationBubbleChanged & updates

Test: atest BubbleExtractorTest NotificationManagerServiceTest
Fixes: 152262407
Change-Id: I4bda79bd04f2d08fa3a3849f45d33d899f4c7fde
5 files changed