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 { setCallback(IImsVideoCallCallback callback)44 void setCallback(IImsVideoCallCallback callback); 45 setCamera(String cameraId)46 void setCamera(String cameraId); 47 setPreviewSurface(in Surface surface)48 void setPreviewSurface(in Surface surface); 49 setDisplaySurface(in Surface surface)50 void setDisplaySurface(in Surface surface); 51 setDeviceOrientation(int rotation)52 void setDeviceOrientation(int rotation); 53 setZoom(float value)54 void setZoom(float value); 55 sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile)56 void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile); 57 sendSessionModifyResponse(in VideoProfile responseProfile)58 void sendSessionModifyResponse(in VideoProfile responseProfile); 59 requestCameraCapabilities()60 void requestCameraCapabilities(); 61 requestCallDataUsage()62 void requestCallDataUsage(); 63 setPauseImage(in Uri uri)64 void setPauseImage(in Uri uri); 65 } 66