Commit graph

944 commits

Author SHA1 Message Date
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
Etienne Le Grand
52feb4b114 Merge "Sensor HAL updates" into jb-mr2-dev 2013-04-05 04:05:39 +00:00
Jesse Hall
aea9926cc9 Merge "Log when creating a second buffer mapping in a process" into jb-mr2-dev 2013-04-04 22:36:36 +00: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
d44e4a94de Merge "Gps geofence." into jb-mr2-dev 2013-03-29 18:58:44 +00:00
Jaikumar Ganesh
3e39c4906d Gps geofence.
Make the add / remove / pause / resume asynchronous.

Change-Id: I6d6d254613623b564f1cb6a59742fe000e47ac1e
2013-03-29 11:56:36 -07:00
Jesse Hall
0d8f81a984 Log when creating a second buffer mapping in a process
Bug: 8468756
Change-Id: Ia883f459ea9e2648ca4a0b5a6f09ded4f46f13b3
2013-03-28 16:51:25 -07:00
Jesse Hall
86b03c2f65 Merge "Remove pid check in register/unregister" into jb-mr2-dev 2013-03-28 21:24:56 +00:00
Jesse Hall
c71b6caece Remove pid check in register/unregister
The register/unregister gralloc calls were avoiding
mmapping/munmapping the shared memory region if the buffer was created
by the current process. This is left over from the pmem-based
implementation, where trying to map the same region twice in the same
process would fail, or would reuse a single mapping without
refcounting.

This causes problems if a buffer is
- allocated in process A,
- transferred from A to process B and registered there
- unregistered/freed in A
- transferred back from B to A and re-registered

Process A then has a new handle to the buffer, but since it originally
created the buffer it will not be mmapped, so trying to read or write
the buffer will crash.

With ashmem, mmaping a region twice in the same process creates two
distinct mappings which can be used and munmapped independently. So
we no longer need to avoid mmapping again in the allocating process.

Bug: 8468756
Change-Id: I167bec5ca07e5534c5e2115630fe8386e481388e
2013-03-28 11:21:25 -07:00
Igor Murashkin
fb40d5de36 camera2_test: Allow for HAL2 version >= 2.0 (i.e. 2.1, 3.0, etc)
Change-Id: If9004d2a6d5fc581b8f63814f2f115bcd7fa5a34
2013-03-26 18:07:31 -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
Jean-Baptiste Queru
0e9d232b67 am 1d0c7e05: am 6e5236ee: am 5c8f84a1: am 3a18bccc: (-s ours) am 431cd416: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '1d0c7e05d80ab18c1a859782313448dc6a31bab9':
2013-03-11 12:41:19 -07:00
Jean-Baptiste Queru
1d0c7e05d8 am 6e5236ee: am 5c8f84a1: am 3a18bccc: (-s ours) am 431cd416: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '6e5236ee082070242f6e5e6e0fe0d1892368880e':
2013-03-11 12:34:30 -07:00
Jean-Baptiste Queru
6e5236ee08 am 5c8f84a1: am 3a18bccc: (-s ours) am 431cd416: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '5c8f84a15fba998baf9703c81e86a25048ce368a':
2013-03-11 12:32:00 -07:00
Jean-Baptiste Queru
5c8f84a15f am 3a18bccc: (-s ours) am 431cd416: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '3a18bcccb201b37e5b0cdff76febafb214cb8b90':
2013-03-11 12:28:32 -07:00
Jean-Baptiste Queru
3a18bcccb2 am 431cd416: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '431cd41604208d7c30788d6e3c6655a34fd3e157':
2013-03-11 12:23:00 -07:00
Jean-Baptiste Queru
431cd41604 Reconcile with jb-mr1-release - do not merge 2013-03-11 12:20:12 -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
Alex Ray
1f8af678c9 modules: camera: make Camera object id const
Change-Id: Ic36fa7c6193086aa6415647ff8fe59cc358dd99f
2013-02-28 15:41:55 -08:00
Ganesh Ganapathi Batta
fefb334390 Initial version of BLE support for Bluedroid
Change-Id: Iacf3a56943b31c4fd4f4b833ed675a35cbd47104
2013-02-27 18:14:00 -08:00
Alex Ray
a0ed4bead4 modules: camera: Camera v3 Devices
Default camera HAL statically allocates camera devices. Update camera
device to API v3.

Change-Id: Ic53ffcf3b746b9b4011b932e26dbb0f533cba554
2013-02-27 00:02:37 -08:00
Alex Ray
819cfd87ba modules: camera: Update to v2.1 camera module API
Refactor the camera module into a single CameraHAL object.  Adds
set_callbacks, new in the v2.1 module API.

Change-Id: I4da677c28d7425f545f68998844fcfa4caf0feb9
2013-02-26 15:26:26 -08:00
Alex Ray
bb13a3231d modules: camera: Hide HAL symbols DO NOT MERGE
Explicitly hide all symbols from being exported from the camera HAL
except the symbol required to load the module.

Change-Id: I940b24b8d3895f46e63df3c28e43b8cb012bd637
2013-02-26 15:08:45 -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
Igor Murashkin
debde75355 Merge "Tests: Camera: Refactor CameraMetadata into frameworks/av" 2013-02-22 19:29:10 +00:00
Igor Murashkin
8379998878 Merge "Tests: Camera2: Add Y8/Y16 to Stream create/delete tests" 2013-02-22 19:29:01 +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
Igor Murashkin
7ed10fbdc8 Tests: Camera: Refactor CameraMetadata into frameworks/av
Change-Id: Ibc2917a18163f07b5e37eb83abb3d1ef919a5766
2013-02-21 17:11:32 -08:00
Igor Murashkin
7a7f357509 Tests: Camera2: Add Y8/Y16 to Stream create/delete tests
Change-Id: I7e066569edcab84c0d61fe7a4ae5c3e2683f63eb
2013-02-21 17:11:27 -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