blob: 84dd21f92a1019f11affcdff6940d86124fa2d50 [file] [log] [blame]
Changyeon Joc6fa0ab2019-10-12 05:25:44 -07001/*
2 * Copyright (C) 2019 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 android.hardware.automotive.evs@1.1;
18
19import IEvsCamera;
Changyeon Jo043a7a02020-01-02 17:55:55 -080020import IEvsDisplay;
Changyeon Joc6fa0ab2019-10-12 05:25:44 -070021import @1.0::IEvsEnumerator;
22import @1.0::EvsResult;
23import android.hardware.camera.device@3.2::Stream;
24
25/**
26 * Provides the mechanism for EVS camera discovery
27 */
28interface IEvsEnumerator extends @1.0::IEvsEnumerator {
29 /**
30 * Returns a list of all EVS cameras available to the system
31 *
32 * @return cameras A list of cameras availale for EVS service.
33 */
34 getCameraList_1_1() generates (vec<CameraDesc> cameras);
35
36 /**
37 * Gets the IEvsCamera associated with a cameraId from a CameraDesc
38 *
39 * Given a camera's unique cameraId from CameraDesc, returns the
40 * IEvsCamera interface associated with the specified camera. When
41 * done using the camera, the caller may release it by calling closeCamera().
42 *
43 * @param cameraId A unique identifier of the camera.
44 * @param streamCfg A stream configuration the client wants to use.
45 * @return evsCamera EvsCamera object associated with a given cameraId.
46 * Returned object would be null if a camera device does
47 * not support a given stream configuration or is already
48 * configured differently by another client.
49 */
50 openCamera_1_1(string cameraId, Stream streamCfg) generates (IEvsCamera evsCamera);
Changyeon Jo8bcb4922020-01-15 19:34:50 -080051
52 /**
53 * Tells whether this is EVS manager or HAL implementation.
54 *
55 * @return result False for EVS manager implementations and true for all others.
56 */
57 isHardware() generates (bool result);
Changyeon Jo043a7a02020-01-02 17:55:55 -080058
59 /**
60 * Returns a list of all EVS displays available to the system
61 *
62 * @return displayIds Identifiers of available displays.
63 */
64 getDisplayIdList() generates (vec<uint8_t> displayIds);
65
66 /**
67 * Get exclusive access to IEvsDisplay for the system
68 *
69 * There can be more than one EVS display objects for the system and this function
70 * requests access to the display identified by a given ID. If the target EVS display
71 * is not available or is already in use the old instance shall be closed and give
72 * the new caller exclusive access.
73 * When done using the display, the caller may release it by calling closeDisplay().
74 *
75 * @param id Target display identifier.
76 * @return display EvsDisplay object to be used.
77 */
78 openDisplay_1_1(uint8_t id) generates (IEvsDisplay display);
Changyeon Joc6fa0ab2019-10-12 05:25:44 -070079};