blob: 272b884bd20075a06200a2af47a71b6a3e8b8066 [file] [log] [blame]
Andrew Lee13d11c32014-06-20 16:29:33 -07001/*
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 Gunnef9f6f92014-09-12 22:16:17 -070017package com.android.internal.telecom;
Andrew Lee13d11c32014-06-20 16:29:33 -070018
Yorke Lee32f24732015-05-12 16:18:03 -070019import android.net.Uri;
Tyler Gunnbff41312014-06-30 11:20:32 -070020import android.view.Surface;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070021import android.telecom.VideoProfile;
Tyler Gunnbff41312014-06-30 11:20:32 -070022
Andrew Lee13d11c32014-06-20 16:29:33 -070023/**
Andrew Lee50aca232014-07-22 16:41:54 -070024 * Internal remote interface for a video call provider.
Tyler Gunnef9f6f92014-09-12 22:16:17 -070025 * @see android.telecom.VideoProvider
Andrew Lee13d11c32014-06-20 16:29:33 -070026 * @hide
27 */
Ihab Awadb19a0bc2014-08-07 19:46:01 -070028oneway interface IVideoProvider {
Tyler Gunn75958422015-04-15 14:23:42 -070029 void addVideoCallback(IBinder videoCallbackBinder);
30
31 void removeVideoCallback(IBinder videoCallbackBinder);
Andrew Leea5736292014-06-30 12:46:35 -070032
Tyler Gunn159f35c2017-03-02 09:28:37 -080033 void setCamera(String cameraId, in String mCallingPackageName, int targetSdkVersion);
Tyler Gunnbff41312014-06-30 11:20:32 -070034
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 Gunn45382162015-05-06 08:52:27 -070043 void sendSessionModifyRequest(in VideoProfile fromProfile, in VideoProfile toProfile);
Tyler Gunnbff41312014-06-30 11:20:32 -070044
Ihab Awadb19a0bc2014-08-07 19:46:01 -070045 void sendSessionModifyResponse(in VideoProfile responseProfile);
Tyler Gunnbff41312014-06-30 11:20:32 -070046
47 void requestCameraCapabilities();
48
49 void requestCallDataUsage();
50
Yorke Lee32f24732015-05-12 16:18:03 -070051 void setPauseImage(in Uri uri);
Tyler Gunnbff41312014-06-30 11:20:32 -070052}