blob: 4d20bd675628ed871c1c6fbbbb930b30dacd5bd2 [file] [log] [blame]
Andrew Lee752217b2014-08-08 01:40:14 -07001/*
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.ims.internal;
18
Yorke Lee32f24732015-05-12 16:18:03 -070019import android.net.Uri;
Andrew Lee752217b2014-08-08 01:40:14 -070020import android.view.Surface;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070021import android.telecom.VideoProfile;
Andrew Lee752217b2014-08-08 01:40:14 -070022
23import com.android.ims.internal.IImsVideoCallCallback;
24
25/**
26 * Internal remote interface for IMS's video call provider.
27 *
28 * At least initially, this aidl mirrors telecomm's {@link IVideoCallProvider}. We created a
29 * separate aidl interface even though the methods and parameters are same because the
30 * {@link IVideoCallProvider} was specifically created as a binder for inter-process communication
31 * between Telecomm and Telephony.
32 *
33 * We don't want to use the same aidl in other places for communication, namely communication
34 * between Telephony and the IMS Service, even if that communication may be for similar methods.
35 * This decouples the communication among these processes. Similarly, third parties implementing a
36 * video call provider will not have the benefit of accessing the internal
37 * {@link IVideoCallProvider} aidl for interprocess communication.
38 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070039 * @see android.telecom.internal.IVideoCallProvider
40 * @see android.telecom.VideoCallProvider
Andrew Lee752217b2014-08-08 01:40:14 -070041 * @hide
42 */
43oneway interface IImsVideoCallProvider {
Andrei Onea903da372019-02-27 15:45:08 +000044 @UnsupportedAppUsage
Andrew Lee752217b2014-08-08 01:40:14 -070045 void setCallback(IImsVideoCallCallback callback);
46
Tyler Gunna6a00702016-11-30 15:14:26 -080047 void setCamera(String cameraId, int uid);
Andrew Lee752217b2014-08-08 01:40:14 -070048
49 void setPreviewSurface(in Surface surface);
50
51 void setDisplaySurface(in Surface surface);
52
53 void setDeviceOrientation(int rotation);
54
55 void setZoom(float value);
56
Tyler Gunn45382162015-05-06 08:52:27 -070057 void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile);
Andrew Lee752217b2014-08-08 01:40:14 -070058
Ihab Awadb19a0bc2014-08-07 19:46:01 -070059 void sendSessionModifyResponse(in VideoProfile responseProfile);
Andrew Lee752217b2014-08-08 01:40:14 -070060
61 void requestCameraCapabilities();
62
63 void requestCallDataUsage();
64
Yorke Lee32f24732015-05-12 16:18:03 -070065 void setPauseImage(in Uri uri);
Andrew Lee752217b2014-08-08 01:40:14 -070066}