IImsVideoCallProvider.aidl revision 4538216a31d15b01e18c7b504e51031da0ce6e40
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.view.Surface; 20import android.telecom.VideoProfile; 21 22import 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 */ 42oneway interface IImsVideoCallProvider { 43 void setCallback(IImsVideoCallCallback callback); 44 45 void setCamera(String cameraId); 46 47 void setPreviewSurface(in Surface surface); 48 49 void setDisplaySurface(in Surface surface); 50 51 void setDeviceOrientation(int rotation); 52 53 void setZoom(float value); 54 55 void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile); 56 57 void sendSessionModifyResponse(in VideoProfile responseProfile); 58 59 void requestCameraCapabilities(); 60 61 void requestCallDataUsage(); 62 63 void setPauseImage(String uri); 64} 65