summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioPolicyManagerBase.h
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2010-11-15 16:02:06 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2010-11-15 16:45:36 -0800
commit3e480fa067136253ae05faaba77f814f42cd56f0 (patch)
treebf59fea9dee704e999b5d1be8e6ba624b4d15075 /include/hardware_legacy/AudioPolicyManagerBase.h
parent7314fe03b6cc7c16d49aacbe59840d8724f6852e (diff)
downloadhardware_libhardware_legacy-3e480fa067136253ae05faaba77f814f42cd56f0.tar.gz
hardware_libhardware_legacy-3e480fa067136253ae05faaba77f814f42cd56f0.tar.bz2
hardware_libhardware_legacy-3e480fa067136253ae05faaba77f814f42cd56f0.zip
Support new audio mode for audio communication other than telephony.
Change-Id: I965cbeee67f72e31240e3e8cd2630bf22a03b9ea
Diffstat (limited to 'include/hardware_legacy/AudioPolicyManagerBase.h')
-rw-r--r--include/hardware_legacy/AudioPolicyManagerBase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h
index 870201f..99be68f 100644
--- a/include/hardware_legacy/AudioPolicyManagerBase.h
+++ b/include/hardware_legacy/AudioPolicyManagerBase.h
@@ -236,6 +236,10 @@ protected:
void handleIncallSonification(int stream, bool starting, bool stateChange);
// true is current platform implements a back microphone
virtual bool hasBackMicrophone() const { return false; }
+ // true if device is in a telephony or VoIP call
+ virtual bool isInCall();
+ // true if given state represents a device in a telephony or VoIP call
+ virtual bool isStateInCall(int state);
#ifdef WITH_A2DP
// true is current platform supports suplication of notifications and ringtones over A2DP output