diff options
author | Kamaljeet Maini <kmaini@cyngn.com> | 2016-04-22 14:19:56 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-06 11:45:24 -0700 |
commit | 28393c9b61f6f40c1ef88388a253d2178c8b0c2a (patch) | |
tree | 8c26e386425923d7be706e89c0175a647f9113ab /telecomm/java/android/telecom/InCallAdapter.java | |
parent | 35c5005e78a70610713bb16e024a0039f0c614c9 (diff) | |
download | frameworks_base-28393c9b61f6f40c1ef88388a253d2178c8b0c2a.zip frameworks_base-28393c9b61f6f40c1ef88388a253d2178c8b0c2a.tar.gz frameworks_base-28393c9b61f6f40c1ef88388a253d2178c8b0c2a.tar.bz2 |
Add new options for call waiting response in InCallUI
When an incoming call is received while there is already an active call,
the user will be given four choices for the response:
1) Left button: hold the current call and answer incoming call
2) Bottom button: end the current call and answer the incoming call
3) Right button: decline the incoming call
4) Top button: Send a text message to the incoming caller if texting
is enabled
The framework changes include new hidden API for sending additional
information to Telecomm service, few constants, and a bug fix.
Change-Id: I642b330d856613fafc0526eb79dd97fedba4ce6a
Diffstat (limited to 'telecomm/java/android/telecom/InCallAdapter.java')
-rw-r--r-- | telecomm/java/android/telecom/InCallAdapter.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/InCallAdapter.java b/telecomm/java/android/telecom/InCallAdapter.java index 8eb62ec..d660f59 100644 --- a/telecomm/java/android/telecom/InCallAdapter.java +++ b/telecomm/java/android/telecom/InCallAdapter.java @@ -57,6 +57,20 @@ public final class InCallAdapter { } /** + * Instructs Telecom to answer the specified call. + * + * @param callId The identifier of the call to answer. + * @param videoState The video state in which to answer the call. + * @param callWaitingResponseType Response type for call waiting. + */ + public void answerCall(String callId, int videoState, int callWaitingResponseType) { + try { + mAdapter.answerCallWithCallWaitingResponse(callId, videoState, callWaitingResponseType); + } catch (RemoteException e) { + } + } + + /** * Instructs Telecom to reject the specified call. * * @param callId The identifier of the call to reject. |