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.telecom.PhoneAccountHandle;
20 
21 /**
22  * Internal remote callback interface for in-call services.
23  *
24  * @see android.telecom.InCallAdapter
25  *
26  * {@hide}
27  */
28 oneway interface IInCallAdapter {
answerCall(String callId, int videoState)29     void answerCall(String callId, int videoState);
30 
rejectCall(String callId, boolean rejectWithMessage, String textMessage)31     void rejectCall(String callId, boolean rejectWithMessage, String textMessage);
32 
disconnectCall(String callId)33     void disconnectCall(String callId);
34 
holdCall(String callId)35     void holdCall(String callId);
36 
unholdCall(String callId)37     void unholdCall(String callId);
38 
mute(boolean shouldMute)39     void mute(boolean shouldMute);
40 
setAudioRoute(int route)41     void setAudioRoute(int route);
42 
playDtmfTone(String callId, char digit)43     void playDtmfTone(String callId, char digit);
44 
stopDtmfTone(String callId)45     void stopDtmfTone(String callId);
46 
postDialContinue(String callId, boolean proceed)47     void postDialContinue(String callId, boolean proceed);
48 
phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle, boolean setDefault)49     void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle,
50             boolean setDefault);
51 
conference(String callId, String otherCallId)52     void conference(String callId, String otherCallId);
53 
splitFromConference(String callId)54     void splitFromConference(String callId);
55 
mergeConference(String callId)56     void mergeConference(String callId);
57 
swapConference(String callId)58     void swapConference(String callId);
59 
turnOnProximitySensor()60     void turnOnProximitySensor();
61 
turnOffProximitySensor(boolean screenOnImmediately)62     void turnOffProximitySensor(boolean screenOnImmediately);
63 }
64