1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.internal.telecom; 18 19 import android.app.PendingIntent; 20 import android.net.Uri; 21 import android.os.Bundle; 22 import android.telecom.ConnectionRequest; 23 import android.telecom.DisconnectCause; 24 import android.telecom.ParcelableConnection; 25 import android.telecom.ParcelableConference; 26 import android.telecom.StatusHints; 27 28 import com.android.internal.telecom.IVideoProvider; 29 import com.android.internal.telecom.RemoteServiceCallback; 30 31 /** 32 * Internal remote callback interface for connection services. 33 * 34 * @see android.telecom.ConnectionServiceAdapter 35 * 36 * {@hide} 37 */ 38 oneway interface IConnectionServiceAdapter { handleCreateConnectionComplete( String callId, in ConnectionRequest request, in ParcelableConnection connection)39 void handleCreateConnectionComplete( 40 String callId, 41 in ConnectionRequest request, 42 in ParcelableConnection connection); 43 setActive(String callId)44 void setActive(String callId); 45 setRinging(String callId)46 void setRinging(String callId); 47 setDialing(String callId)48 void setDialing(String callId); 49 setDisconnected(String callId, in DisconnectCause disconnectCause)50 void setDisconnected(String callId, in DisconnectCause disconnectCause); 51 setOnHold(String callId)52 void setOnHold(String callId); 53 setRingbackRequested(String callId, boolean ringing)54 void setRingbackRequested(String callId, boolean ringing); 55 setConnectionCapabilities(String callId, int connectionCapabilities)56 void setConnectionCapabilities(String callId, int connectionCapabilities); 57 setIsConferenced(String callId, String conferenceCallId)58 void setIsConferenced(String callId, String conferenceCallId); 59 setConferenceMergeFailed(String callId)60 void setConferenceMergeFailed(String callId); 61 addConferenceCall(String callId, in ParcelableConference conference)62 void addConferenceCall(String callId, in ParcelableConference conference); 63 removeCall(String callId)64 void removeCall(String callId); 65 onPostDialWait(String callId, String remaining)66 void onPostDialWait(String callId, String remaining); 67 onPostDialChar(String callId, char nextChar)68 void onPostDialChar(String callId, char nextChar); 69 queryRemoteConnectionServices(RemoteServiceCallback callback)70 void queryRemoteConnectionServices(RemoteServiceCallback callback); 71 setVideoProvider(String callId, IVideoProvider videoProvider)72 void setVideoProvider(String callId, IVideoProvider videoProvider); 73 setVideoState(String callId, int videoState)74 void setVideoState(String callId, int videoState); 75 setIsVoipAudioMode(String callId, boolean isVoip)76 void setIsVoipAudioMode(String callId, boolean isVoip); 77 setStatusHints(String callId, in StatusHints statusHints)78 void setStatusHints(String callId, in StatusHints statusHints); 79 setAddress(String callId, in Uri address, int presentation)80 void setAddress(String callId, in Uri address, int presentation); 81 setCallerDisplayName(String callId, String callerDisplayName, int presentation)82 void setCallerDisplayName(String callId, String callerDisplayName, int presentation); 83 setConferenceableConnections(String callId, in List<String> conferenceableCallIds)84 void setConferenceableConnections(String callId, in List<String> conferenceableCallIds); 85 addExistingConnection(String callId, in ParcelableConnection connection)86 void addExistingConnection(String callId, in ParcelableConnection connection); 87 setExtras(String callId, in Bundle extras)88 void setExtras(String callId, in Bundle extras); 89 } 90