summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Jean-Michel Trivi <jmtrivi@google.com> 2023-05-11 22:57:13 -0700
committer Jean-Michel Trivi <jmtrivi@google.com> 2023-05-11 23:15:51 -0700
commitb43455a1583795f86b5fdea19fc1ed0d0276f960 (patch)
tree026325f45e568cea25f328b1bca85b35b18322ad /libs/androidfw/AssetsProvider.cpp
parent1c3a7005fa867184dc3169591641e877e00f3e5c (diff)
AudioService: fix NOTIFICATION unmuted while in silent/vibrate mode
Fix support of AudioManager.FLAG_ALLOW_RINGER_MODES which enables the change of ringer mode in response to the unmuting of a stream currently muted by the ringer mode. When this flag is not present, the unmuting of a muted stream is not allowed, and that call shouldn't change the ringer mode. This prevents entering situations where NOTIFICATION is unmuted but the ringer mode is VIBRATE or SILENT. Bug: 278661956 Test: atest CtsMediaAudioTestCases:android.media.audio.cts.AudioManagerTest#testAdjustUnmuteNotificationInSilent Test: atest CtsMediaAudioTestCases:android.media.audio.cts.AudioManagerTest#testAdjustUnmuteNotificationInVibrate Change-Id: Ib1306be48ba61a0294e12e3bf7ac74fb54a0bd6c
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions