Commit graph

409 commits

Author SHA1 Message Date
Alex Ray
2ce219a746 camera3: Pass consumer information in configure_streams
HALs seem to need to know the gralloc usage flags of the opposite
endpoint (producer/consumer) of a stream at configure time.
Instead of adding another call to pass stream information, we just
pass the usage flags in the existing usage field.

Change-Id: I745baf2c4dd9123273d811b9bd52ae68c854b70c
2013-06-20 18:28:57 -07:00
Jaikumar Ganesh
b951dee9e6 Fused Location Provider HAL interface.
Fused location allows for fusion of information from
multiple source like GPS, Wifi, Cell, Bluetooth, Sensors etc
to get a location. Doing this in hardware is useful because
it can be done completely in the baseband without waking up the AP.

Change-Id: Ib007839ff51b7e87e8d62f0ff9fea1c4a474b1d1
2013-06-11 11:45:04 -07:00
Eino-Ville Talvala
73dba5e043 Camera3: Document missing AF transitions.
Bug: 9075581

Change-Id: I7688cee904987f404b4ab7ff0e5212182f85a271
2013-05-21 16:31:27 -07:00
Jesse Hall
4ed61b22e0 Merge "Move virtual displays out of HWC 1.2, mark experimental" into jb-mr2-dev 2013-05-08 20:53:34 +00:00
Eino-Ville Talvala
c6ff6c40dd Merge "gralloc: Clarify alloc stride for HAL_PIXEL_FORMAT_YCbCr_420_888" into jb-mr2-dev 2013-05-08 16:55:15 +00:00
Jesse Hall
380f45dade Move virtual displays out of HWC 1.2, mark experimental
Bug: 8384764
Change-Id: I388ff3f46893b395e5c4187242f51ad7bb58da24
2013-05-07 12:03:27 -07:00
Eino-Ville Talvala
6efab252d5 gralloc: Clarify alloc stride for HAL_PIXEL_FORMAT_YCbCr_420_888
Bug: 8734880
Change-Id: I0cca7fd1965e1547991be06b6b18d6302dbe8670
2013-05-06 14:05:05 -07:00
Eino-Ville Talvala
b605944f0a Camera3: Document cropping behavior
Redefined somewhat from HAL2, to be simpler for everyone.

Bug: 8756080
Change-Id: I6b7608c74c06cc6a0bfe07997444e3b07c3edb10
2013-05-01 15:23:21 -07:00
Alex Ray
06e3bf2566 gralloc: add lock_ycbcr method
This method is meant for locking the flexible YCbCr format documented in
the system graphics header.

Bug: 8734880
Change-Id: I45ae8937dcc16d0ae8a204a136121f78b4cc51e0
2013-04-26 13:51:10 -07:00
Eino-Ville Talvala
75f0d0ec0d Merge "Camera3: Clarify SHUTTER timing, ownership of request contents" into jb-mr2-dev 2013-04-25 19:28:27 +00:00
Etienne Le Grand
7a813e8442 Modify sign of bias in uncalibrated magnetometer
bug 8632692
Change-Id: If92f0030e53d41a7d0bc3c3b003f5eb939123945
2013-04-23 14:32:22 -07:00
Eino-Ville Talvala
71af102b48 Camera3: Clarify SHUTTER timing, ownership of request contents
- Clarify ownership of fence file descriptors, including in case of
  errors.

- Make it clear notify SHUTTER must be called before the first
  process_capture_result.

Change-Id: I644054a7a055c2e8a6a164c5ab6439ef2a0d1df1
2013-04-22 14:19:21 -07:00
Alex Ray
a7c6642913 Revert "gralloc: add lock_ycbcr method"
This reverts commit baa47f353a.
2013-04-18 15:02:57 -07:00
Alex Ray
c82a0e7792 Merge "gralloc: add lock_ycbcr method" into jb-mr2-dev 2013-04-18 20:39:42 +00:00
Andre Eisenbach
3331718e7a LE (1/3): Add application ID to connection callback
Bug: 8589393
Change-Id: I1c9d83b988cad71c5652ecf4025fdc6f650fff42
2013-04-16 23:54:28 -07:00
Alex Ray
baa47f353a gralloc: add lock_ycbcr method
This method is meant for locking the flexible YCbCr format documented in
the system graphics header.

Change-Id: I98b196bab06f1d05fce725da44760180ce487034
2013-04-09 15:11:45 -07:00
Eino-Ville Talvala
7c9416b188 Camera3: Allow many calls to process_capture_result per request
Allow the HAL to split the capture result across multiple calls to
process_capture_result, so that when the sync framework cannot be
used, some output buffers can still be returned later than others.

Change-Id: Iea7f77a3d28daac3a94045ab4566f677aa53a7f9
2013-04-08 17:08:00 -07:00
Etienne Le Grand
28f04113f5 Sensor HAL updates
Improve explanation of Batch mode
Put the 4th component of the unit quaternion back in the rotation vector
Modify rotation vector description
Modify definition of uncalibrated sensor event
Remove query()

Change-Id: I7564073fac0e2467bcfca040b259d9d20e2688c5
2013-04-04 15:14:58 -07:00
Ravi Nagarajan
ebb8c1b8f6 Set max RC attribute count to 7
Per spec max RC attributes are 7

Change-Id: Ied4b5ff9487aab32b7e0c824ecaa20b21079c458
2013-04-01 17:28:31 -07:00
Eino-Ville Talvala
6ae9f7049c Merge "Camera3: Documentation additions" into jb-mr2-dev 2013-04-01 16:39:20 +00:00
Eino-Ville Talvala
acbc451e92 Camera3: Documentation additions
- Detailed documentation of the 3A state machines
  (autofocus, autoexposure, auto-whitebalance)
- Add error return value for out-of-sequence device calls
- Spelling fixes

Change-Id: Icc4e1980b1ff058425a42bc665d345070944b173
2013-03-29 17:14:18 -07:00
Jaikumar Ganesh
3e39c4906d Gps geofence.
Make the add / remove / pause / resume asynchronous.

Change-Id: I6d6d254613623b564f1cb6a59742fe000e47ac1e
2013-03-29 11:56:36 -07:00
Igor Murashkin
e1c3ff6641 Merge "camera_common.h: Add STATUS_ENUMERATING enum" into jb-mr2-dev 2013-03-21 23:16:47 +00:00
Igor Murashkin
152b50fda6 camera_common.h: Add STATUS_ENUMERATING enum
Change-Id: I0986d37364a2666d493cb771fa76967aa051ca5d
2013-03-21 16:06:42 -07:00
Zhihai Xu
bf94f90cdc Merge "Initial version of RC HAL for AVRCP 1.3" into jb-mr2-dev 2013-03-21 16:46:44 +00:00
Ravi Nagarajan
482ba78a99 Initial version of RC HAL for AVRCP 1.3
Change-Id: Idbea1294d091cbe0b9ebc3a7a0cad9f0c738e32c
2013-03-20 18:45:13 -07:00
Eino-Ville Talvala
ad186ba61c Merge "Camera: Minor fixes to camera3 HAL interface" into jb-mr2-dev 2013-03-14 19:00:33 +00:00
Eino-Ville Talvala
2f8cf5cb46 Camera: Minor fixes to camera3 HAL interface
- Add explicit status to buffer, to allow simple reporting
  of buffer filling failures.
- Clarify error management wording
- Clarify close() preconditions

Change-Id: I1660103aa1822d194ec0afab44e09554c1ac0782
2013-03-11 14:25:52 -07:00
Alex Ray
aa54f436cd Merge "libhardware: Add camera_info typedef" into jb-mr2-dev 2013-03-08 01:58:30 +00:00
Etienne Le Grand
2e7d3cd8a8 Minor fix in significant motion description
Change-Id: I155181e43750948a6fd6fc246a4e0203cea7c9cb
2013-03-07 12:22:32 -08:00
Etienne Le Grand
435e4a2b04 Merge "Add significant motion description" into jb-mr2-dev 2013-03-07 18:34:08 +00:00
Etienne Le Grand
1461f28f50 Add significant motion description
Change-Id: I56de3f2c12243b3d25cd825b66f7685e674533ff
2013-03-06 17:14:58 -08:00
Eino-Ville Talvala
3ba9dcb180 Merge "Camera: Fix incorrect pointer types" into jb-mr2-dev 2013-03-06 21:28:52 +00:00
Eino-Ville Talvala
3a6e6b4432 Camera: Fix incorrect pointer types
- Array of streams given to configure_streams() must be an array of
  pointers to streams, to allow framework to fulfill stream structure
  lifetime guarantees.

- buffer_handle_t needs extra level of indirection to match HAL1 & 2.

Change-Id: Iee071da39218a748933c3dfa7bccb66fe92c05f1
2013-03-06 13:21:11 -08:00
Alex Ray
9acc74043b libhardware: Add camera_info typedef
Change-Id: I67ce80c886723d4dba7f799b6b135aa7026c2187
2013-03-05 16:19:59 -08:00
Etienne Le Grand
ca8581433b Sensors HAL iterative update for jb-mr2
Specified more precisely what the uncalibrated magnetometer should be
Added uncalibrated sensors event struct
Specified that rotation vector and game rotation vector have to use gyroscopes
Added magnetic field rotation vector
Added accuracy field to rotation vector and magnetometer rotation vector
Added section on comparative importance of batching different sensors
Specified that one-shot sensors must deactivate themselves before sending an event.

Change-Id: Ibc30ce6fc30e698af49a91930bd5a8316b6568b9
2013-03-04 14:59:27 -08:00
Ganesh Ganapathi Batta
fefb334390 Initial version of BLE support for Bluedroid
Change-Id: Iacf3a56943b31c4fd4f4b833ed675a35cbd47104
2013-02-27 18:14:00 -08:00
Jaikumar Ganesh
5824b40278 Add GPS_GEOFENCE_ERROR constants.
Change APIs to return error constants.

Change-Id: I221e94060c1549c7ffc8e05c7ad4802b981a31bf
2013-02-26 09:34:28 -08:00
Alex Ray
8411381778 Merge "camera3: remove redundant hardware error condition" 2013-02-22 21:06:53 +00:00
Jaikumar Ganesh
052a20a854 Add GPS geofencing HAL.
This adds APIs for doing GPS Geofencing in the hardware.

Change-Id: I32564d7620969e6a1cd3c32242b7805d26b7af1e
2013-02-21 17:12:34 -08:00
Jaikumar Ganesh
9f6e4bf901 Merge "Revert "Add GPS geofencing HAL."" 2013-02-21 22:56:20 +00:00
Jaikumar Ganesh
aa24214a12 Revert "Add GPS geofencing HAL."
This reverts commit 86abc8cf18.
2013-02-21 14:55:50 -08:00
Jaikumar Ganesh
eee6ec95a1 Merge "Add GPS geofencing HAL." 2013-02-21 22:42:49 +00:00
Jaikumar Ganesh
86abc8cf18 Add GPS geofencing HAL.
This adds APIs for doing GPS Geofencing in the hardware.

Change-Id: Ia353a0919bfc44d31d152f10e3d20080daffd2e2
2013-02-21 14:01:15 -08:00
Eino-Ville Talvala
8ec5086826 Merge "WIP: Camera HAL module 2.1, device 2.1" 2013-02-19 18:23:55 +00:00
Alex Ray
d5ddbc9f7a camera3: remove redundant hardware error condition
Change-Id: I8cc538f82cf42972cc4d7cb155539222c41b4e0a
2013-02-15 13:47:24 -08:00
Eino-Ville Talvala
d76f8af6d4 WIP: Camera HAL module 2.1, device 2.1
- Support a simple callback from camera HAL module to framework, to
  indicate a change to module configuration or status.

- Add support for per-instance metadata to camera 2 device HAL.

Change-Id: I25699ff096c4f3578b9e54c7e6e60ce2449adc82
2013-02-15 13:44:53 -08:00
Eino-Ville Talvala
7effe0ce84 Camera: Minor cleanup to HAL 3.0 header
Change-Id: I64c61687cbf5850341d9e528c47b7b4dca773546
2013-02-15 12:09:48 -08:00
Eino-Ville Talvala
d2a877536a Camera device HAL 3.0
- High-level behavior is identical to device HAL 2.0
- Interface is cleaned up and simplified greatly

Change-Id: Ia867bbf9484be2256470f4acfab7fc3d47e408f4
2013-02-15 19:47:45 +00:00
Alex Ray
18dff4eb63 Revert "libhardware: Add camera_info typedef"
This reverts commit 71cb21980a.
2013-02-13 17:12:52 -08:00