summaryrefslogtreecommitdiffstats
path: root/include/media/IAudioPolicyService.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-09-25 14:11:47 -0700
committerEric Laurent <elaurent@google.com>2014-09-25 16:44:07 -0700
commitbb6c9a05840d924b502ce0f1868fca4881ada1ed (patch)
treeaec6d28b7ab31fec27416c6e853c94c2eedfcd9b /include/media/IAudioPolicyService.h
parenta935c76f96b066941b34f81c42b3fe9d00db98c5 (diff)
downloadframeworks_av-bb6c9a05840d924b502ce0f1868fca4881ada1ed.zip
frameworks_av-bb6c9a05840d924b502ce0f1868fca4881ada1ed.tar.gz
frameworks_av-bb6c9a05840d924b502ce0f1868fca4881ada1ed.tar.bz2
audio: fix stream type for accessibility usage
Make sure that accessibility prompts are heard when a ringtone is active by forcing stream type to AUDIO_STREAM_RING when phone state is AUDIO_MODE_RINGTONE. Bug: 17558149. Change-Id: Ia3bead8052fca5cbf282c267f7b9b06014fef628
Diffstat (limited to 'include/media/IAudioPolicyService.h')
-rw-r--r--include/media/IAudioPolicyService.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/IAudioPolicyService.h b/include/media/IAudioPolicyService.h
index c251439..16fe9cf 100644
--- a/include/media/IAudioPolicyService.h
+++ b/include/media/IAudioPolicyService.h
@@ -142,6 +142,8 @@ public:
audio_devices_t *device) = 0;
virtual status_t releaseSoundTriggerSession(audio_session_t session) = 0;
+
+ virtual audio_mode_t getPhoneState() = 0;
};