Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 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 | |
Yorke Lee | 32f2473 | 2015-05-12 16:18:03 -0700 | [diff] [blame] | 19 | import android.net.Uri; |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 20 | import android.view.Surface; |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 21 | import android.telecom.VideoProfile; |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 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 | * |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 39 | * @see android.telecom.internal.IVideoCallProvider |
| 40 | * @see android.telecom.VideoCallProvider |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 41 | * @hide |
| 42 | */ |
| 43 | oneway interface IImsVideoCallProvider { |
Andrei Onea | 903da37 | 2019-02-27 15:45:08 +0000 | [diff] [blame] | 44 | @UnsupportedAppUsage |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 45 | void setCallback(IImsVideoCallCallback callback); |
| 46 | |
Tyler Gunn | a6a0070 | 2016-11-30 15:14:26 -0800 | [diff] [blame] | 47 | void setCamera(String cameraId, int uid); |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 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 | |
Tyler Gunn | 4538216 | 2015-05-06 08:52:27 -0700 | [diff] [blame] | 57 | void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile); |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 58 | |
Ihab Awad | b19a0bc | 2014-08-07 19:46:01 -0700 | [diff] [blame] | 59 | void sendSessionModifyResponse(in VideoProfile responseProfile); |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 60 | |
| 61 | void requestCameraCapabilities(); |
| 62 | |
| 63 | void requestCallDataUsage(); |
| 64 | |
Yorke Lee | 32f2473 | 2015-05-12 16:18:03 -0700 | [diff] [blame] | 65 | void setPauseImage(in Uri uri); |
Andrew Lee | 752217b | 2014-08-08 01:40:14 -0700 | [diff] [blame] | 66 | } |