summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice
diff options
context:
space:
mode:
authorOscar Azucena <oscarazu@google.com>2021-10-26 18:06:54 -0700
committerOscar Azucena <oscarazu@google.com>2021-11-06 02:27:41 +0000
commit21f2c4d59af6cd6dfc4e5ee1f2b11e058a05ebb9 (patch)
tree78a9e06c6e60662b7e93dfb93ecc3811f1854004 /core/java/android/inputmethodservice
parentc2c3eee8b700d2ab62fa44e5fc22c908058cc4af (diff)
Changed user check for play sound effect API
Changed the way the user is checked for audio manager play sound effect API. Instead of capturing the process user, the current user is used to determined if the audio should be played. Also moved the should sound play check to audio service, as the check requires interact across users permission, instead of adding permission to the API this can be faciliated in the audio service. Bug: 165038414 Test: atest AudioManagerTest#testSoundEffects Test: atest AudioManagerTest# testCheckingZenModeBlockDoesNotRequireNotificationPolicyAccess Test: atest VolumeDialogControllerImplTest Test: manually disable audio effect sounds settings and play audio NoNonSdkCheck: IAudioService#playSoundEffect is internal API Change-Id: Ib0e3001fd76e3a5fdd831551d16f091029d03422
Diffstat (limited to 'core/java/android/inputmethodservice')
0 files changed, 0 insertions, 0 deletions