Send update from NMS to SysUI on LifetimeExtension

When an app attempts to cancel a notification that has been lifetime
extended with the FLAG_LIFETIME_EXTENDED_BY_DIRECT_REPLY, we need to
notify SystemUI so that it can transition the notification from the
"sending" state to the "sent" state. To do this, we send a post only to
SystemUI, and add a new NotifCollectionListener to
RemoteInputCoordinator to watch for onEntryUpdated. When the entry is
updated, it rebuilds the notification for RemoteInputReply.

Flag: ACONFIG android.app.lifetimeExtensionRefactor DEVELOPMENT
Bug: 230652175
Test: atest RemoteInputCoordinatorTest ManagedServicesTest NotificationManagerServiceTest

Change-Id: Ib81885b73026e779f4af6a1bdd4399c677f37e8d
8 files changed