diff options
author | Sailesh Nepal <sail@google.com> | 2014-03-19 10:15:37 -0700 |
---|---|---|
committer | Sailesh Nepal <sail@google.com> | 2014-03-23 18:20:53 -0700 |
commit | 4cff392a2b3702514e78c5419bf15de6e39c59af (patch) | |
tree | 743383d90a5fd77c09d50888a3ed7f92c5fe921d /telecomm/java/com | |
parent | 439e1f31a10775cd152ad6cf7cf0d1b9a536e49a (diff) | |
download | frameworks_base-4cff392a2b3702514e78c5419bf15de6e39c59af.zip frameworks_base-4cff392a2b3702514e78c5419bf15de6e39c59af.tar.gz frameworks_base-4cff392a2b3702514e78c5419bf15de6e39c59af.tar.bz2 |
Add audio mode APIs
Change-Id: Ia7e78b52b6b30f99a9ba066dae558a105dbebd96
Diffstat (limited to 'telecomm/java/com')
3 files changed, 33 insertions, 0 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/ICallService.aidl b/telecomm/java/com/android/internal/telecomm/ICallService.aidl index d05a3e0..3455efd 100644 --- a/telecomm/java/com/android/internal/telecomm/ICallService.aidl +++ b/telecomm/java/com/android/internal/telecomm/ICallService.aidl @@ -17,6 +17,7 @@ package com.android.internal.telecomm; import android.os.Bundle; +import android.telecomm.CallAudioState; import android.telecomm.CallInfo; import com.android.internal.telecomm.ICallServiceAdapter; @@ -136,4 +137,12 @@ oneway interface ICallService { * @param callId The identifier of the call to remove from hold. */ void unhold(String callId); + + /** + * Called when the audio state changes. + * + * @param activeCallId The identifier of the call that was active during the state change. + * @param audioState The new {@link CallAudioState}. + */ + void onAudioStateChanged(String activeCallId, in CallAudioState audioState); } diff --git a/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl b/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl index 6ae055d..0fe3bfc 100644 --- a/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl +++ b/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl @@ -16,6 +16,8 @@ package com.android.internal.telecomm; +import android.telecomm.CallAudioState; + /** * Receives commands from {@link IInCallService} implementations which should be executed by * Telecomm. When Telecomm binds to a {@link IInCallService}, an instance of this class is given to @@ -67,4 +69,18 @@ oneway interface IInCallAdapter { * @param callId The identifier of the call to release from hold. */ void unholdCall(String callId); + + /** + * Mute the microphone. + * + * @param shouldMute True if the microphone should be muted. + */ + void mute(boolean shouldMute); + + /** + * Sets the audio route (speaker, bluetooth, etc...). See {@link CallAudioState}. + * + * @param route The audio route to use. + */ + void setAudioRoute(int route); } diff --git a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl index b3bd0a6..35498a3 100644 --- a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl +++ b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl @@ -16,6 +16,7 @@ package com.android.internal.telecomm; +import android.telecomm.CallAudioState; import android.telecomm.CallInfo; import com.android.internal.telecomm.IInCallAdapter; @@ -74,4 +75,11 @@ oneway interface IInCallService { * @param callId The identifier of the call that was put on hold. */ void setOnHold(String callId); + + /** + * Called when the audio state changes. + * + * @param audioState The new {@link CallAudioState}. + */ + void onAudioStateChanged(in CallAudioState audioState); } |