| 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.os.ParcelFileDescriptor; |
| 22 |
import android.telecom.CallAudioState; |
| 23 |
import android.telecom.Connection; |
| 24 |
import android.telecom.ConnectionRequest; |
| 25 |
import android.telecom.Logging.Session; |
| 26 |
import android.telecom.PhoneAccountHandle; |
| 27 |
|
| 28 |
import com.android.internal.telecom.IConnectionServiceAdapter; |
| 29 |
|
| 30 |
/** |
| 31 |
* Internal remote interface for connection services. |
| 32 |
* |
| 33 |
* @see android.telecom.ConnectionService |
| 34 |
* |
| 35 |
* @hide |
| 36 |
*/ |
| 37 |
oneway interface IConnectionService { |
| 38 |
void addConnectionServiceAdapter(in IConnectionServiceAdapter adapter, |
| 39 |
in Session.Info sessionInfo); |
| 40 |
|
| 41 |
void removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter, |
| 42 |
in Session.Info sessionInfo); |
| 43 |
|
| 44 |
void createConnection( |
| 45 |
in PhoneAccountHandle connectionManagerPhoneAccount, |
| 46 |
String callId, |
| 47 |
in ConnectionRequest request, |
| 48 |
boolean isIncoming, |
| 49 |
boolean isUnknown, |
| 50 |
in Session.Info sessionInfo); |
| 51 |
|
| 52 |
void createConnectionComplete(String callId, in Session.Info sessionInfo); |
| 53 |
|
| 54 |
void createConnectionFailed(in PhoneAccountHandle connectionManagerPhoneAccount, String callId, |
| 55 |
in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo); |
| 56 |
|
| 57 |
void createConference( |
| 58 |
in PhoneAccountHandle connectionManagerPhoneAccount, |
| 59 |
String callId, |
| 60 |
in ConnectionRequest request, |
| 61 |
boolean isIncoming, |
| 62 |
boolean isUnknown, |
| 63 |
in Session.Info sessionInfo); |
| 64 |
|
| 65 |
void createConferenceComplete(String callId, in Session.Info sessionInfo); |
| 66 |
|
| 67 |
void createConferenceFailed(in PhoneAccountHandle connectionManagerPhoneAccount, String callId, |
| 68 |
in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo); |
| 69 |
|
| 70 |
|
| 71 |
void abort(String callId, in Session.Info sessionInfo); |
| 72 |
|
| 73 |
void answerVideo(String callId, int videoState, in Session.Info sessionInfo); |
| 74 |
|
| 75 |
void answer(String callId, in Session.Info sessionInfo); |
| 76 |
|
| 77 |
void deflect(String callId, in Uri address, in Session.Info sessionInfo); |
| 78 |
|
| 79 |
void reject(String callId, in Session.Info sessionInfo); |
| 80 |
|
| 81 |
void rejectWithReason(String callId, int rejectReason, in Session.Info sessionInfo); |
| 82 |
|
| 83 |
void rejectWithMessage(String callId, String message, in Session.Info sessionInfo); |
| 84 |
|
| 85 |
void transfer(String callId, in Uri number, boolean isConfirmationRequired, |
| 86 |
in Session.Info sessionInfo); |
| 87 |
|
| 88 |
void consultativeTransfer(String callId, String otherCallId, in Session.Info sessionInfo); |
| 89 |
|
| 90 |
void disconnect(String callId, in Session.Info sessionInfo); |
| 91 |
|
| 92 |
void silence(String callId, in Session.Info sessionInfo); |
| 93 |
|
| 94 |
void hold(String callId, in Session.Info sessionInfo); |
| 95 |
|
| 96 |
void unhold(String callId, in Session.Info sessionInfo); |
| 97 |
|
| 98 |
void onCallAudioStateChanged(String activeCallId, in CallAudioState callAudioState, |
| 99 |
in Session.Info sessionInfo); |
| 100 |
|
| 101 |
void playDtmfTone(String callId, char digit, in Session.Info sessionInfo); |
| 102 |
|
| 103 |
void stopDtmfTone(String callId, in Session.Info sessionInfo); |
| 104 |
|
| 105 |
void conference(String conferenceCallId, String callId, in Session.Info sessionInfo); |
| 106 |
|
| 107 |
void splitFromConference(String callId, in Session.Info sessionInfo); |
| 108 |
|
| 109 |
void mergeConference(String conferenceCallId, in Session.Info sessionInfo); |
| 110 |
|
| 111 |
void swapConference(String conferenceCallId, in Session.Info sessionInfo); |
| 112 |
|
| 113 |
void addConferenceParticipants(String CallId, in List<Uri> participants, |
| 114 |
in Session.Info sessionInfo); |
| 115 |
|
| 116 |
void onPostDialContinue(String callId, boolean proceed, in Session.Info sessionInfo); |
| 117 |
|
| 118 |
void pullExternalCall(String callId, in Session.Info sessionInfo); |
| 119 |
|
| 120 |
void sendCallEvent(String callId, String event, in Bundle extras, in Session.Info sessionInfo); |
| 121 |
|
| 122 |
void onCallFilteringCompleted(String callId, |
| 123 |
in Connection.CallFilteringCompletionInfo completionInfo, |
| 124 |
in Session.Info sessionInfo); |
| 125 |
|
| 126 |
void onExtrasChanged(String callId, in Bundle extras, in Session.Info sessionInfo); |
| 127 |
|
| 128 |
void startRtt(String callId, in ParcelFileDescriptor fromInCall, |
| 129 |
in ParcelFileDescriptor toInCall, in Session.Info sessionInfo); |
| 130 |
|
| 131 |
void stopRtt(String callId, in Session.Info sessionInfo); |
| 132 |
|
| 133 |
void respondToRttUpgradeRequest(String callId, in ParcelFileDescriptor fromInCall, |
| 134 |
in ParcelFileDescriptor toInCall, in Session.Info sessionInfo); |
| 135 |
|
| 136 |
void connectionServiceFocusLost(in Session.Info sessionInfo); |
| 137 |
|
| 138 |
void connectionServiceFocusGained(in Session.Info sessionInfo); |
| 139 |
|
| 140 |
void handoverFailed(String callId, in ConnectionRequest request, |
| 141 |
int error, in Session.Info sessionInfo); |
| 142 |
|
| 143 |
void handoverComplete(String callId, in Session.Info sessionInfo); |
| 144 |
|
| 145 |
void onUsingAlternativeUi(String callId, boolean isUsingAlternativeUi, |
| 146 |
in Session.Info sessionInfo); |
| 147 |
|
| 148 |
void onTrackedByNonUiService(String callId, boolean isTracked, in Session.Info sessionInfo); |
| 149 |
} |