diff options
author | Tyler Gunn <tgunn@google.com> | 2016-03-17 18:34:27 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-03-17 18:34:27 -0700 |
commit | 7904a972e1178d2157263cecdcaaf4917c0fffdf (patch) | |
tree | 682090460fb5e99cb150704030f7c5bb9e4f9375 /telecomm/java/android/telecom/ConnectionService.java | |
parent | 0048acfc16dc29aef69faeafa1200d0fd0206763 (diff) |
DO NOT MERGE 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/ConnectionService.java')
-rw-r--r-- | telecomm/java/android/telecom/ConnectionService.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java index ceaa1bfb2754..dfe2396a3013 100644 --- a/telecomm/java/android/telecom/ConnectionService.java +++ b/telecomm/java/android/telecom/ConnectionService.java @@ -611,6 +611,14 @@ public abstract class ConnectionService extends Service { mAdapter.setExtras(id, extras); } } + + @Override + public void onConnectionEvent(Connection connection, String event) { + String id = mIdByConnection.get(connection); + if (id != null) { + mAdapter.onConnectionEvent(id, event); + } + } }; /** {@inheritDoc} */ |