blob: a4c179820331e158b20ba64b9e0005e8b180c9d9 [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;
Yorke Lee4af59352015-05-13 14:14:54 -070020import android.telecom.CallAudioState;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070021import android.telecom.ConnectionRequest;
22import android.telecom.PhoneAccountHandle;
Sailesh Nepalab5d2822014-03-08 18:01:06 -080023
Tyler Gunnef9f6f92014-09-12 22:16:17 -070024import com.android.internal.telecom.IConnectionServiceAdapter;
Ben Giladbb69b0c2013-12-12 18:32:02 -080025
26/**
Sailesh Nepal2a46b902014-07-04 17:21:07 -070027 * Internal remote interface for connection services.
Ben Giladbb69b0c2013-12-12 18:32:02 -080028 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070029 * @see android.telecom.ConnectionService
Ben Giladbb69b0c2013-12-12 18:32:02 -080030 *
Ihab Awad2f236642014-03-10 15:33:45 -070031 * @hide
Ben Giladbb69b0c2013-12-12 18:32:02 -080032 */
Sailesh Nepal2a46b902014-07-04 17:21:07 -070033oneway interface IConnectionService {
34 void addConnectionServiceAdapter(in IConnectionServiceAdapter adapter);
Ben Gilade57944d2013-12-16 16:39:52 -080035
Ihab Awad8aecfed2014-08-08 17:06:11 -070036 void removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter);
37
Ihab Awadf8b69882014-07-25 15:14:01 -070038 void createConnection(
39 in PhoneAccountHandle connectionManagerPhoneAccount,
Ihab Awadb19a0bc2014-08-07 19:46:01 -070040 String callId,
Ihab Awadf8b69882014-07-25 15:14:01 -070041 in ConnectionRequest request,
Yorke Leec3cf9822014-10-02 09:38:39 -070042 boolean isIncoming,
43 boolean isUnknown);
Ben Giladbb69b0c2013-12-12 18:32:02 -080044
Ben Gilad3fadaa92014-03-04 16:40:58 -080045 void abort(String callId);
Santos Cordonbd63f902014-02-14 01:59:01 -080046
Tyler Gunnbe74de02014-08-29 14:51:48 -070047 void answerVideo(String callId, int videoState);
48
49 void answer(String callId);
Santos Cordonb340c332014-02-19 01:59:32 -080050
Santos Cordonb340c332014-02-19 01:59:32 -080051 void reject(String callId);
Ben Gilad3fadaa92014-03-04 16:40:58 -080052
Bryce Lee81901682015-08-28 16:38:02 -070053 void rejectWithMessage(String callId, String message);
54
Ben Gilad3fadaa92014-03-04 16:40:58 -080055 void disconnect(String callId);
Yorke Lee81ccaaa2014-03-12 18:33:19 -070056
Bryce Leecac50772015-11-17 15:13:29 -080057 void silence(String callId);
58
Yorke Lee81ccaaa2014-03-12 18:33:19 -070059 void hold(String callId);
60
Yorke Lee81ccaaa2014-03-12 18:33:19 -070061 void unhold(String callId);
Sailesh Nepal4cff3922014-03-19 10:15:37 -070062
Yorke Lee4af59352015-05-13 14:14:54 -070063 void onCallAudioStateChanged(String activeCallId, in CallAudioState callAudioState);
Ihab Awad2f236642014-03-10 15:33:45 -070064
65 void playDtmfTone(String callId, char digit);
66
67 void stopDtmfTone(String callId);
Santos Cordon980acb92014-05-31 10:31:19 -070068
Santos Cordonb6939982014-06-04 20:20:58 -070069 void conference(String conferenceCallId, String callId);
Santos Cordon980acb92014-05-31 10:31:19 -070070
Santos Cordonb6939982014-06-04 20:20:58 -070071 void splitFromConference(String callId);
Evan Charlton6dea4ac2014-06-03 14:07:13 -070072
Santos Cordona4868042014-09-04 17:39:22 -070073 void mergeConference(String conferenceCallId);
74
75 void swapConference(String conferenceCallId);
76
Evan Charlton6dea4ac2014-06-03 14:07:13 -070077 void onPostDialContinue(String callId, boolean proceed);
Tyler Gunn876dbfb2016-03-14 15:18:07 -070078
79 void pullExternalCall(String callId);
80
81 void sendCallEvent(String callId, String event, in Bundle extras);
Tyler Gunndee56a82016-03-23 16:06:34 -070082
83 void onExtrasChanged(String callId, in Bundle extras);
Ben Giladbb69b0c2013-12-12 18:32:02 -080084}