summaryrefslogtreecommitdiffstats
path: root/camera/provider
Commit message (Collapse)AuthorAgeFilesLines
* Camera: Clean up TODOs that aren't going to be addressed.Eino-Ville Talvala2017-05-081-4/+0
| | | | | | | | | | | These TODOs aren't in scope for the wrapper libraries. Leave the few TODOs that have bugs tracking them, and the ones that are from autogenerated metadata. Test: Builds Bug: 34108979 Change-Id: Ib28467a4fbcfaab4a0809334bc62eabb9290797a
* Merge "Camera: use gralloc mapper for handle import" into oc-devTreeHugger Robot2017-04-271-0/+1
|\
| * Camera: use gralloc mapper for handle importYin-Chia Yeh2017-04-271-0/+1
| | | | | | | | | | | | Bug: 37540361 Test: marlin, smoke test GCA Change-Id: I9d58d9c6af20b37c016f036bce2dcf55817c59aa
* | CameraProvider: Check camera device versionEmilian Peev2017-04-252-0/+49
|/ | | | | | | | Make sure we are working with supported devices. Bug: 34392075 Test: Manual using application Change-Id: I834612303f3e02e79924efbdcc25cff890defefb
* camera: Adjust for libui gralloc flags changeChris Forbes2017-04-212-30/+34
| | | | | | Change-Id: Ia09737c28a78a8a50a9f751ed2774299ecc3d58c Bug: b/33350696 Test: Bullhead: booted to launcher, take photo, watch youtube
* Use fmq for camera capture request.Yifan Hong2017-04-131-4/+4
| | | | | | | Test: camera works. Bug: 35788245 [Treble] Pass camera metadata using shared memory Change-Id: I4a1585315bf448c8c57def2964237cae21bdbe03
* android.hardware.camera.provider@2.4: set up /dev/vndbinderIliyan Malchev2017-04-132-0/+6
| | | | | | | | | | | | | | | | The camera-HAL implementation may need to communicate with other vendor components over /dev/vndbinder. Route all libbinder traffic to that node. b/36651814 b/36651237 b/35870313 b/36683636 Test: sailfish Change-Id: I9b80fefbcdf5ce18a2d788e8582ea8791a604435 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Update makefiles (2/2).Steven Moreland2017-04-111-0/+1
| | | | | Test: pass Change-Id: Ic7e6289c7b69785491708ce0acbb657f4c704229
* graphics: revise gralloc interfacesChia-I Wu2017-04-102-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revise IAllocator and IMapper to reduce IPC and to support gralloc0 devices. Specifically, IAllocator is trimmed down to have essentially only allocate(BufferDescriptor descriptor, uint32_t count) generates (Error error, uint32_t stride, vec<handle> buffers); The ability to allocate buffers with shared backing store is removed. ProducerUsage and ConsumerUsage are moved to the graphics.common package and are merged and renamed to BufferUsage. BufferUsage's bits follow gralloc0. IMapper gains typedef vec<uint32_t> BufferDescriptor; createDescriptor(BufferDescriptorInfo descriptorInfo) generates (Error error, BufferDescriptor descriptor); where BufferDescriptor is an implementation-defined blob. lockFlex is replaced by lockYCbCr. All getters are removed. Reference counting with retain/release is replaced by importBuffer/freeBuffer. Most if not all gralloc1 features are not used by the runtime yet. There is also not too much test written for them. As such, they tend to behave differently between implementations and cannot be used reliably. Bug: 36481301 Test: builds and boots on Pixel Change-Id: I1d31105120517ea2c128c7a19297acf3bfd312bb
* Fix transitive includes.Steven Moreland2017-04-061-1/+1
| | | | | | | | | Files relying on transitive include of utils/Log.h (and things that it includes) from MQDescriptor.h Test: pass Merged-In: Iff316b21bef556bb026378b7f89e97ded3febef4 Change-Id: Iff316b21bef556bb026378b7f89e97ded3febef4
* Merge "CameraProvider: Refactor legacy name regex code" into oc-devGreg Hartman2017-04-052-24/+27
|\
| * CameraProvider: Refactor legacy name regex codeAndreas Gampe2017-04-052-24/+27
| | | | | | | | | | | | | | | | | | | | The match will use iterators that will be invalidated when the used string input goes out of scope. Refactor the API to return the two components of the match. Bug: 36871785 Test: m && m SANITIZE_TARGET=address Change-Id: I2418541234a09e53856ea61e0fbc4b67d8036308
* | Merge "Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 ↵Yin-Chia Yeh2017-04-042-16/+7
|\ \ | |/ |/| | | usages"" into oc-dev
| * Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages"Yin-Chia Yeh2017-04-042-16/+7
| | | | | | | | | | | | | | | | This reverts commit 2d80c0d66f9ca869d6102f07bd236b7c4c94c205. Test: fix b/36876770 Bug: b/36876770 Change-Id: Ia251ec97273d71fd5bc759aa1161960f6266358a
* | Merge "Camera: HAL1: remove libbinder usage" into oc-devTreeHugger Robot2017-04-041-0/+2
|\ \ | |/ |/|
| * Camera: HAL1: remove libbinder usageYin-Chia Yeh2017-04-011-0/+2
| | | | | | | | | | | | Test: Angler HAL1 preview/takePicture/record Bug: 35887419 Change-Id: I6cb37fd78a2fad1ee3b24e4cd61e3a3b2bce4744
* | Merge "Camera: add interface to evict obsolete buffer caches" into oc-devTreeHugger Robot2017-04-041-0/+10
|\ \
| * | Camera: add interface to evict obsolete buffer cachesYin-Chia Yeh2017-04-031-0/+10
| |/ | | | | | | | | | | Test: fix CTS ReprocessCaptureTest Bug: 34461678 Change-Id: Icde654b0c8423c31d7d39d180913ffa374e7de3c
* | Merge "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages" ↵Eino-Ville Talvala2017-04-032-7/+16
|\ \ | | | | | | | | | into oc-dev
| * | camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usagesEino-Ville Talvala2017-03-302-7/+16
| |/ | | | | | | | | | | | | | | | | | | | | | | Otherwise some bits will be set incorrectly. Also move device@1.0 to use ProducerUsageFlags instead of ProducerUsage, and add a compatibility workaround to set the gralloc0 HW_CAMERA_ZSL flags when ConsumerUsage::CAMERA is passed in. Test: Camera CTS passes, updated VTS tests pass Bug: 35215313 Change-Id: I981dc1a650f838f94d932944fe835fd267f2004d
* / Camera: add HAL1 recording batching supportYin-Chia Yeh2017-04-011-0/+22
|/ | | | | | Test: Angler HAL1 + set mBatchSize to 4 locally Bug: 35997432 Change-Id: I6baf112f9da56534ae81008bad818fba1e76a294
* update-makefiles for transisitive dependenciesSteven Moreland2017-03-201-0/+4
| | | | | | Test: pass Bug: 36162559 Change-Id: I4f5fddaef9811f0da1d69fa26a5d34830a1a9634
* Merge "Camera: add batching support"TreeHugger Robot2017-03-201-26/+61
|\
| * Camera: add batching supportYin-Chia Yeh2017-03-191-26/+61
| | | | | | | | | | | | | | | | Currently only batching high speed recording request/results. Test: GCA slow motion recording working Bug: 34899394 Change-Id: Id83b9d1cefe011391c86a5e7e898262a169cc9e7
* | camera.provider@2.4: Legacy wrapper: Run with more threads.Eino-Ville Talvala2017-03-171-2/+2
|/ | | | | | | | | | | Each concurrent camera device in use needs 1 thread to maintain operational semantics, plus we probably need threads for sensor service calls, misc camera service calls, etc. Up thread count to 6. That should be enough for everybody. Test: Camera still works on sailfish Change-Id: I2262c69985756fbf762034663ce24f45bf7ce2f1
* Merge "Camera: Provider: Set up vendor tag before getDeviceVersion"TreeHugger Robot2017-03-161-5/+6
|\
| * Camera: Provider: Set up vendor tag before getDeviceVersionShuzhen Wang2017-03-151-5/+6
| | | | | | | | | | | | | | | | | | getDeviceVersion calls get_camera_info, which could contain vendor tags. As a result, we need to set up vendor tag before that. Test: Verify vendor tag in static metadata works. Bug: 33641150 Change-Id: Id4cfea52235542b19170a757b4c6bea3ad1d190d
* | Camera: Check for transport errors during VTSEmilian Peev2017-03-151-343/+495
| | | | | | | | | | | | | | | | | | - Check for transport errors during IPC calls. - Some code clean up and refactoring. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: I71f96704f82db629d1982997940d8d1b7525ffea
* | Camera: Add Hal version 1 get-/setParameter testsEmilian Peev2017-03-151-0/+113
| | | | | | | | | | | | | | | | | | Tests are required for checking the basic camera parameters functionality. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: I5725fef0bb4f5ac08ecae94def5cae66a640409a
* | Camera: Add Hal version 1 sendcommand testsEmilian Peev2017-03-151-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | Tests are needed for verifying 'sendCommand' API call. Several new test cases will be available: "sendCommandFaceDetection" - This will check whether face detection is available and try to enable&disable it. "sendCommandSmoothZoom" - Will try to verify whether smooth zoom can be enabled&disabled in case the camera supports it. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: Ib56f363126907f24b1af04187b093aa6c8e8ac99
* | Camera: Add Hal version 1 autofocus test casesEmilian Peev2017-03-154-2/+1383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests should be available for autofocus verification. The new cases include: "autoFocus" - Check whether the camera supports autofocus. In case auto is supported it will continue and test all available modes that allow 'autoFocus' calls. "cancelAutoFocus" - In case auto is supported, the test will trigger full AF scan and cancel it immediately. 'CameraParameters' functionality is also required and should be included. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: I3bef25c5fdb6bbfa87517e6d255e4e6e01544d7d
* | Camera: Add Hal version 1 video recording test casesEmilian Peev2017-03-141-6/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | Tests involving Hal version 1 video recording APIs are required. Several cases will be available: - 'startStopRecording' - Verifies basic video recording functionality. Metadata support will be tested if available. - 'startRecordingFail' - Checks that recording can be enabled only after preview starts. Bug: 32022758 Test: compile and run the gtest binary on device Change-Id: Id9dd8d3a554a1aa3bbbae9b836e4d14da5c4446b
* | Camera: Add Hal version 1 image capture test casesEmilian Peev2017-03-131-59/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests involving Hal version 1 image capture APIs are required. Several cases cover this: - 'takePicture' - Regular image capture after preview gets enabled. - 'takePictureFail' - Checks correct behavior in case preview is not running. - 'cancelPicture' - Verifies that image capture can be cancelled. - 'cancelPictureFail' - Checks that image capture cancel fails as expected in case 'takePicture' didn't get called. Switch to BufferItemConsumer instead of CpuConsumer and use GLConsumer default usage flags. Bug: 32022758 Test: compile and run the gtest binary on device Change-Id: I8db60aa8a21b6f829574fc9538da5644a4051e49
* | Camera: Add device ver. 1 preview test casesEmilian Peev2017-03-132-3/+432
| | | | | | | | | | | | | | | | | | | | Test cases enabling/disabling preview using version 1 camera devices are needed. Test case is also available for "setPreviewWindow". BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: I234881fe940309dbb6ac11bfee7d01cc76d09f59
* | Camera: Extend camera test cases for camera 1.0 devicesEmilian Peev2017-03-132-4/+246
| | | | | | | | | | | | | | | | | | | | Test cases involving camera version 1.0 devices are required. The API methods which overlap between 3.x and 1.0 devices should be considered in the respective test cases. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: I044b6586b812aed14d66867d51f97123addcd718
* | Camera: Add flush test casesEmilian Peev2017-03-131-377/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Camera should flush pending requets and buffers correctly. Two new test cases will help with the verification of this method: - 'flushPreviewRequest' - Constructs a valid camera request and sends it to camera. The test will not wait for the request to complete instead it will call flush immediately. The results and notifications that follow are checked for consistency with expected behavior. - 'flushEmpty' - Triggers flush without any pending request. Check whether the camera behaves as expected. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: Iab9e37b3864491f970a783a68952a9c0c1703520
* | Camera: Enable and check for torch callbacksEmilian Peev2017-03-131-19/+71
|/ | | | | | | | | The expected torch callbacks can be verified during the torch set test. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: Idaa1a4c6eb5306f1a2e1d126f54fcb26aaa1dc7c
* Change vts target base test class nameYuexi Ma2017-03-102-4/+4
| | | | | Test: make vts succeed, vts kernel tests and nfc hal tests passed Change-Id: I95f10ad7a66f261c9030357edd411fe6d94150e8
* hidl_default to all targets.Steven Moreland2017-03-082-0/+3
| | | | | | | | | | | find hardware/interfaces -type f -not -path "*/.git/*" \ -exec sed -i -e '/cc_[A-Za-z_]\+/ { N; s/$/\n defaults: \["hidl_defaults"\],/ }' {} \; ./hardware/interfaces/update-makefiles.sh Test: pass Bug: 35840847 Change-Id: If10c464d2f000b85c8d698fe11a4f3fc4cfad282
* Camera: remove warning from VTS testSteven Moreland2017-03-081-1/+1
| | | | | Test: pass Change-Id: I8028577c5589aa7234dd55c7602aeb807f25501d
* Merge "Camera: default implementation of device 1.0"Yin-Chia Yeh2017-03-022-14/+54
|\
| * Camera: default implementation of device 1.0Yin-Chia Yeh2017-03-012-14/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also some updates to HIDL interface: - Add releaseRecordingFrameHandle to ICameraDevice for native handle metadata recording mode - Add handleCallbackTimestamp to ICameraDevieCallback for native handle metadata recording mode - Add missing face detection metadata to ICameraDeviceCallback::dataCallback - Instead of passing native handle, pass buffer ID in dequeueBuffer/enqueueBuffer/cancelBuffer in ICameraDevicePreviewCallback - Add CameraFrameMetadata in types.hal for face metadata Test: Camera CTS passing (except FlashLightTest) on Angler Bug: 30985004 Change-Id: Idf72a4b5f4c934845ac698f0b13536608ffd0100
* | change all vts hidl tests to use VtsHalHidlTargetBaseTest (internal master)Yuexi Ma2017-02-282-5/+4
|/ | | | | | Bug: 33385836 Test: mma Change-Id: Ide3ebc4a9db76257f33bcfb0c1f13d2ee33eeaa8
* Merge "Remove viral dependency on libhwbinder. (2/2)"TreeHugger Robot2017-02-241-2/+0
|\
| * Remove viral dependency on libhwbinder. (2/2)Steven Moreland2017-02-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | find hardware/interfaces -name Android.mk -exec sed -i -e '/libhwbinder \\/d' {} \; find hardware/interfaces -name Android.bp -exec sed -i -e '/"libhwbinder"/d' {} \; ./hardware/interfaces/update-makefiles.sh Note, automotive has some actual dependencies on libhwbinder, filed b/35758626 for this. Test: everything links Test: (sanity) booted marlin on internal master with these changes Bug: 35710429 Change-Id: I6d0726c8130d00684b978efbdd48e3ae396f12e5
* | Camera: Redirect dump to "/dev/null" instead of stdoutEmilian Peev2017-02-231-2/+7
|/ | | | | | | | | | | | | This SELinux context doesn't have permission to access stdout in read/write mode. Doing so will result in violation and subsequent failure when running in binderized mode. Switch to '/dev/null' which still can be used with SELinux enabled. BUG: 35701060 Test: adb shell /data/nativetest/VtsHalCameraProviderV2_4TargetTest/VtsHalCameraProviderV2_4TargetTest Change-Id: Ib1cf2766ca41cfe3600ad8a4442a334dfab0e2c1
* Camera: Add camera capture request VTS testsEmilian Peev2017-02-222-1/+370
| | | | | | | | | | | | | | | | | | Use single camera capture requests to verify basic 'processCaptureRequest' functionality: - 'processCaptureRequestSinglePreview' will generate a valid preview capture request. The result needs to include both valid stream Id and frame number. - 'processCaptureRequestInvalidSinglePreview' will omit the settings from the first capture request. Hal should handle this by returning an appropriate error. - 'processCaptureRequestInvalidSingleSnapshot' will have a valid blob request but no valid output buffers. Hal should again return appropriate error in this case. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: I021dd150b12d4be39fae47e13ba82d3db105bfa3
* Camera: Extend Camera VTS testingEmilian Peev2017-02-221-1/+731
| | | | | | | | | | | | | | | Further tests concerning camera configurations. The additional tests corver: - The available stream configurations. - Invalid stream parameters. - Constrained mode if available. - ZSL mode if available. - Stream combinations including preview and still capture. - Stream combinations including video and snapshot. BUG: 32022758 Test: compile and run the gtest binary on device Change-Id: I5111ac96b4aaa7ad9f163f990f6b0d0c229993f9
* Update the test binary and source file name on master.Zhuoyao Zhang2017-02-212-2/+2
| | | | | | | | * To confirm with Vts naming convention. Bug: 35273456 Test: mma Change-Id: I845da64085253cd02480465479618308045a52ed
* Move hidl shims to the vendor partition. (2/2)Steven Moreland2017-02-132-1/+3
| | | | | | | | | | | | We need google shims on the vendor partition because they are providing an implementation of a vendor defined interface. They were written by google just as a courtesy/to make the transition easier. They're basically a set for vendors to assemble their hal implementations from. Bug: 34135607 Test: marlin persist.hal.binderization on/off Change-Id: I2e2af5af39264cf290259755bb9b2eb9827a21f5