diff options
author | Nancy Chen <nancychen@google.com> | 2014-12-15 16:12:50 -0800 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-12-16 12:53:04 -0800 |
commit | 27d1c2d148fe377ca0d2744f0f85789a42c8f808 (patch) | |
tree | 6e20feb1ad731ce53ef88220de6b6a394550ef4e /telecomm/java/android/telecom/Connection.java | |
parent | 1f28a6a571a9b4ff78d85e2b62a30d77ce986d7b (diff) | |
download | frameworks_base-27d1c2d148fe377ca0d2744f0f85789a42c8f808.zip frameworks_base-27d1c2d148fe377ca0d2744f0f85789a42c8f808.tar.gz frameworks_base-27d1c2d148fe377ca0d2744f0f85789a42c8f808.tar.bz2 |
Pass onPostDialChar call back from Telephony to Telecom.
Add plumbing to alert Telecom every time a character is processed after
the post dial wait state (the processing happens in Telephony).
Bug: 18644688
Change-Id: I487d76aa9c959ca528c6377374aa35c2d0b4a803
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index f3b0586..a180f44 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -246,6 +246,7 @@ public abstract class Connection implements IConferenceable { public void onVideoStateChanged(Connection c, int videoState) {} public void onDisconnected(Connection c, DisconnectCause disconnectCause) {} public void onPostDialWait(Connection c, String remaining) {} + public void onPostDialChar(Connection c, char nextChar) {} public void onRingbackRequested(Connection c, boolean ringback) {} public void onDestroyed(Connection c) {} public void onConnectionCapabilitiesChanged(Connection c, int capabilities) {} @@ -998,6 +999,23 @@ public abstract class Connection implements IConferenceable { } /** + * Informs listeners that this {@code Connection} has processed a character in the post-dial + * started state. This is done when (a) the {@code Connection} is issuing a DTMF sequence; + * (b) it has encountered a "wait" character; and (c) it wishes to signal Telecom to play + * the corresponding DTMF tone locally. + * + * @param nextChar The DTMF character that was just processed by the {@code Connection}. + * + * @hide + */ + public final void setNextPostDialWaitChar(char nextChar) { + checkImmutable(); + for (Listener l : mListeners) { + l.onPostDialChar(this, nextChar); + } + } + + /** * Requests that the framework play a ringback tone. This is to be invoked by implementations * that do not play a ringback tone themselves in the connection's audio stream. * |