blob: 3d04bfc1bae5d0008b653795c5c5cf524110e2ea [file] [log] [blame]
Ben Giladbb69b0c2013-12-12 18:32:02 -08001/*
Sailesh Nepal2a46b902014-07-04 17:21:07 -07002 * Copyright (C) 2014 The Android Open Source Project
Ben Giladbb69b0c2013-12-12 18:32:02 -08003 *
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
Tyler Gunnef9f6f92014-09-12 22:16:17 -070017package com.android.internal.telecom;
Ben Giladbb69b0c2013-12-12 18:32:02 -080018
Evan Charlton74f6bf82014-03-05 08:21:52 -080019import android.os.Bundle;
Hall Liu57006aa2017-02-06 10:49:48 -080020import android.os.ParcelFileDescriptor;
Yorke Lee4af59352015-05-13 14:14:54 -070021import android.telecom.CallAudioState;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070022import android.telecom.ConnectionRequest;
Brad Ebingerb32d4f82016-10-24 16:40:49 -070023import android.telecom.Logging.Session;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070024import android.telecom.PhoneAccountHandle;
Sailesh Nepalab5d2822014-03-08 18:01:06 -080025
Tyler Gunnef9f6f92014-09-12 22:16:17 -070026import com.android.internal.telecom.IConnectionServiceAdapter;
Ben Giladbb69b0c2013-12-12 18:32:02 -080027
28/**
Sailesh Nepal2a46b902014-07-04 17:21:07 -070029 * Internal remote interface for connection services.
Ben Giladbb69b0c2013-12-12 18:32:02 -080030 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070031 * @see android.telecom.ConnectionService
Ben Giladbb69b0c2013-12-12 18:32:02 -080032 *
Ihab Awad2f236642014-03-10 15:33:45 -070033 * @hide
Ben Giladbb69b0c2013-12-12 18:32:02 -080034 */
Sailesh Nepal2a46b902014-07-04 17:21:07 -070035oneway interface IConnectionService {
Brad Ebingerb32d4f82016-10-24 16:40:49 -070036 void addConnectionServiceAdapter(in IConnectionServiceAdapter adapter,
37 in Session.Info sessionInfo);
Ben Gilade57944d2013-12-16 16:39:52 -080038
Brad Ebingerb32d4f82016-10-24 16:40:49 -070039 void removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter,
40 in Session.Info sessionInfo);
Ihab Awad8aecfed2014-08-08 17:06:11 -070041
Ihab Awadf8b69882014-07-25 15:14:01 -070042 void createConnection(
43 in PhoneAccountHandle connectionManagerPhoneAccount,
Ihab Awadb19a0bc2014-08-07 19:46:01 -070044 String callId,
Ihab Awadf8b69882014-07-25 15:14:01 -070045 in ConnectionRequest request,
Yorke Leec3cf9822014-10-02 09:38:39 -070046 boolean isIncoming,
Brad Ebingerb32d4f82016-10-24 16:40:49 -070047 boolean isUnknown,
48 in Session.Info sessionInfo);
Ben Giladbb69b0c2013-12-12 18:32:02 -080049
Tyler Gunn041a1fe2017-05-12 10:04:49 -070050 void createConnectionComplete(String callId, in Session.Info sessionInfo);
51
Tyler Gunn159f35c2017-03-02 09:28:37 -080052 void createConnectionFailed(in PhoneAccountHandle connectionManagerPhoneAccount, String callId,
53 in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo);
Tyler Gunn3edafc12017-01-31 10:49:05 -080054
Brad Ebingerb32d4f82016-10-24 16:40:49 -070055 void abort(String callId, in Session.Info sessionInfo);
Santos Cordonbd63f902014-02-14 01:59:01 -080056
Brad Ebingerb32d4f82016-10-24 16:40:49 -070057 void answerVideo(String callId, int videoState, in Session.Info sessionInfo);
Tyler Gunnbe74de02014-08-29 14:51:48 -070058
Brad Ebingerb32d4f82016-10-24 16:40:49 -070059 void answer(String callId, in Session.Info sessionInfo);
Santos Cordonb340c332014-02-19 01:59:32 -080060
Brad Ebingerb32d4f82016-10-24 16:40:49 -070061 void reject(String callId, in Session.Info sessionInfo);
Ben Gilad3fadaa92014-03-04 16:40:58 -080062
Brad Ebingerb32d4f82016-10-24 16:40:49 -070063 void rejectWithMessage(String callId, String message, in Session.Info sessionInfo);
Bryce Lee81901682015-08-28 16:38:02 -070064
Brad Ebingerb32d4f82016-10-24 16:40:49 -070065 void disconnect(String callId, in Session.Info sessionInfo);
Yorke Lee81ccaaa2014-03-12 18:33:19 -070066
Brad Ebingerb32d4f82016-10-24 16:40:49 -070067 void silence(String callId, in Session.Info sessionInfo);
Bryce Leecac50772015-11-17 15:13:29 -080068
Brad Ebingerb32d4f82016-10-24 16:40:49 -070069 void hold(String callId, in Session.Info sessionInfo);
Yorke Lee81ccaaa2014-03-12 18:33:19 -070070
Brad Ebingerb32d4f82016-10-24 16:40:49 -070071 void unhold(String callId, in Session.Info sessionInfo);
Sailesh Nepal4cff3922014-03-19 10:15:37 -070072
Brad Ebingerb32d4f82016-10-24 16:40:49 -070073 void onCallAudioStateChanged(String activeCallId, in CallAudioState callAudioState,
74 in Session.Info sessionInfo);
Ihab Awad2f236642014-03-10 15:33:45 -070075
Brad Ebingerb32d4f82016-10-24 16:40:49 -070076 void playDtmfTone(String callId, char digit, in Session.Info sessionInfo);
Ihab Awad2f236642014-03-10 15:33:45 -070077
Brad Ebingerb32d4f82016-10-24 16:40:49 -070078 void stopDtmfTone(String callId, in Session.Info sessionInfo);
Santos Cordon980acb92014-05-31 10:31:19 -070079
Brad Ebingerb32d4f82016-10-24 16:40:49 -070080 void conference(String conferenceCallId, String callId, in Session.Info sessionInfo);
Santos Cordon980acb92014-05-31 10:31:19 -070081
Brad Ebingerb32d4f82016-10-24 16:40:49 -070082 void splitFromConference(String callId, in Session.Info sessionInfo);
Evan Charlton6dea4ac2014-06-03 14:07:13 -070083
Brad Ebingerb32d4f82016-10-24 16:40:49 -070084 void mergeConference(String conferenceCallId, in Session.Info sessionInfo);
Santos Cordona4868042014-09-04 17:39:22 -070085
Brad Ebingerb32d4f82016-10-24 16:40:49 -070086 void swapConference(String conferenceCallId, in Session.Info sessionInfo);
Santos Cordona4868042014-09-04 17:39:22 -070087
Brad Ebingerb32d4f82016-10-24 16:40:49 -070088 void onPostDialContinue(String callId, boolean proceed, in Session.Info sessionInfo);
Tyler Gunn876dbfb2016-03-14 15:18:07 -070089
Brad Ebingerb32d4f82016-10-24 16:40:49 -070090 void pullExternalCall(String callId, in Session.Info sessionInfo);
Tyler Gunn876dbfb2016-03-14 15:18:07 -070091
Brad Ebingerb32d4f82016-10-24 16:40:49 -070092 void sendCallEvent(String callId, String event, in Bundle extras, in Session.Info sessionInfo);
Tyler Gunndee56a82016-03-23 16:06:34 -070093
Brad Ebingerb32d4f82016-10-24 16:40:49 -070094 void onExtrasChanged(String callId, in Bundle extras, in Session.Info sessionInfo);
Hall Liu57006aa2017-02-06 10:49:48 -080095
96 void startRtt(String callId, in ParcelFileDescriptor fromInCall,
97 in ParcelFileDescriptor toInCall, in Session.Info sessionInfo);
98
99 void stopRtt(String callId, in Session.Info sessionInfo);
100
101 void respondToRttUpgradeRequest(String callId, in ParcelFileDescriptor fromInCall,
102 in ParcelFileDescriptor toInCall, in Session.Info sessionInfo);
Pengquan Meng731c1a32017-11-21 18:01:13 -0800103
104 void connectionServiceFocusLost(in Session.Info sessionInfo);
105
106 void connectionServiceFocusGained(in Session.Info sessionInfo);
Sanket Padawe4cc8ed532017-12-04 16:22:20 -0800107
108 void handoverFailed(String callId, in ConnectionRequest request,
109 int error, in Session.Info sessionInfo);
Ben Giladbb69b0c2013-12-12 18:32:02 -0800110}