blob: 7752b0e330a90aa23dc4fcc5ef802758ad2ebb48 [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;
20import @1.0::IEvsEnumerator;
21import @1.0::EvsResult;
22import android.hardware.camera.device@3.2::Stream;
23
24/**
25 * Provides the mechanism for EVS camera discovery
26 */
27interface IEvsEnumerator extends @1.0::IEvsEnumerator {
28 /**
29 * Returns a list of all EVS cameras available to the system
30 *
31 * @return cameras A list of cameras availale for EVS service.
32 */
33 getCameraList_1_1() generates (vec<CameraDesc> cameras);
34
35 /**
36 * Gets the IEvsCamera associated with a cameraId from a CameraDesc
37 *
38 * Given a camera's unique cameraId from CameraDesc, returns the
39 * IEvsCamera interface associated with the specified camera. When
40 * done using the camera, the caller may release it by calling closeCamera().
41 *
42 * @param cameraId A unique identifier of the camera.
43 * @param streamCfg A stream configuration the client wants to use.
44 * @return evsCamera EvsCamera object associated with a given cameraId.
45 * Returned object would be null if a camera device does
46 * not support a given stream configuration or is already
47 * configured differently by another client.
48 */
49 openCamera_1_1(string cameraId, Stream streamCfg) generates (IEvsCamera evsCamera);
Changyeon Jo8bcb4922020-01-15 19:34:50 -080050
51 /**
52 * Tells whether this is EVS manager or HAL implementation.
53 *
54 * @return result False for EVS manager implementations and true for all others.
55 */
56 isHardware() generates (bool result);
Changyeon Joc6fa0ab2019-10-12 05:25:44 -070057};