blob: 2d0c09945482c69a7d5e7e867eb708c808a6af6a [file] [log] [blame]
Igor Murashkin4491d682013-05-31 16:43:48 -07001/*
2 * Copyright (C) 2013 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;
18
19import android.hardware.ICamera;
20import android.hardware.ICameraClient;
21import android.hardware.IProCameraUser;
22import android.hardware.IProCameraCallbacks;
Igor Murashkin70725502013-06-25 20:27:06 +000023import android.hardware.photography.ICameraDeviceUser;
24import android.hardware.photography.ICameraDeviceCallbacks;
Igor Murashkin4491d682013-05-31 16:43:48 -070025import android.hardware.ICameraServiceListener;
26import android.hardware.CameraInfo;
27
28/** @hide */
29interface ICameraService
30{
31 /**
32 * Keep up-to-date with frameworks/av/include/camera/ICameraService.h
33 */
34 int getNumberOfCameras();
35
36 // rest of 'int' return values in this file are actually status_t
37
38 int getCameraInfo(int cameraId, out CameraInfo info);
39
40 ICamera connect(ICameraClient client, int cameraId,
41 String clientPackageName,
42 int clientUid);
43
44 IProCameraUser connectPro(IProCameraCallbacks callbacks, int cameraId,
45 String clientPackageName,
46 int clientUid);
47
Igor Murashkin70725502013-06-25 20:27:06 +000048 ICameraDeviceUser connectDevice(ICameraDeviceCallbacks callbacks, int cameraId,
49 String clientPackageName,
50 int clientUid);
51
Igor Murashkin4491d682013-05-31 16:43:48 -070052 int addListener(ICameraServiceListener listener);
53 int removeListener(ICameraServiceListener listener);
54}