• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.os.Bundle;
20 import android.os.ParcelFileDescriptor;
21 import android.telecom.CallAudioState;
22 import android.telecom.ConnectionRequest;
23 import android.telecom.Logging.Session;
24 import android.telecom.PhoneAccountHandle;
25 
26 import com.android.internal.telecom.IConnectionServiceAdapter;
27 
28 /**
29  * Internal remote interface for connection services.
30  *
31  * @see android.telecom.ConnectionService
32  *
33  * @hide
34  */
35 oneway interface IConnectionService {
addConnectionServiceAdapter(in IConnectionServiceAdapter adapter, in Session.Info sessionInfo)36     void addConnectionServiceAdapter(in IConnectionServiceAdapter adapter,
37     in Session.Info sessionInfo);
38 
removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter, in Session.Info sessionInfo)39     void removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter,
40     in Session.Info sessionInfo);
41 
createConnection( in PhoneAccountHandle connectionManagerPhoneAccount, String callId, in ConnectionRequest request, boolean isIncoming, boolean isUnknown, in Session.Info sessionInfo)42     void createConnection(
43             in PhoneAccountHandle connectionManagerPhoneAccount,
44             String callId,
45             in ConnectionRequest request,
46             boolean isIncoming,
47             boolean isUnknown,
48             in Session.Info sessionInfo);
49 
createConnectionComplete(String callId, in Session.Info sessionInfo)50     void createConnectionComplete(String callId, in Session.Info sessionInfo);
51 
createConnectionFailed(in PhoneAccountHandle connectionManagerPhoneAccount, String callId, in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo)52     void createConnectionFailed(in PhoneAccountHandle connectionManagerPhoneAccount, String callId,
53             in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo);
54 
abort(String callId, in Session.Info sessionInfo)55     void abort(String callId, in Session.Info sessionInfo);
56 
answerVideo(String callId, int videoState, in Session.Info sessionInfo)57     void answerVideo(String callId, int videoState, in Session.Info sessionInfo);
58 
answer(String callId, in Session.Info sessionInfo)59     void answer(String callId, in Session.Info sessionInfo);
60 
reject(String callId, in Session.Info sessionInfo)61     void reject(String callId, in Session.Info sessionInfo);
62 
rejectWithMessage(String callId, String message, in Session.Info sessionInfo)63     void rejectWithMessage(String callId, String message, in Session.Info sessionInfo);
64 
disconnect(String callId, in Session.Info sessionInfo)65     void disconnect(String callId, in Session.Info sessionInfo);
66 
silence(String callId, in Session.Info sessionInfo)67     void silence(String callId, in Session.Info sessionInfo);
68 
hold(String callId, in Session.Info sessionInfo)69     void hold(String callId, in Session.Info sessionInfo);
70 
unhold(String callId, in Session.Info sessionInfo)71     void unhold(String callId, in Session.Info sessionInfo);
72 
onCallAudioStateChanged(String activeCallId, in CallAudioState callAudioState, in Session.Info sessionInfo)73     void onCallAudioStateChanged(String activeCallId, in CallAudioState callAudioState,
74     in Session.Info sessionInfo);
75 
playDtmfTone(String callId, char digit, in Session.Info sessionInfo)76     void playDtmfTone(String callId, char digit, in Session.Info sessionInfo);
77 
stopDtmfTone(String callId, in Session.Info sessionInfo)78     void stopDtmfTone(String callId, in Session.Info sessionInfo);
79 
conference(String conferenceCallId, String callId, in Session.Info sessionInfo)80     void conference(String conferenceCallId, String callId, in Session.Info sessionInfo);
81 
splitFromConference(String callId, in Session.Info sessionInfo)82     void splitFromConference(String callId, in Session.Info sessionInfo);
83 
mergeConference(String conferenceCallId, in Session.Info sessionInfo)84     void mergeConference(String conferenceCallId, in Session.Info sessionInfo);
85 
swapConference(String conferenceCallId, in Session.Info sessionInfo)86     void swapConference(String conferenceCallId, in Session.Info sessionInfo);
87 
onPostDialContinue(String callId, boolean proceed, in Session.Info sessionInfo)88     void onPostDialContinue(String callId, boolean proceed, in Session.Info sessionInfo);
89 
pullExternalCall(String callId, in Session.Info sessionInfo)90     void pullExternalCall(String callId, in Session.Info sessionInfo);
91 
sendCallEvent(String callId, String event, in Bundle extras, in Session.Info sessionInfo)92     void sendCallEvent(String callId, String event, in Bundle extras, in Session.Info sessionInfo);
93 
onExtrasChanged(String callId, in Bundle extras, in Session.Info sessionInfo)94     void onExtrasChanged(String callId, in Bundle extras, in Session.Info sessionInfo);
95 
startRtt(String callId, in ParcelFileDescriptor fromInCall, in ParcelFileDescriptor toInCall, in Session.Info sessionInfo)96     void startRtt(String callId, in ParcelFileDescriptor fromInCall,
97     in ParcelFileDescriptor toInCall, in Session.Info sessionInfo);
98 
stopRtt(String callId, in Session.Info sessionInfo)99     void stopRtt(String callId, in Session.Info sessionInfo);
100 
respondToRttUpgradeRequest(String callId, in ParcelFileDescriptor fromInCall, in ParcelFileDescriptor toInCall, in Session.Info sessionInfo)101     void respondToRttUpgradeRequest(String callId, in ParcelFileDescriptor fromInCall,
102     in ParcelFileDescriptor toInCall, in Session.Info sessionInfo);
103 }
104