blob: 73fa29af2ca4703defb3fb7f5fbc8a47fc16df99 [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
Tyler Gunn876dbfb2016-03-14 15:18:07 -070019import android.os.Bundle;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070020import android.telecom.PhoneAccountHandle;
Sailesh Nepal4cff3922014-03-19 10:15:37 -070021
Santos Cordon8f3fd302014-01-27 08:46:21 -080022/**
Ihab Awad2f236642014-03-10 15:33:45 -070023 * Internal remote callback interface for in-call services.
24 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070025 * @see android.telecom.InCallAdapter
Ihab Awad2f236642014-03-10 15:33:45 -070026 *
Sailesh Nepalab5d2822014-03-08 18:01:06 -080027 * {@hide}
Santos Cordon8f3fd302014-01-27 08:46:21 -080028 */
29oneway interface IInCallAdapter {
Andrew Lee8da4c3c2014-07-16 10:11:42 -070030 void answerCall(String callId, int videoState);
Santos Cordon8f3fd302014-01-27 08:46:21 -080031
Ihab Awadc0677542014-06-10 13:29:47 -070032 void rejectCall(String callId, boolean rejectWithMessage, String textMessage);
Santos Cordon8f3fd302014-01-27 08:46:21 -080033
Santos Cordon8f3fd302014-01-27 08:46:21 -080034 void disconnectCall(String callId);
Yorke Lee81ccaaa2014-03-12 18:33:19 -070035
Yorke Lee81ccaaa2014-03-12 18:33:19 -070036 void holdCall(String callId);
37
Yorke Lee81ccaaa2014-03-12 18:33:19 -070038 void unholdCall(String callId);
Sailesh Nepal4cff3922014-03-19 10:15:37 -070039
Sailesh Nepal4cff3922014-03-19 10:15:37 -070040 void mute(boolean shouldMute);
41
Sailesh Nepal4cff3922014-03-19 10:15:37 -070042 void setAudioRoute(int route);
Ihab Awad2f236642014-03-10 15:33:45 -070043
44 void playDtmfTone(String callId, char digit);
45
46 void stopDtmfTone(String callId);
47
Evan Charlton6dea4ac2014-06-03 14:07:13 -070048 void postDialContinue(String callId, boolean proceed);
Sailesh Nepalb632e5b2014-04-03 12:54:33 -070049
Nancy Chen36c62f32014-10-21 18:36:39 -070050 void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle,
51 boolean setDefault);
Nancy Chen5da0fd52014-07-08 14:16:17 -070052
Santos Cordon7c7bc7f2014-07-28 18:15:48 -070053 void conference(String callId, String otherCallId);
Santos Cordon980acb92014-05-31 10:31:19 -070054
55 void splitFromConference(String callId);
Sailesh Nepal61203862014-07-11 14:50:13 -070056
Santos Cordona4868042014-09-04 17:39:22 -070057 void mergeConference(String callId);
58
59 void swapConference(String callId);
60
Yorke Lee0d6ea712014-07-28 14:39:23 -070061 void turnOnProximitySensor();
62
63 void turnOffProximitySensor(boolean screenOnImmediately);
Tyler Gunn876dbfb2016-03-14 15:18:07 -070064
65 void pullExternalCall(String callId);
66
67 void sendCallEvent(String callId, String event, in Bundle extras);
Tyler Gunndee56a82016-03-23 16:06:34 -070068
69 void putExtras(String callId, in Bundle extras);
70
71 void removeExtras(String callId, in List<String> keys);
Hall Liu95d55872017-01-25 17:12:49 -080072
Hall Liu57006aa2017-02-06 10:49:48 -080073 void sendRttRequest(String callId);
Hall Liu95d55872017-01-25 17:12:49 -080074
Hall Liu57006aa2017-02-06 10:49:48 -080075 void respondToRttRequest(String callId, int id, boolean accept);
Hall Liu95d55872017-01-25 17:12:49 -080076
Hall Liu57006aa2017-02-06 10:49:48 -080077 void stopRtt(String callId);
Hall Liu95d55872017-01-25 17:12:49 -080078
Hall Liu57006aa2017-02-06 10:49:48 -080079 void setRttMode(String callId, int mode);
Santos Cordon8f3fd302014-01-27 08:46:21 -080080}