diff options
author | Tyler Gunn <tgunn@google.com> | 2016-02-16 14:36:20 -0800 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-02-16 14:36:20 -0800 |
commit | bd1eb1f105e99d55fe87d758e8eafbe55a221a30 (patch) | |
tree | 7b3d184e5b2c12940ce34b57c90c09696d8f5e7c /telecomm/java/android/telecom/ConnectionServiceAdapter.java | |
parent | d6b6e9c2efd3454b2ab047a506ce925e45ea75a0 (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/ConnectionServiceAdapter.java')
-rw-r--r-- | telecomm/java/android/telecom/ConnectionServiceAdapter.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/ConnectionServiceAdapter.java b/telecomm/java/android/telecom/ConnectionServiceAdapter.java index 456251476862..30fc5ad1e4b6 100644 --- a/telecomm/java/android/telecom/ConnectionServiceAdapter.java +++ b/telecomm/java/android/telecom/ConnectionServiceAdapter.java @@ -412,4 +412,20 @@ final class ConnectionServiceAdapter implements DeathRecipient { } } } + + /** + * Informs Telecom of a connection level event. + * + * @param callId The unique ID of the call. + * @param event The event. + */ + void onConnectionEvent(String callId, String event) { + Log.v(this, "onConnectionEvent: %s", event); + for (IConnectionServiceAdapter adapter : mAdapters) { + try { + adapter.onConnectionEvent(callId, event); + } catch (RemoteException ignored) { + } + } + } } |