Debian Codegraph @

telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl

raw
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.ims.internal;
18
19 import android.net.Uri;
20 import android.view.Surface;
21 import android.telecom.VideoProfile;
22
23 import 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 *
39 * @see android.telecom.internal.IVideoCallProvider
40 * @see android.telecom.VideoCallProvider
41 * @hide
42 */
43 oneway interface IImsVideoCallProvider {
44 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
45 void setCallback(IImsVideoCallCallback callback);
46
47 void setCamera(String cameraId, int uid);
48
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
57 void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile);
58
59 void sendSessionModifyResponse(in VideoProfile responseProfile);
60
61 void requestCameraCapabilities();
62
63 void requestCallDataUsage();
64
65 void setPauseImage(in Uri uri);
66 }