blob: 57df5c1e548e5d194c8fa3390f44a631bf6942a1 [file] [log] [blame]
Santos Cordon8f3fd302014-01-27 08:46:21 -08001/*
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
Tyler Gunnef9f6f92014-09-12 22:16:17 -070017package com.android.internal.telecom;
Santos Cordon8f3fd302014-01-27 08:46:21 -080018
Pooja Jaind34698d2017-12-28 14:15:31 +053019import android.net.Uri;
Tyler Gunn876dbfb2016-03-14 15:18:07 -070020import android.os.Bundle;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070021import android.telecom.PhoneAccountHandle;
Sailesh Nepal4cff3922014-03-19 10:15:37 -070022
Santos Cordon8f3fd302014-01-27 08:46:21 -080023/**
Ihab Awad2f236642014-03-10 15:33:45 -070024 * Internal remote callback interface for in-call services.
25 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070026 * @see android.telecom.InCallAdapter
Ihab Awad2f236642014-03-10 15:33:45 -070027 *
Sailesh Nepalab5d2822014-03-08 18:01:06 -080028 * {@hide}
Santos Cordon8f3fd302014-01-27 08:46:21 -080029 */
30oneway interface IInCallAdapter {
Andrew Lee8da4c3c2014-07-16 10:11:42 -070031 void answerCall(String callId, int videoState);
Santos Cordon8f3fd302014-01-27 08:46:21 -080032
Pooja Jaind34698d2017-12-28 14:15:31 +053033 void deflectCall(String callId, in Uri address);
34
Ihab Awadc0677542014-06-10 13:29:47 -070035 void rejectCall(String callId, boolean rejectWithMessage, String textMessage);
Santos Cordon8f3fd302014-01-27 08:46:21 -080036
Santos Cordon8f3fd302014-01-27 08:46:21 -080037 void disconnectCall(String callId);
Yorke Lee81ccaaa2014-03-12 18:33:19 -070038
Yorke Lee81ccaaa2014-03-12 18:33:19 -070039 void holdCall(String callId);
40
Yorke Lee81ccaaa2014-03-12 18:33:19 -070041 void unholdCall(String callId);
Sailesh Nepal4cff3922014-03-19 10:15:37 -070042
Sailesh Nepal4cff3922014-03-19 10:15:37 -070043 void mute(boolean shouldMute);
44
Hall Liua98f58b2017-11-07 17:59:28 -080045 void setAudioRoute(int route, String bluetoothAddress);
Ihab Awad2f236642014-03-10 15:33:45 -070046
47 void playDtmfTone(String callId, char digit);
48
49 void stopDtmfTone(String callId);
50
Evan Charlton6dea4ac2014-06-03 14:07:13 -070051 void postDialContinue(String callId, boolean proceed);
Sailesh Nepalb632e5b2014-04-03 12:54:33 -070052
Nancy Chen36c62f32014-10-21 18:36:39 -070053 void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle,
54 boolean setDefault);
Nancy Chen5da0fd52014-07-08 14:16:17 -070055
Santos Cordon7c7bc7f2014-07-28 18:15:48 -070056 void conference(String callId, String otherCallId);
Santos Cordon980acb92014-05-31 10:31:19 -070057
58 void splitFromConference(String callId);
Sailesh Nepal61203862014-07-11 14:50:13 -070059
Santos Cordona4868042014-09-04 17:39:22 -070060 void mergeConference(String callId);
61
62 void swapConference(String callId);
63
Yorke Lee0d6ea712014-07-28 14:39:23 -070064 void turnOnProximitySensor();
65
66 void turnOffProximitySensor(boolean screenOnImmediately);
Tyler Gunn876dbfb2016-03-14 15:18:07 -070067
68 void pullExternalCall(String callId);
69
Sanket Padawef6a9e5b2018-01-05 14:26:16 -080070 void sendCallEvent(String callId, String event, int targetSdkVer, in Bundle extras);
Tyler Gunndee56a82016-03-23 16:06:34 -070071
72 void putExtras(String callId, in Bundle extras);
73
74 void removeExtras(String callId, in List<String> keys);
Hall Liu95d55872017-01-25 17:12:49 -080075
Hall Liu57006aa2017-02-06 10:49:48 -080076 void sendRttRequest(String callId);
Hall Liu95d55872017-01-25 17:12:49 -080077
Hall Liu57006aa2017-02-06 10:49:48 -080078 void respondToRttRequest(String callId, int id, boolean accept);
Hall Liu95d55872017-01-25 17:12:49 -080079
Hall Liu57006aa2017-02-06 10:49:48 -080080 void stopRtt(String callId);
Hall Liu95d55872017-01-25 17:12:49 -080081
Hall Liu57006aa2017-02-06 10:49:48 -080082 void setRttMode(String callId, int mode);
Sanket Padawea8eddd42017-11-03 11:07:35 -070083
84 void handoverTo(String callId, in PhoneAccountHandle destAcct, int videoState,
85 in Bundle extras);
Santos Cordon8f3fd302014-01-27 08:46:21 -080086}