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.view.Surface;
20 import android.telecom.VideoProfile;
21 
22 import com.android.ims.internal.IImsVideoCallCallback;
23 
24 /**
25  * Internal remote interface for IMS's video call provider.
26  *
27  * At least initially, this aidl mirrors telecomm's {@link IVideoCallProvider}. We created a
28  * separate aidl interface even though the methods and parameters are same because the
29  * {@link IVideoCallProvider} was specifically created as a binder for inter-process communication
30  * between Telecomm and Telephony.
31  *
32  * We don't want to use the same aidl in other places for communication, namely communication
33  * between Telephony and the IMS Service, even if that communication may be for similar methods.
34  * This decouples the communication among these processes. Similarly, third parties implementing a
35  * video call provider will not have the benefit of accessing the internal
36  * {@link IVideoCallProvider} aidl for interprocess communication.
37  *
38  * @see android.telecom.internal.IVideoCallProvider
39  * @see android.telecom.VideoCallProvider
40  * @hide
41  */
42 oneway interface IImsVideoCallProvider {
setCallback(IImsVideoCallCallback callback)43     void setCallback(IImsVideoCallCallback callback);
44 
setCamera(String cameraId)45     void setCamera(String cameraId);
46 
setPreviewSurface(in Surface surface)47     void setPreviewSurface(in Surface surface);
48 
setDisplaySurface(in Surface surface)49     void setDisplaySurface(in Surface surface);
50 
setDeviceOrientation(int rotation)51     void setDeviceOrientation(int rotation);
52 
setZoom(float value)53     void setZoom(float value);
54 
sendSessionModifyRequest(in VideoProfile reqProfile)55     void sendSessionModifyRequest(in VideoProfile reqProfile);
56 
sendSessionModifyResponse(in VideoProfile responseProfile)57     void sendSessionModifyResponse(in VideoProfile responseProfile);
58 
requestCameraCapabilities()59     void requestCameraCapabilities();
60 
requestCallDataUsage()61     void requestCallDataUsage();
62 
setPauseImage(String uri)63     void setPauseImage(String uri);
64 }
65