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