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.AudioState; 21 import android.telecom.ConnectionRequest; 22 import android.telecom.PhoneAccountHandle; 23 24 import com.android.internal.telecom.IConnectionServiceAdapter; 25 26 /** 27 * Internal remote interface for connection services. 28 * 29 * @see android.telecom.ConnectionService 30 * 31 * @hide 32 */ 33 oneway interface IConnectionService { addConnectionServiceAdapter(in IConnectionServiceAdapter adapter)34 void addConnectionServiceAdapter(in IConnectionServiceAdapter adapter); 35 removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter)36 void removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter); 37 createConnection( in PhoneAccountHandle connectionManagerPhoneAccount, String callId, in ConnectionRequest request, boolean isIncoming, boolean isUnknown)38 void createConnection( 39 in PhoneAccountHandle connectionManagerPhoneAccount, 40 String callId, 41 in ConnectionRequest request, 42 boolean isIncoming, 43 boolean isUnknown); 44 abort(String callId)45 void abort(String callId); 46 answerVideo(String callId, int videoState)47 void answerVideo(String callId, int videoState); 48 answer(String callId)49 void answer(String callId); 50 reject(String callId)51 void reject(String callId); 52 disconnect(String callId)53 void disconnect(String callId); 54 hold(String callId)55 void hold(String callId); 56 unhold(String callId)57 void unhold(String callId); 58 onAudioStateChanged(String activeCallId, in AudioState audioState)59 void onAudioStateChanged(String activeCallId, in AudioState audioState); 60 playDtmfTone(String callId, char digit)61 void playDtmfTone(String callId, char digit); 62 stopDtmfTone(String callId)63 void stopDtmfTone(String callId); 64 conference(String conferenceCallId, String callId)65 void conference(String conferenceCallId, String callId); 66 splitFromConference(String callId)67 void splitFromConference(String callId); 68 mergeConference(String conferenceCallId)69 void mergeConference(String conferenceCallId); 70 swapConference(String conferenceCallId)71 void swapConference(String conferenceCallId); 72 onPostDialContinue(String callId, boolean proceed)73 void onPostDialContinue(String callId, boolean proceed); 74 } 75