summaryrefslogtreecommitdiffstats
path: root/camera/ICameraService.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Camera: Add camera type to ICameraService.getNumberOfCameras.Eino-Ville Talvala2015-08-141-2/+9
| | | | | | | | | Also determine the number of 'normal' cameras present on camera service startup, and ensure that all normal cameras have IDs lower than the 'strange' cameras. Bug: 23194168 Change-Id: I1f7b14825cb52707de698a955f85da1eaa932663
* camera2: Fix native binder interface and add tests.Ruben Brunk2015-07-061-0/+3
| | | | | | | | | - Add CameraBinderTests for limited coverage of native camera2 binder interfaces for the camera service. - Fix several bugs in the native binder interfaces. Bug: 18468810 Change-Id: Iab2d81a5cacd20daf7454aeeed033cc13d88452c
* Camera: Change error for app ops reject, propagate binder errorsEino-Ville Talvala2015-06-051-6/+15
| | | | | | | | | | | | | | | | | | | | | | INVALID_OPERATION surfaces as an non-specific device-level error to applications in the onError callback. This is not a condition apps targeting camera2 in L will generally have to deal with. Instead, return -EACCESS which maps to throwing CameraAccessException.CAMERA_DISABLED, same as disabling camera access with DevicePolicyManager. The old camera API converts any error code to -EACCESS at the JNI layer, so this doesn't change anything for the older API. Also update the various native ICameraService binder connect calls to check for the transact error code, and return it if it is not OK. Without this, PERMISSION_DENIED transact errors from the camera service cannot be distinguished from CAMERA_DISABLED errors in some codepaths. Bug: 21604925 Change-Id: Ifccc8989b8c20653429e2d3e51dba7abb2be9c35
* Use memset to initialize dynamic array.Chih-Hung Hsieh2015-05-181-1/+2
| | | | | | | | clang/llvm rejects int32_t events[len] = {};. BUG: 21269094 Change-Id: I0257bfbb72f1b49913baba0164d5a3a7976c452d
* camera2: Fix work-profile eviction handling.Ruben Brunk2015-05-141-5/+23
| | | | | Bug: 20124384 Change-Id: I6fb82dbfd5f98746ed4befed81a583e3709bfee8
* Revert "Add camera app op - camera"Svetoslav Ganov2015-05-121-12/+12
| | | | | | | | This is not needed duplication of work This reverts commit 32fa6d0e65dbf956e253a1006e9419dce2fe75c9. Change-Id: I2c81b0dacb2ed99c408c79c1f9e22a4baa564494
* Add camera app op - cameraSvet Ganov2015-05-021-12/+12
| | | | Change-Id: I26570cc0a23fdea740b416a26838d40cac296c85
* camera2: Enforce client eviction on user switch.Ruben Brunk2015-03-311-0/+16
| | | | | Bug: 19186859 Change-Id: I172a2ce46c8e8a131ae7e8dd99d60c5f4f0d6668
* camera2: Remove ProCamera.Ruben Brunk2015-03-201-52/+8
| | | | | Bug: 19186859 Change-Id: I4aaadb53db65b479f92cbb3c05329d1e40317900
* camera: implement flashlight controlChien-Yu Chen2015-02-121-0/+24
| | | | | | | | Implement flashlight API for module v2.4 by calling module APIs and by for hal v2 and v3 by using CameraDeviceBase. Bug: 2682206 Change-Id: Ib8b77f6fd462489d672f27e14fe37801d35b7544
* Update calls to IInterface::asBinder()Marco Nelissen2014-11-141-10/+10
| | | | | | to use the new static version. Change-Id: I89a5988a0ac694ffc04d88cf939e8455bf925d4c
* cameraservice: Implement HAL1 and higher HAL API coexistenceZhijun He2014-06-191-0/+44
| | | | | | | A higher hal version device like HAL3.2 can be opened as HAL1.0 device if HAL supports it. This only applies to camera API1. Change-Id: I4ae9f59f4317158cc1bd7ed7726e4032cdd1fa07
* camera: Add #getLegacyParameters, #supportsCameraApi to ICameraServiceIgor Murashkin2014-06-171-0/+59
| | | | Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401
* camera2: Don't log vendor tag errors when camera HAL too oldIgor Murashkin2014-03-171-4/+4
| | | | Change-Id: Iac3d23284230c95c85ee404abbf9b22df1ae721c
* camera3: Pass vendor tags through binder.Ruben Brunk2014-03-131-0/+36
| | | | | | | | | | Bug: 12134423 - Adds a class for parceling vendor tag definitions. - Passes vendor tag definitions to clients of the camera service. - Switches over to new vendor tag mechanism when reading from HAL. Change-Id: Icef3fe9e67160767bdb8244ac49c85b68b497123
* Camera: Implement getCameraCharacteristicsZhijun He2013-09-251-0/+36
| | | | | | Bug: 10904541 Bug: 10360518 Change-Id: Ie9ca6b3b0b5f2fe529e6b0decc193096e770a017
* Refactor CameraService to handle errors properly.Ruben Brunk2013-08-161-21/+60
| | | | | | | | Bug: 10361136 -Connect calls now return status_t error flags. Change-Id: Idca453b111e5df31327f6c99ebe853bb2e332b95
* Camera: Rename new API to camera2, rearrange camera serviceEino-Ville Talvala2013-07-301-3/+3
| | | | | | | | | | | - Support API rename from photography to camera2 - Reorganize camera service files - API support files to api1/, api2/, api_pro/ - HAL device support files into device{1,2,3}/ - Common files into common/ - Camera service remains at top-level Change-Id: Ie474c12536f543832fba0a2dc936ac4fd39fe6a9
* Initial implementation of android.hardware.photography.CameraDevice (service)Igor Murashkin2013-06-201-1/+35
| | | | | | | | | | | * Verified preview streaming requests * Other things *should* work but unverified / unimplemented in client side Missing: * CameraService needs to return static camera info metadata Bug: 9213377 Change-Id: I71568560fcf18d0e2b408ed1c4d0066647314868
* camera: Make some binder interfaces compatible with AIDLIgor Murashkin2013-06-111-6/+81
| | | | | | | | | | | | | Done: * ICameraService * ICameraServiceListener Partial: * ICamera (disconnect only) * IProCameraUser (disconnect only) Bug: 9213377 Change-Id: I8e2e6e05cfd02ec36be1d5b2c551f10ffb43b5b4
* Camera: Drop ProCamera connections when a Camera connection happensIgor Murashkin2013-02-281-0/+33
| | | | | | | * Also adds an ICameraServiceListener with available/not available statuses Bug: 8291653 Change-Id: I24680f1a2dc109510caf451cf7c7bd180b670d84
* camera_client: refactor Camera/ProCamera commonalities into BasicCameraIgor Murashkin2013-02-261-2/+13
| | | | Change-Id: Ie10a4094522d49683657665fe94ab0b7ccd280e9
* CameraService and Stagefright: Support AppOpsEino-Ville Talvala2013-02-251-3/+11
| | | | | | | | | | | | | Camera: - Signal to AppOpsService when camera usage starts and stops - Listen to permissions revocations and act on them - Currently just kill camera connection when permissions lost Stagefright: - Pass on client name, UID to camera as needed Bug: 8181262 Change-Id: I9e33c9d05e9daa77dbb2d795045d08eb887ec8f0
* Camera: Add ProCamera private binder interface for an API2-light functionalityIgor Murashkin2013-02-221-0/+18
| | | | Change-Id: I2af7a807c99df75ea659e6e6acc9c4fca6a56274
* Remove new camera connect API.Wu-cheng Li2012-04-191-8/+2
| | | | | | | | Applications are not resumed under the lock screen now. This API is not needed anymore. bug:5584464 Change-Id: I115daf6b647348617ec0fc05b626878c945b9b29
* Add a new camera open API that allows taking the ownership.Wu-cheng Li2012-03-151-3/+8
| | | | | | | | | | | | | | The purpose is to let face unlock always get the camera successfully. What happened was the camera applications may have opened the camera in onResume under the lock screen. This API lets face unlock take the camera from the camera application. A new permission will be added, so other applicatoins won't be able to take the camera from the face unlock. bug:5584464 Change-Id: Ib3d9dcbc2161815b68db42327dc01148453704c6
* Change camera interface to support multiple cameras.Chih-Chung Chang2010-06-111-0/+22
| | | | Change-Id: Ie88fe706d2278acf762eca87780de349434778a4
* Support multiple cameras in framework.Chih-Chung Chang2010-05-101-2/+17
| | | | Change-Id: I081f0fbdca4b633715ea7c3b3d42f8662d27598a
* split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-111-0/+71