History log of /hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6550022dbafb199568af856bda200d56b5ebacbf 13-Sep-2017 Yin-Chia Yeh <yinchiayeh@google.com> Camera: synchronize access to mMemoryMap

Test: stress test on partner device
Bug: 64831570
Change-Id: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
77dd4aaad3d71a31a8b546758d8ee09e9b50d6e0 23-Jun-2017 Yahan Zhou <yahan@google.com> Camera: fix recursive lock in CameraDevice 1.0

Several functions call close() while they are holding a lock, which
results in recursive locking. This CL implements close_locked() to avoid
such behavior.

Bug: 62919192
Test: run vts -m VtsHalCameraProviderV2_4Target, and camera should still
work after it

Change-Id: Ib38e1de19ed3c927bfb645c0c777c04f157f2b88
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
e0a0a1c2391bbf97cd1c2cb39f82a16a11b70d16 09-May-2017 Eino-Ville Talvala <etalvala@google.com> Camera: Clean up TODOs that aren't going to be addressed.

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
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
d4fc4683929b762589b73b09322d364229a3eea3 28-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Camera: use framework header for VideoNativeHandleMetadata" into oc-dev
1ee279df205218fb7372baf031fb93d2a0d6a821 18-Apr-2017 Yin-Chia Yeh <yinchiayeh@google.com> Camera: use framework header for VideoNativeHandleMetadata

Test: build
Bug: 35625849
Change-Id: I8159dd571b6b390fa089d497d45b76c1ec5bda31
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
519c1675c3a489677354e8a3d2666bf1b41df6f0 21-Apr-2017 Yin-Chia Yeh <yinchiayeh@google.com> Camera: use gralloc mapper for handle import

Bug: 37540361
Test: marlin, smoke test GCA
Change-Id: I9d58d9c6af20b37c016f036bce2dcf55817c59aa
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
79d13ff0f5cd3c4242445baf5b2f01a52f0ed06f 31-Mar-2017 Chia-I Wu <olv@google.com> graphics: revise gralloc interfaces

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
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
4e7a3077309d33a21b08e9380573019cc7a8cffb 06-Apr-2017 Steven Moreland <smoreland@google.com> Fix transitive includes.

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
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
ae880e49225d29f27a507814db5805f1a0357f45 05-Apr-2017 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages"" into oc-dev
c25c54f4b19e9a8bd5e908980ab8fdb96854678b 04-Apr-2017 Yin-Chia Yeh <yinchiayeh@google.com> Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages"

This reverts commit 2d80c0d66f9ca869d6102f07bd236b7c4c94c205.

Test: fix b/36876770
Bug: b/36876770
Change-Id: Ia251ec97273d71fd5bc759aa1161960f6266358a
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
73bae67b5d5fce4bf41964e65ab219a8149de691 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Camera: HAL1: remove libbinder usage" into oc-dev
4cea813a35623eff37f68b8890f4a1661743adbe 04-Apr-2017 Eino-Ville Talvala <etalvala@google.com> Merge "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages" into oc-dev
12b364bf8aa87ddc43df7b590d1f1d9b6dc5b061 25-Mar-2017 Yin-Chia Yeh <yinchiayeh@google.com> Camera: HAL1: remove libbinder usage

Test: Angler HAL1 preview/takePicture/record
Bug: 35887419
Change-Id: I6cb37fd78a2fad1ee3b24e4cd61e3a3b2bce4744
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
1ba83a9a282afa086ac2431942a4814633438ffc 22-Mar-2017 Yin-Chia Yeh <yinchiayeh@google.com> Camera: add HAL1 recording batching support

Test: Angler HAL1 + set mBatchSize to 4 locally
Bug: 35997432
Change-Id: I6baf112f9da56534ae81008bad818fba1e76a294
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
2d80c0d66f9ca869d6102f07bd236b7c4c94c205 23-Mar-2017 Eino-Ville Talvala <etalvala@google.com> camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages

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
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp
248ed700fed7e682eddf3d0607592eb5f3a3fb1a 24-Jan-2017 Yin-Chia Yeh <yinchiayeh@google.com> Camera: default implementation of device 1.0

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
/hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp