summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/RemoteConnectionService.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2016-02-16 14:36:20 -0800
committerTyler Gunn <tgunn@google.com>2016-02-16 14:36:20 -0800
commitbd1eb1f105e99d55fe87d758e8eafbe55a221a30 (patch)
tree7b3d184e5b2c12940ce34b57c90c09696d8f5e7c /telecomm/java/android/telecom/RemoteConnectionService.java
parentd6b6e9c2efd3454b2ab047a506ce925e45ea75a0 (diff)
Add new ConnectionEvent API (hide) to send a notification to Telecom
Connection event used to inform Telecom that it should play or stop the on hold tone. This is used to play or stop a tone when the peer puts the current call on hold. BUG=25357778 Change-Id: I2669f8f5062449784a712b9dd28e576326fcc679
Diffstat (limited to 'telecomm/java/android/telecom/RemoteConnectionService.java')
-rw-r--r--telecomm/java/android/telecom/RemoteConnectionService.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/RemoteConnectionService.java b/telecomm/java/android/telecom/RemoteConnectionService.java
index dc0de0c462cf..b85382feae60 100644
--- a/telecomm/java/android/telecom/RemoteConnectionService.java
+++ b/telecomm/java/android/telecom/RemoteConnectionService.java
@@ -330,6 +330,13 @@ final class RemoteConnectionService {
.setExtras(extras);
}
}
+
+ @Override
+ public void onConnectionEvent(String callId, String event) {
+ if (mConnectionById.containsKey(callId)) {
+ findConnectionForAction(callId, "onConnectionEvent").onConnectionEvent(event);
+ }
+ }
};
private final ConnectionServiceAdapterServant mServant =