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