summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChien-Yu Chen <cychen@google.com>2015-01-08 11:06:38 -0800
committerChien-Yu Chen <cychen@google.com>2015-01-15 10:35:07 -0800
commit301591776ff1fdc6acccce3936e74f87a60f9d9d (patch)
tree3713ee0754efc86af2c6981413b7128ff52b257f /tests
parent9ab869acfd02cf841a6c8309ae45acf936557720 (diff)
downloadhardware_libhardware-301591776ff1fdc6acccce3936e74f87a60f9d9d.zip
hardware_libhardware-301591776ff1fdc6acccce3936e74f87a60f9d9d.tar.gz
hardware_libhardware-301591776ff1fdc6acccce3936e74f87a60f9d9d.tar.bz2
camera_common: add torch mode APIs for flashlight
Add torch mode APIs to support flashlight without opening any camera devices. Bug: 2682206 Change-Id: Ida46bb878962caf305f3e97051b15e0465fe8c02
Diffstat (limited to 'tests')
-rw-r--r--tests/hardware/struct-offset.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hardware/struct-offset.cpp b/tests/hardware/struct-offset.cpp
index a7ff797..0f4ef41 100644
--- a/tests/hardware/struct-offset.cpp
+++ b/tests/hardware/struct-offset.cpp
@@ -212,7 +212,8 @@ void CheckOffsets(void) {
CHECK_MEMBER_AT(camera_module_t, set_callbacks, 136, 264);
CHECK_MEMBER_AT(camera_module_t, get_vendor_tag_ops, 140, 272);
CHECK_MEMBER_AT(camera_module_t, open_legacy, 144, 280);
- CHECK_MEMBER_AT(camera_module_t, reserved, 148, 288);
+ CHECK_MEMBER_AT(camera_module_t, set_torch_mode, 148, 288);
+ CHECK_MEMBER_AT(camera_module_t, reserved, 152, 296);
//Types defined in camera3.h
CHECK_MEMBER_AT(camera3_device_ops_t, initialize, 0, 0);