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