Interrupt temporarily engaged timer while priority session is active

Session are expected to enter a temporarily engaged state (e.g.
PAUSED) while the global priority session is active, typically
due a transient audio focus loss. While the global priority session
is active, we can keep the temporary engaged state without a timeout
because the session is expected to go back to an engaged state after
the priority session became inactive.

Test: atest
cts/tests/app/src/android/app/cts/ActivityManagerFgsDelegateTest.java
Flag: com.android.media.flags.enable_notifying_activity_manager_with_media_session_status_change
Bug: 295518668

Change-Id: Ia815d9d84baeea9e92f6daa940571e2f69386b40
4 files changed