Commit graph

7 commits

Author SHA1 Message Date
Ari Hausman-Cohen
dde8017a33 Removes metadata update macros.
Repaces them with just doing the error check,
and a loop for available characteristic keys.

BUG: 29872714
Change-Id: Idc48c5c51ef081dc4a2d380e2d23ee17347e3115
2016-07-06 12:04:17 -07:00
Ari Hausman-Cohen
4992584376 Initialize capture templates.
As part of this, refactored characteristic initialization into its own
function so it can be used by both templates and static info.

BUG: 29221795

Change-Id: I88bb2e6a96256e3641c7c5d387769880b260535f
2016-07-01 12:36:03 -07:00
Ari Hausman-Cohen
900c1e3a0c Initial static info.
Fills in initial values for all required static info
fields for LIMITED devices. Currently fakes entries
that will eventually be queried from the device (open
bug https://b/29394024).

BUG: https://b/29214526, https://b/29221641
Change-Id: I6b4bfa172c882df22159da63378902cea7cc76fd
2016-06-22 15:58:07 -07:00
Ari Hausman-Cohen
345bd3a19b Open and close v4l2 devices.
BUG: 29191881
Change-Id: Id740ab30fd8f79b4a2cb99d1e5bef2be7472c992
2016-06-14 13:35:45 -07:00
Ari Hausman-Cohen
63f69824e4 Find V4L2 devices from /dev/video*.
Since V4L2CameraHAL now populates its list of cameras,
also added a necessary piece of metadata that was
causing cameraservice to crash.

BUG: 29160300
TEST: Ran on rpi3. HAL finds dev/video* nodes. When a
sym link (/dev/video5 -> /dev/video0) was added, the HAL
correctly did not add a 3rd device.

Change-Id: I95656ac9c062b193c12712b1c73e888bf1f1a961
2016-06-14 11:24:41 -07:00
Ari Hausman-Cohen
77db7d0259 Add default visibility to HAL_MODULE_INFO_SYM
HAL could not be found by the CameraService.

BUG: 29336732
Change-Id: Ic4e509269f7f4171a9a79ce7a319fdc355e06514
2016-06-14 10:53:53 -07:00
Ari Hausman-Cohen
734421538c V4L2 HALv3 initial check in
Decent outline of an initial HALv3. Still a lot to be filled in.
Adapted from the reference implementation in libhardware.

BUG: 29006356
TEST: Ran simple test program. Connects to the HAL and then
  fails because there are no cameras (expected behavior right now).

Change-Id: I11c7e00dca1bbb6ade6b5a0f55fedac3d2d01695
2016-06-13 14:41:24 -07:00