Merge "API: Add call service handoff trigger"

This commit is contained in:
Sailesh Nepal
2014-06-07 21:11:16 +00:00
committed by Android (Google) Code Review
3 changed files with 15 additions and 0 deletions

View File

@@ -27598,6 +27598,7 @@ package android.telecomm {
public final class CallServiceAdapter {
method public void handleFailedOutgoingCall(android.telecomm.ConnectionRequest, int, java.lang.String);
method public void handleSuccessfulOutgoingCall(java.lang.String);
method public void handoffCall(java.lang.String);
method public void notifyIncomingCall(android.telecomm.CallInfo);
method public void onPostDialWait(java.lang.String, java.lang.String);
method public void setActive(java.lang.String);

View File

@@ -224,4 +224,16 @@ public final class CallServiceAdapter {
} catch (RemoteException ignored) {
}
}
/**
* Instructs Telecomm to handoff the call to another call service.
*
* @param callId The identifier of the call to handoff.
*/
public void handoffCall(String callId) {
try {
mAdapter.handoffCall(callId);
} catch (RemoteException e) {
}
}
}

View File

@@ -54,4 +54,6 @@ oneway interface ICallServiceAdapter {
void removeCall(String callId);
void onPostDialWait(String callId, String remaining);
void handoffCall(String callId);
}