IImsVideoCallProvider.aidl revision 6d3a7575e102e44514c1f834bd497f6b26e96769
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
17package com.android.ims.internal;
18
19import android.net.Uri;
20import android.view.Surface;
21import android.telecom.VideoProfile;
22
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 *
39 * @see android.telecom.internal.IVideoCallProvider
40 * @see android.telecom.VideoCallProvider
41 * @hide
42 */
43oneway interface IImsVideoCallProvider {
44    void setCallback(IImsVideoCallCallback callback);
45
46    void setCamera(String cameraId);
47
48    void setPreviewSurface(in Surface surface);
49
50    void setDisplaySurface(in Surface surface);
51
52    void setDeviceOrientation(int rotation);
53
54    void setZoom(float value);
55
56    void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile);
57
58    void sendSessionModifyResponse(in VideoProfile responseProfile);
59
60    void requestCameraCapabilities();
61
62    void requestCallDataUsage();
63
64    void setPauseImage(in Uri uri);
65}
66