Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3797ef5d authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Add flag for exclusive focus muting notifications when recording

Legacy behavior is to mute notification while an app has
requested audio focus with GAIN_TRANSIENT_EXCLUSIVE.
The new flag is to enforce that the muting happens only
when the focus requester is also recording audio.

Flag: android.media.audio.focus_exclusive_with_recording
Test: atest android.media.audio.cts.AudioFocusTest
Bug: 316414750
Change-Id: I8547ff735267158a65282134e60fa97f94b5f2a8
parent c0d8f376
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -21,6 +21,15 @@ flag {
    bug: "302323921"
    bug: "302323921"
}
}


flag {
    name: "focus_exclusive_with_recording"
    namespace: "media_audio"
    description:
        "Audio focus GAIN_TRANSIENT_EXCLUSIVE only mutes"
        "notifications when the focus owner is also recording"
    bug: "316414750"
}

# TODO remove
# TODO remove
flag {
flag {
    name: "focus_freeze_test_api"
    name: "focus_freeze_test_api"