Andrew Lee | 13d11c3 | 2014-06-20 16:29:33 -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 | |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 17 | package com.android.internal.telecom; |
Andrew Lee | 13d11c3 | 2014-06-20 16:29:33 -0700 | [diff] [blame] | 18 | |
Yorke Lee | 32f2473 | 2015-05-12 16:18:03 -0700 | [diff] [blame] | 19 | import android.net.Uri; |
Tyler Gunn | bff4131 | 2014-06-30 11:20:32 -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; |
Tyler Gunn | bff4131 | 2014-06-30 11:20:32 -0700 | [diff] [blame] | 22 | |
Andrew Lee | 13d11c3 | 2014-06-20 16:29:33 -0700 | [diff] [blame] | 23 | /** |
Andrew Lee | 50aca23 | 2014-07-22 16:41:54 -0700 | [diff] [blame] | 24 | * Internal remote interface for a video call provider. |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 25 | * @see android.telecom.VideoProvider |
Andrew Lee | 13d11c3 | 2014-06-20 16:29:33 -0700 | [diff] [blame] | 26 | * @hide |
| 27 | */ |
Ihab Awad | b19a0bc | 2014-08-07 19:46:01 -0700 | [diff] [blame] | 28 | oneway interface IVideoProvider { |
Tyler Gunn | 7595842 | 2015-04-15 14:23:42 -0700 | [diff] [blame] | 29 | void addVideoCallback(IBinder videoCallbackBinder); |
| 30 | |
| 31 | void removeVideoCallback(IBinder videoCallbackBinder); |
Andrew Lee | a573629 | 2014-06-30 12:46:35 -0700 | [diff] [blame] | 32 | |
Tyler Gunn | 159f35c | 2017-03-02 09:28:37 -0800 | [diff] [blame] | 33 | void setCamera(String cameraId, in String mCallingPackageName, int targetSdkVersion); |
Tyler Gunn | bff4131 | 2014-06-30 11:20:32 -0700 | [diff] [blame] | 34 | |
| 35 | void setPreviewSurface(in Surface surface); |
| 36 | |
| 37 | void setDisplaySurface(in Surface surface); |
| 38 | |
| 39 | void setDeviceOrientation(int rotation); |
| 40 | |
| 41 | void setZoom(float value); |
| 42 | |
Tyler Gunn | 4538216 | 2015-05-06 08:52:27 -0700 | [diff] [blame] | 43 | void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile); |
Tyler Gunn | bff4131 | 2014-06-30 11:20:32 -0700 | [diff] [blame] | 44 | |
Ihab Awad | b19a0bc | 2014-08-07 19:46:01 -0700 | [diff] [blame] | 45 | void sendSessionModifyResponse(in VideoProfile responseProfile); |
Tyler Gunn | bff4131 | 2014-06-30 11:20:32 -0700 | [diff] [blame] | 46 | |
| 47 | void requestCameraCapabilities(); |
| 48 | |
| 49 | void requestCallDataUsage(); |
| 50 | |
Yorke Lee | 32f2473 | 2015-05-12 16:18:03 -0700 | [diff] [blame] | 51 | void setPauseImage(in Uri uri); |
Tyler Gunn | bff4131 | 2014-06-30 11:20:32 -0700 | [diff] [blame] | 52 | } |