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