blob: e6c28f3e913c5214d156fa9d0fa2b4a2226945a0 [file] [log] [blame]
Ben Giladbb69b0c2013-12-12 18:32:02 -08001/*
Sailesh Nepal2a46b902014-07-04 17:21:07 -07002 * Copyright (C) 2014 The Android Open Source Project
Ben Giladbb69b0c2013-12-12 18:32:02 -08003 *
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
Tyler Gunnef9f6f92014-09-12 22:16:17 -070017package com.android.internal.telecom;
Ben Giladbb69b0c2013-12-12 18:32:02 -080018
Sailesh Nepal2ab88cc2014-07-18 14:49:18 -070019import android.app.PendingIntent;
Sailesh Nepal61203862014-07-11 14:50:13 -070020import android.net.Uri;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070021import android.telecom.ConnectionRequest;
Andrew Lee7f3d41f2014-09-11 17:33:16 -070022import android.telecom.DisconnectCause;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070023import android.telecom.ParcelableConnection;
24import android.telecom.ParcelableConference;
25import android.telecom.StatusHints;
Ben Giladbb69b0c2013-12-12 18:32:02 -080026
Tyler Gunnef9f6f92014-09-12 22:16:17 -070027import com.android.internal.telecom.IVideoProvider;
28import com.android.internal.telecom.RemoteServiceCallback;
Santos Cordon52d8a152014-06-17 19:08:45 -070029
Ben Giladbb69b0c2013-12-12 18:32:02 -080030/**
Sailesh Nepal2a46b902014-07-04 17:21:07 -070031 * Internal remote callback interface for connection services.
Ihab Awad2f236642014-03-10 15:33:45 -070032 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070033 * @see android.telecom.ConnectionServiceAdapter
Ihab Awad2f236642014-03-10 15:33:45 -070034 *
Sailesh Nepalab5d2822014-03-08 18:01:06 -080035 * {@hide}
Ben Giladbb69b0c2013-12-12 18:32:02 -080036 */
Sailesh Nepal2a46b902014-07-04 17:21:07 -070037oneway interface IConnectionServiceAdapter {
Ihab Awad6107bab2014-08-18 09:23:25 -070038 void handleCreateConnectionComplete(
Ihab Awadb19a0bc2014-08-07 19:46:01 -070039 String callId,
40 in ConnectionRequest request,
41 in ParcelableConnection connection);
Ben Giladbb69b0c2013-12-12 18:32:02 -080042
Ben Giladbb69b0c2013-12-12 18:32:02 -080043 void setActive(String callId);
44
Ben Giladbb69b0c2013-12-12 18:32:02 -080045 void setRinging(String callId);
46
Ben Giladbb69b0c2013-12-12 18:32:02 -080047 void setDialing(String callId);
48
Andrew Lee7f3d41f2014-09-11 17:33:16 -070049 void setDisconnected(String callId, in DisconnectCause disconnectCause);
Yorke Lee81ccaaa2014-03-12 18:33:19 -070050
Yorke Lee81ccaaa2014-03-12 18:33:19 -070051 void setOnHold(String callId);
Ihab Awadf8358972014-05-28 16:46:42 -070052
Andrew Lee100e2932014-09-08 15:34:24 -070053 void setRingbackRequested(String callId, boolean ringing);
Santos Cordon980acb92014-05-31 10:31:19 -070054
Ihab Awad5c9c86e2014-11-12 13:41:16 -080055 void setConnectionCapabilities(String callId, int connectionCapabilities);
Santos Cordon980acb92014-05-31 10:31:19 -070056
Santos Cordonb6939982014-06-04 20:20:58 -070057 void setIsConferenced(String callId, String conferenceCallId);
58
Santos Cordon823fd3c2014-08-07 18:35:18 -070059 void addConferenceCall(String callId, in ParcelableConference conference);
Santos Cordon980acb92014-05-31 10:31:19 -070060
61 void removeCall(String callId);
Evan Charlton6dea4ac2014-06-03 14:07:13 -070062
63 void onPostDialWait(String callId, String remaining);
Sailesh Nepal8b4818d2014-06-06 10:54:07 -070064
Nancy Chen27d1c2d2014-12-15 16:12:50 -080065 void onPostDialChar(String callId, char nextChar);
66
Santos Cordon52d8a152014-06-17 19:08:45 -070067 void queryRemoteConnectionServices(RemoteServiceCallback callback);
Andrew Lee5ffbe8b2014-06-20 16:29:33 -070068
Ihab Awadb19a0bc2014-08-07 19:46:01 -070069 void setVideoProvider(String callId, IVideoProvider videoProvider);
Tyler Gunn8d83fa92014-07-01 11:31:21 -070070
Tyler Gunnaa07df82014-07-17 07:50:22 -070071 void setVideoState(String callId, int videoState);
72
Andrew Lee100e2932014-09-08 15:34:24 -070073 void setIsVoipAudioMode(String callId, boolean isVoip);
Sailesh Nepale7ef59a2014-07-08 21:48:22 -070074
75 void setStatusHints(String callId, in StatusHints statusHints);
Sailesh Nepal61203862014-07-11 14:50:13 -070076
Andrew Lee100e2932014-09-08 15:34:24 -070077 void setAddress(String callId, in Uri address, int presentation);
Sailesh Nepal61203862014-07-11 14:50:13 -070078
79 void setCallerDisplayName(String callId, String callerDisplayName, int presentation);
Sailesh Nepal2ab88cc2014-07-18 14:49:18 -070080
Santos Cordon7c7bc7f2014-07-28 18:15:48 -070081 void setConferenceableConnections(String callId, in List<String> conferenceableCallIds);
Tyler Gunn4a57b9b2014-10-30 14:27:48 -070082
83 void addExistingConnection(String callId, in ParcelableConnection connection);
Rekha Kumar07366812015-03-24 16:42:31 -070084
85 void setCallSubstate(String callId, int callSubstate);
Ben Giladbb69b0c2013-12-12 18:32:02 -080086}