Igor Murashkin | 4491d68 | 2013-05-31 16:43:48 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware; |
| 18 | |
| 19 | import android.hardware.ICamera; |
| 20 | import android.hardware.ICameraClient; |
| 21 | import android.hardware.IProCameraUser; |
| 22 | import android.hardware.IProCameraCallbacks; |
Igor Murashkin | 59bc67c | 2013-06-19 17:47:29 -0700 | [diff] [blame^] | 23 | import android.hardware.photography.ICameraDeviceUser; |
| 24 | import android.hardware.photography.ICameraDeviceCallbacks; |
Igor Murashkin | 4491d68 | 2013-05-31 16:43:48 -0700 | [diff] [blame] | 25 | import android.hardware.ICameraServiceListener; |
| 26 | import android.hardware.CameraInfo; |
| 27 | |
| 28 | /** @hide */ |
| 29 | interface 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 Murashkin | 59bc67c | 2013-06-19 17:47:29 -0700 | [diff] [blame^] | 48 | ICameraDeviceUser connectDevice(ICameraDeviceCallbacks callbacks, int cameraId, |
| 49 | String clientPackageName, |
| 50 | int clientUid); |
| 51 | |
Igor Murashkin | 4491d68 | 2013-05-31 16:43:48 -0700 | [diff] [blame] | 52 | int addListener(ICameraServiceListener listener); |
| 53 | int removeListener(ICameraServiceListener listener); |
| 54 | } |