71c73a2985a7ac65ee597be3441ab300fa56e22e |
|
21-Mar-2017 |
Emilian Peev <epeev@google.com> |
Camera: Support vendor tags from multiple providers Different vendors could have different vendor tags. A global vendor tag cache will store all available vendor tag descriptors from different providers. The cache will then be shared with each camera client. Camera metadata will use specific vendor ids stored in the metadata buffer to identify the correct vendor tag provider. Bug: 34275821 Test: adb shell /data/nativetest/cameraservice_test/cameraservice_test --gtest_filter=CameraProviderManagerTest.MultipleVendorTagTest Complete Camera/Camera2 CTS tests Change-Id: I2262128f21a0167504f018230624e2a89786c467
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
1a5954c3adc4dd6c265a7f454cc5d94825a0d1ee |
|
10-Jan-2017 |
Bjoern Johansson <bjoernj@google.com> |
Fix NDK CameraManager crash when no cameras exist The NDK CameraManager only lists cameras that support camera API v2. For a device that only supports v1 the list comes back empty. This results in allocating an array of size zero. This array was then intialized with a nullptr. This is fine if the array contains at least one item but in the case where there are no cameras this will cause a buffer overflow. This change removes the initialization which fixes the crash. Test: manual - ran camera CTS tests Change-Id: Ie1c872ff66997d55572fd855f20b56bd58b01752
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
f51fca277eb5b86bd0b2e3fc90ecb2b63089de29 |
|
13-Dec-2016 |
Eino-Ville Talvala <etalvala@google.com> |
Camera service: Updates in preparation for HIDL - For all camera2 paths, and anything shared between the legacy API and camera2, switch to using strings for camera IDs - Update ICameraService.addListener to return current set of known devices and their status, to allow for immediate return of camera devices when first connecting to camera service - Remove unused code path for getCameraCharacteristics with HALv1 - Add namespace qualifiers to Binder objects that are also used by hardware binder. - Switch to using new HIDL DeviceStatus and TorchStatus enumerations for better type safety in the service; map more clearly between the HAL, service-internal, and Binder enums. Test: cts-tradefed run cts -m Camera --skip-connectivity-check -d -o --abi armeabi-v7a --disable-reboot Bug: 32991422 Change-Id: I765951d9a21000a8432bed9aa0e3604709daa4b1
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
b01d8f7d7853e6cd4ea1256fe3dfb2e4a79cf09a |
|
05-Oct-2016 |
Yunlian Jiang <yunlian@google.com> |
Fix warning: Potential leak of memory pointed to by 'device' This fixes the waring: Potential leak of memory pointed to by 'device' Change-Id: I7e80c36ef4a66bb0e9febef7941c87eb4a083110 Test: The warning is gone.
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
ee844a800889eca5dfe658fbd953946ca1920fae |
|
15-Sep-2016 |
Ivan Podogov <ginkage@google.com> |
Don't try to connect camera service if it is disabled. On Android Wear devices we don't have cameras, so we don't need the proxy service as well. If it is disabled by the system property, don't wait for it to start, but rather return null pointer in getCameraService(), which causes getNumberOfCameras() to report zero cameras available. The same logic applies to ACameraManager, where we return an empty list. Bug: 28560707 Change-Id: I4c0bc29f061f1b66710c8188a7916bfaf089d23f
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
3e49be17d8c8c53f50bb0d39affbbc36f6a12488 |
|
13-Apr-2016 |
Yin-Chia Yeh <yinchiayeh@google.com> |
CameraNDK: add NDK API documents This change adds document for ACameraManager, ACameraDevice and ACameraCaptureSession. Bug: 27102995 Change-Id: I5706337e419cd533c1c7d46e412dc62bf7c726cb
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
02bf03287652923b5bb5316667b065423565d6b4 |
|
18-Feb-2016 |
Eino-Ville Talvala <etalvala@google.com> |
Camera: Clean up warnings and set -Werror - Also fix error logging template inconsistency - Also add a few error handling cases into camera2 NDK to deal with previously-ignored error codes Bug: 27149500 Change-Id: I8f1f4c72252dd48d652f24b595b642199f20c327
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
d56db1d2bee182d1851097a9c712712fc094d117 |
|
18-Dec-2015 |
Eino-Ville Talvala <etalvala@google.com> |
Camera: Switch camera2 to auto-gen C++ binder interfaces - Move camera service AIDL files to frameworks/av - Build C++ interface stubs with AIDL tools - Add necessary native-side parcelables and update existing ones - Remove manually-written stubs, rearrange remaining manual stubs - Adjust implementations to work with auto-generated stubs - Adjust method signatures for auto-gen differences - Add rich error messages using binder::Status Bug: 25091611 Change-Id: I6f69f34b9d1a3f8d1fb7db87357363f8fa8483ff
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
ead9146f844ee194a4f4244ba8ae1a3aece12b63 |
|
07-Jan-2016 |
Yin-Chia Yeh <yinchiayeh@google.com> |
Camera NDK library: capture session implementation Bug: 23012001 Change-Id: I3fd93205dcf1b9ed5a947cb944919eb531f219fc
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|
0dea57fd9fc4b2ccaab97d9477359fbd5a626f5c |
|
10-Dec-2015 |
Yin-Chia Yeh <yinchiayeh@google.com> |
Camera NDK library: first draft Bug: 23012001 Change-Id: I06d834421289d4dead1c87301a6ee94487ccf023
/frameworks/av/camera/ndk/impl/ACameraManager.cpp
|