| 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.app.PendingIntent; |
| 20 |
import android.net.Uri; |
| 21 |
import android.os.Bundle; |
| 22 |
import android.telecom.ConnectionRequest; |
| 23 |
import android.telecom.DisconnectCause; |
| 24 |
import android.telecom.Logging.Session; |
| 25 |
import android.telecom.ParcelableConnection; |
| 26 |
import android.telecom.ParcelableConference; |
| 27 |
import android.telecom.PhoneAccountHandle; |
| 28 |
import android.telecom.StatusHints; |
| 29 |
|
| 30 |
import com.android.internal.telecom.IVideoProvider; |
| 31 |
import com.android.internal.telecom.RemoteServiceCallback; |
| 32 |
|
| 33 |
/** |
| 34 |
* Internal remote callback interface for connection services. |
| 35 |
* |
| 36 |
* @see android.telecom.ConnectionServiceAdapter |
| 37 |
* |
| 38 |
* {@hide} |
| 39 |
*/ |
| 40 |
oneway interface IConnectionServiceAdapter { |
| 41 |
void handleCreateConnectionComplete( |
| 42 |
String callId, |
| 43 |
in ConnectionRequest request, |
| 44 |
in ParcelableConnection connection, |
| 45 |
in Session.Info sessionInfo); |
| 46 |
|
| 47 |
void handleCreateConferenceComplete( |
| 48 |
String callId, |
| 49 |
in ConnectionRequest request, |
| 50 |
in ParcelableConference connection, |
| 51 |
in Session.Info sessionInfo); |
| 52 |
|
| 53 |
void setActive(String callId, in Session.Info sessionInfo); |
| 54 |
|
| 55 |
void setRinging(String callId, in Session.Info sessionInfo); |
| 56 |
|
| 57 |
void setDialing(String callId, in Session.Info sessionInfo); |
| 58 |
|
| 59 |
void setPulling(String callId, in Session.Info sessionInfo); |
| 60 |
|
| 61 |
void setDisconnected(String callId, in DisconnectCause disconnectCause, |
| 62 |
in Session.Info sessionInfo); |
| 63 |
|
| 64 |
void setOnHold(String callId, in Session.Info sessionInfo); |
| 65 |
|
| 66 |
void setRingbackRequested(String callId, boolean ringing, in Session.Info sessionInfo); |
| 67 |
|
| 68 |
void setConnectionCapabilities(String callId, int connectionCapabilities, |
| 69 |
in Session.Info sessionInfo); |
| 70 |
|
| 71 |
void setConnectionProperties(String callId, int connectionProperties, |
| 72 |
in Session.Info sessionInfo); |
| 73 |
|
| 74 |
void setIsConferenced(String callId, String conferenceCallId, in Session.Info sessionInfo); |
| 75 |
|
| 76 |
void setConferenceMergeFailed(String callId, in Session.Info sessionInfo); |
| 77 |
|
| 78 |
void addConferenceCall(String callId, in ParcelableConference conference, |
| 79 |
in Session.Info sessionInfo); |
| 80 |
|
| 81 |
void removeCall(String callId, in Session.Info sessionInfo); |
| 82 |
|
| 83 |
void onPostDialWait(String callId, String remaining, in Session.Info sessionInfo); |
| 84 |
|
| 85 |
void onPostDialChar(String callId, char nextChar, in Session.Info sessionInfo); |
| 86 |
|
| 87 |
void queryRemoteConnectionServices(RemoteServiceCallback callback, String callingPackage, |
| 88 |
in Session.Info sessionInfo); |
| 89 |
|
| 90 |
void setVideoProvider(String callId, IVideoProvider videoProvider, in Session.Info sessionInfo); |
| 91 |
|
| 92 |
void setVideoState(String callId, int videoState, in Session.Info sessionInfo); |
| 93 |
|
| 94 |
void setIsVoipAudioMode(String callId, boolean isVoip, in Session.Info sessionInfo); |
| 95 |
|
| 96 |
void setStatusHints(String callId, in StatusHints statusHints, in Session.Info sessionInfo); |
| 97 |
|
| 98 |
void setAddress(String callId, in Uri address, int presentation, in Session.Info sessionInfo); |
| 99 |
|
| 100 |
void setCallerDisplayName(String callId, String callerDisplayName, int presentation, |
| 101 |
in Session.Info sessionInfo); |
| 102 |
|
| 103 |
void setConferenceableConnections(String callId, in List<String> conferenceableCallIds, |
| 104 |
in Session.Info sessionInfo); |
| 105 |
|
| 106 |
void addExistingConnection(String callId, in ParcelableConnection connection, |
| 107 |
in Session.Info sessionInfo); |
| 108 |
|
| 109 |
void putExtras(String callId, in Bundle extras, in Session.Info sessionInfo); |
| 110 |
|
| 111 |
void removeExtras(String callId, in List<String> keys, in Session.Info sessionInfo); |
| 112 |
|
| 113 |
void setAudioRoute(String callId, int audioRoute, String bluetoothAddress, |
| 114 |
in Session.Info sessionInfo); |
| 115 |
|
| 116 |
void onConnectionEvent(String callId, String event, in Bundle extras, |
| 117 |
in Session.Info sessionInfo); |
| 118 |
|
| 119 |
void onRttInitiationSuccess(String callId, in Session.Info sessionInfo); |
| 120 |
|
| 121 |
void onRttInitiationFailure(String callId, int reason, in Session.Info sessionInfo); |
| 122 |
|
| 123 |
void onRttSessionRemotelyTerminated(String callId, in Session.Info sessionInfo); |
| 124 |
|
| 125 |
void onRemoteRttRequest(String callId, in Session.Info sessionInfo); |
| 126 |
|
| 127 |
void onPhoneAccountChanged(String callId, in PhoneAccountHandle pHandle, |
| 128 |
in Session.Info sessionInfo); |
| 129 |
|
| 130 |
void onConnectionServiceFocusReleased(in Session.Info sessionInfo); |
| 131 |
|
| 132 |
void resetConnectionTime(String callIdi, in Session.Info sessionInfo); |
| 133 |
|
| 134 |
void setConferenceState(String callId, boolean isConference, in Session.Info sessionInfo); |
| 135 |
|
| 136 |
void setCallDirection(String callId, int direction, in Session.Info sessionInfo); |
| 137 |
} |