summaryrefslogtreecommitdiffstats
path: root/telecomm/java/com/android
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/com/android')
-rw-r--r--telecomm/java/com/android/internal/telecomm/ICallService.aidl9
-rw-r--r--telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl16
-rw-r--r--telecomm/java/com/android/internal/telecomm/IInCallService.aidl8
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);
}