diff options
author | Sailesh Nepal <sail@google.com> | 2014-07-18 14:49:18 -0700 |
---|---|---|
committer | Sailesh Nepal <sail@google.com> | 2014-07-18 14:59:30 -0700 |
commit | 2ab88cc313fc4af7fb9436e236cd3a5d1ac58478 (patch) | |
tree | f6dca56116cd18fc772a43368f39798b320e0b34 /telecomm/java/com/android/internal | |
parent | 480315939d4a321992e0288d19797f30e4561e62 (diff) | |
download | frameworks_base-2ab88cc313fc4af7fb9436e236cd3a5d1ac58478.zip frameworks_base-2ab88cc313fc4af7fb9436e236cd3a5d1ac58478.tar.gz frameworks_base-2ab88cc313fc4af7fb9436e236cd3a5d1ac58478.tar.bz2 |
Add Connection.startActivityFromInCall
This CL adds a new public API to allow Connections
to start an activity on top of the in-call UI.
The Connection passes a PendingIntent to Telecomm which
then forwards it on to InCallUI. The Connection can cancel
the operation by calling PendingIntent.cancel().
This allows services like SIP and Hangouts to show dialogs
to the user when making a call.
Change-Id: I65119a89c925a93467d1b27304ffec9b088b172f
Diffstat (limited to 'telecomm/java/com/android/internal')
-rw-r--r-- | telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl | 3 | ||||
-rw-r--r-- | telecomm/java/com/android/internal/telecomm/IInCallService.aidl | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl b/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl index e12cfca..1abdf7c 100644 --- a/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl +++ b/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl @@ -16,6 +16,7 @@ package com.android.internal.telecomm; +import android.app.PendingIntent; import android.net.Uri; import android.telecomm.ConnectionRequest; import android.telecomm.StatusHints; @@ -73,4 +74,6 @@ oneway interface IConnectionServiceAdapter { void setHandle(String callId, in Uri handle, int presentation); void setCallerDisplayName(String callId, String callerDisplayName, int presentation); + + void startActivityFromInCall(String callId, in PendingIntent intent); } diff --git a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl index 1635053..fc28ed5 100644 --- a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl +++ b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl @@ -16,6 +16,7 @@ package com.android.internal.telecomm; +import android.app.PendingIntent; import android.telecomm.CallAudioState; import android.telecomm.InCallCall; @@ -42,4 +43,6 @@ oneway interface IInCallService { void onAudioStateChanged(in CallAudioState audioState); void bringToForeground(boolean showDialpad); + + void startActivity(String callId, in PendingIntent intent); } |