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.telecom.ConnectionRequest;
22 import android.telecom.DisconnectCause;
23 import android.telecom.ParcelableConnection;
24 import android.telecom.ParcelableConference;
25 import android.telecom.StatusHints;
26 
27 import com.android.internal.telecom.IVideoProvider;
28 import com.android.internal.telecom.RemoteServiceCallback;
29 
30 /**
31  * Internal remote callback interface for connection services.
32  *
33  * @see android.telecom.ConnectionServiceAdapter
34  *
35  * {@hide}
36  */
37 oneway interface IConnectionServiceAdapter {
handleCreateConnectionComplete( String callId, in ConnectionRequest request, in ParcelableConnection connection)38     void handleCreateConnectionComplete(
39             String callId,
40             in ConnectionRequest request,
41             in ParcelableConnection connection);
42 
setActive(String callId)43     void setActive(String callId);
44 
setRinging(String callId)45     void setRinging(String callId);
46 
setDialing(String callId)47     void setDialing(String callId);
48 
setDisconnected(String callId, in DisconnectCause disconnectCause)49     void setDisconnected(String callId, in DisconnectCause disconnectCause);
50 
setOnHold(String callId)51     void setOnHold(String callId);
52 
setRingbackRequested(String callId, boolean ringing)53     void setRingbackRequested(String callId, boolean ringing);
54 
setConnectionCapabilities(String callId, int connectionCapabilities)55     void setConnectionCapabilities(String callId, int connectionCapabilities);
56 
setIsConferenced(String callId, String conferenceCallId)57     void setIsConferenced(String callId, String conferenceCallId);
58 
addConferenceCall(String callId, in ParcelableConference conference)59     void addConferenceCall(String callId, in ParcelableConference conference);
60 
removeCall(String callId)61     void removeCall(String callId);
62 
onPostDialWait(String callId, String remaining)63     void onPostDialWait(String callId, String remaining);
64 
onPostDialChar(String callId, char nextChar)65     void onPostDialChar(String callId, char nextChar);
66 
queryRemoteConnectionServices(RemoteServiceCallback callback)67     void queryRemoteConnectionServices(RemoteServiceCallback callback);
68 
setVideoProvider(String callId, IVideoProvider videoProvider)69     void setVideoProvider(String callId, IVideoProvider videoProvider);
70 
setVideoState(String callId, int videoState)71     void setVideoState(String callId, int videoState);
72 
setIsVoipAudioMode(String callId, boolean isVoip)73     void setIsVoipAudioMode(String callId, boolean isVoip);
74 
setStatusHints(String callId, in StatusHints statusHints)75     void setStatusHints(String callId, in StatusHints statusHints);
76 
setAddress(String callId, in Uri address, int presentation)77     void setAddress(String callId, in Uri address, int presentation);
78 
setCallerDisplayName(String callId, String callerDisplayName, int presentation)79     void setCallerDisplayName(String callId, String callerDisplayName, int presentation);
80 
setConferenceableConnections(String callId, in List<String> conferenceableCallIds)81     void setConferenceableConnections(String callId, in List<String> conferenceableCallIds);
82 
addExistingConnection(String callId, in ParcelableConnection connection)83     void addExistingConnection(String callId, in ParcelableConnection connection);
84 }
85