OSDN Git Service

android-x86/hardware-libhardware.git
11 years agoMerge "Enhance keymaster tests" into jb-mr1-dev
Kenny Root [Mon, 13 Aug 2012 22:09:08 +0000 (15:09 -0700)]
Merge "Enhance keymaster tests" into jb-mr1-dev

11 years agoCamera2: Add ZSL pixel format, AF CANCEL trigger, lots of docs
Eino-Ville Talvala [Fri, 3 Aug 2012 17:56:57 +0000 (10:56 -0700)]
Camera2: Add ZSL pixel format, AF CANCEL trigger, lots of docs

- Add CAMERA2_HAL_PIXEL_FORMAT_ZSL
- Add CAMERA2_TRIGGER_CANCEL_AUTOFOCUS
- Add documentation to describe how AUTOFOCUS and CANCEL_AUTOFOCUS
  triggers interact with AF state, mode, and notifications.
- Other minor edits

Bug: 6243944
Change-Id: I679c40cfe08e62d3a5851839f748fe2292bbfae7

11 years agoEnhance keymaster tests
Kenny Root [Thu, 9 Aug 2012 00:04:40 +0000 (17:04 -0700)]
Enhance keymaster tests

Check the key values of successful attempts.

For imported keys, the key values should match the
input values when they're returned.

For generated keys, the modulus size should be correct and the public
exponent should be correct.

Bug: 6736252
Bug: http://code.google.com/p/android/issues/detail?id=34212
Change-Id: I37ed97d36ebfbe4301b43426129928bcb53c39f8

11 years agoMerge "Simplify prepare and set semantics (comments only)" into jb-mr1-dev
Jamie Gennis [Tue, 7 Aug 2012 23:20:07 +0000 (16:20 -0700)]
Merge "Simplify prepare and set semantics (comments only)" into jb-mr1-dev

11 years agoSimplify prepare and set semantics (comments only)
Jesse Hall [Tue, 31 Jul 2012 22:18:32 +0000 (15:18 -0700)]
Simplify prepare and set semantics (comments only)

Documentation updated for semantic changes vs. HWC 0.x:

* Prepare won't be called with NULL pointers. This used to be used to
  disable hardware composition, though that wasn't documented. Now
  we'll call prepare with non-NULL pointers but the layer list will
  have zero layers.

* Set won't be called with NULL pointers. This used to cause the
  display to turn off; that is now done by calling the blank() method,
  which is no longer optional.

Change-Id: I9c69dc34f64e499a5ba5f8729836e7c216f8c733

11 years agoExtend the audio HAL interface to support get/set master mute
John Grossman [Tue, 17 Jul 2012 18:54:04 +0000 (11:54 -0700)]
Extend the audio HAL interface to support get/set master mute

(cherry picked from commit d245968b7ef0be5c776c9aefff3eca9e293d1b35)

> Extend the audio HAL interface to support get/set master mute
>
> Hand merge from ics-aah
>
> > Extend the audio HAL interface to support get/set master mute: DO NOT MERGE
> >
> > Extend the audio HAL interface to allow HALs to optionally support HW
> > level master mute.  This follows the same pattern as master volume and
> > is part of the fix for bug 6828363.  Because of the divergences
> > between ICS and master, this change will need to be merged by hand.
> >
> > Signed-off-by: John Grossman <johngro@google.com>
> > Change-Id: Ica6f5e37e13d13dde60463966f41f271ffa104fd
>
> Change-Id: I5e7aea6d7da0012dcc077281f9077fc04cfb9889
> Signed-off-by: John Grossman <johngro@google.com>

Change-Id: I2011cc5bc41ca7081ce255a4bfba65f36f899bc4
Signed-off-by: John Grossman <johngro@google.com>
11 years agoAdd multi-display and flip fence to HWC
Jesse Hall [Tue, 31 Jul 2012 21:29:00 +0000 (14:29 -0700)]
Add multi-display and flip fence to HWC

Change-Id: I3b0446050648e2b386ffb32976c9943b6fd9793d

12 years agoCamera2: Test logging changes
Eino-Ville Talvala [Mon, 30 Jul 2012 17:12:40 +0000 (10:12 -0700)]
Camera2: Test logging changes

Change-Id: Idcde83d46da438726c5186cbcf8109a22aef997f

12 years agoRevert "Add multi-display and flip fence to HWC"
Jesse Hall [Tue, 31 Jul 2012 19:16:24 +0000 (12:16 -0700)]
Revert "Add multi-display and flip fence to HWC"

This reverts commit 1d51b2b9fc713da6de18117bc19508ecdfde4f23

Change-Id: I1ae46d8cae1cb3064800cd24df56347b05eb6059

12 years agoAdd multi-display and flip fence to HWC
Jesse Hall [Wed, 25 Jul 2012 22:11:41 +0000 (15:11 -0700)]
Add multi-display and flip fence to HWC

Change-Id: I31b4fc293220bc51169971df93347dd35fdc30ef

12 years agoMerge remote-tracking branch 'goog/jb-dev-mako' into jb-mr1-dev
Ed Heyl [Thu, 26 Jul 2012 20:47:35 +0000 (13:47 -0700)]
Merge remote-tracking branch 'goog/jb-dev-mako' into jb-mr1-dev

12 years agoMerge "Add comment"
Glenn Kasten [Wed, 25 Jul 2012 22:46:13 +0000 (15:46 -0700)]
Merge "Add comment"

12 years agoAdd comment
Glenn Kasten [Fri, 22 Jun 2012 20:35:54 +0000 (13:35 -0700)]
Add comment

Change-Id: Idc2890ebc10c0e6a116bc7c8872cd379e1cf3e25

12 years agostruct effect_descriptor_s const correctness
Glenn Kasten [Mon, 20 Feb 2012 20:08:57 +0000 (12:08 -0800)]
struct effect_descriptor_s const correctness

Also struct audio_stream in audio_stream_frame_size

Change-Id: Ie0de708e38a1850c186a8b4eb5f491adc44b3275

12 years agoam afc55fd4: (-s ours) Extend the audio HAL interface to support get/set master mute...
John Grossman [Thu, 19 Jul 2012 07:39:16 +0000 (00:39 -0700)]
am afc55fd4: (-s ours) Extend the audio HAL interface to support get/set master mute: DO NOT MERGE

* commit 'afc55fd404d7d86f0affc9080ccb42aad8745d3a':
  Extend the audio HAL interface to support get/set master mute: DO NOT MERGE

12 years agoExtend the audio HAL interface to support get/set master mute: DO NOT MERGE
John Grossman [Tue, 17 Jul 2012 18:54:04 +0000 (11:54 -0700)]
Extend the audio HAL interface to support get/set master mute: DO NOT MERGE

Extend the audio HAL interface to allow HALs to optionally support HW
level master mute.  This follows the same pattern as master volume and
is part of the fix for bug 6828363.  Because of the divergences
between ICS and master, this change will need to be merged by hand.

Signed-off-by: John Grossman <johngro@google.com>
Change-Id: Ica6f5e37e13d13dde60463966f41f271ffa104fd

12 years agoMerge "Add camera gralloc usage flags."
Eino-Ville Talvala [Tue, 17 Jul 2012 21:11:14 +0000 (14:11 -0700)]
Merge "Add camera gralloc usage flags."

12 years agoMerge changes I9622e8a0,I7b942e10,I3abd86e9,I27656f52,I662c7595,Ida4ef37e,Ic501281b...
Matthew Xie [Tue, 17 Jul 2012 04:33:30 +0000 (21:33 -0700)]
Merge changes I9622e8a0,I7b942e10,I3abd86e9,I27656f52,I662c7595,Ida4ef37e,Ic501281b,Ic2b1c5c1,I2caace57,Id6fc8f89,Id067423b,Iddd90ccc,I7fe01250,Iad7bf631,Ieaa5b37b,I68ef3117,I017ec2b0

* changes:
  add 0xff to the end of an enum
  Adding authentication failure reason specific status codes to bt_status_t structure
  Add support for CMEE
  Added ACL connected/disconnected events/callbacks to the Bluetooth HAL
  Enabled audio state changed JNI callback in A2DP HAL
  added pan profile
  Added API to get remote services of device
  Added comment for mutli accept listen
  added new btif_hl (HDP profile) module
  Changed the arguements for set report and send data api Signed-off-by: Priti Aghera <paghera@broadcom.com>
  new bt socket interface
  Added dedicated HAL callback notifying framework on audio datapath events
  Added new state BT_BOND_STATE_BONDING.
  Align the service status codes with spec. Add a new state for slc connection notification
  PTS fixes: Re-define the call state values to match CLCC
  Merged the Passkey request callback and the passkey reply APIs into the SSP API and callback respectively
  1.) Dynamic enable/disable of profiles using the respective profile init/cleanup APIs

12 years agoMerge changes Ia96504db,I4c456390,Id04160d4
Matthew Xie [Tue, 17 Jul 2012 04:33:29 +0000 (21:33 -0700)]
Merge changes Ia96504db,I4c456390,Id04160d4

* changes:
  Initial Bluedroid stack commit
  Add typedefs and defines to obfuscate the word hardware.
  Initial commit of Bluetooth Abstraction Layer Hdr.

12 years agoAdd camera gralloc usage flags.
Eino-Ville Talvala [Mon, 16 Jul 2012 21:50:50 +0000 (14:50 -0700)]
Add camera gralloc usage flags.

GRALLOC_USAGE_HW_CAMERA_WRITE is for camera outputs in the new camera HAL.

GRALLOC_USAGE_HW_CAMERA_READ is for sending previously captured camera
data back into the camera pipeline for further processing. For
example, for converting a raw sensor image into YUV or JPEG data.

Bug: 6243944
Change-Id: If9011ec320a1a804f3337704243ed7fc410fec91

12 years agoadd 0xff to the end of an enum
Matthew Xie [Fri, 22 Jun 2012 00:35:06 +0000 (17:35 -0700)]
add 0xff to the end of an enum

Change-Id: I9622e8a06ae075b67c4091874986625d52115261

12 years agoAdding authentication failure reason specific status codes to bt_status_t structure
Ganesh Ganapathi Batta [Fri, 27 Apr 2012 21:04:28 +0000 (14:04 -0700)]
Adding authentication failure reason specific status codes to bt_status_t structure

Change-Id: I7b942e101201ea54e623e91e1e19433b2d7fe1ba

12 years agoAdd support for CMEE
Sreenidhi T [Fri, 27 Apr 2012 14:16:59 +0000 (07:16 -0700)]
Add support for CMEE

Change-Id: I3abd86e937da7607d7ccac5476f0f2e5779967b6

12 years agoAdded ACL connected/disconnected events/callbacks to the Bluetooth HAL
Kausik Sinnaswamy [Wed, 4 Apr 2012 04:59:47 +0000 (10:29 +0530)]
Added ACL connected/disconnected events/callbacks to the Bluetooth HAL

Change-Id: I27656f52b5d7d742cac974805ca56d8a9a104ce8

12 years agoEnabled audio state changed JNI callback in A2DP HAL
Kausik Sinnaswamy [Thu, 19 Apr 2012 18:58:21 +0000 (00:28 +0530)]
Enabled audio state changed JNI callback in A2DP HAL

Change-Id: I662c75953400353923eb20e5faa32407805a8224

12 years agoadded pan profile
zzy [Sun, 15 Apr 2012 00:38:15 +0000 (17:38 -0700)]
added pan profile

12 years agoAdded API to get remote services of device
fredc [Fri, 6 Apr 2012 09:05:46 +0000 (02:05 -0700)]
Added API to get remote services of device

Change-Id: Ic501281b911f53d5c22340a27f67ea8f7415ddf4

12 years agoInitial Bluedroid stack commit
Andre Eisenbach [Wed, 22 Feb 2012 05:36:06 +0000 (21:36 -0800)]
Initial Bluedroid stack commit

Change-Id: Ia96504db5c993fa07bc70a8164d93c1696b25d12

12 years agoAdded comment for mutli accept listen
zzy [Wed, 4 Apr 2012 02:55:23 +0000 (19:55 -0700)]
Added comment for mutli accept listen

12 years agoAdd typedefs and defines to obfuscate the word hardware.
Jaikumar Ganesh [Fri, 3 Feb 2012 18:53:28 +0000 (10:53 -0800)]
Add typedefs and defines to obfuscate the word hardware.

When the stack code is available, the word hardware
will be removed and these typedefs removed.

Hardware is a confusing word because the stack
is hardware indepedent. Its currently in the hardware
directory for convenience. Later on, we might move
the header files to a different location.

Change-Id: I4c456390d6003b7d02184bb6bcb2dd3b01c53485

12 years agoadded new btif_hl (HDP profile) module
Sen-Der Huang [Thu, 22 Mar 2012 22:37:25 +0000 (15:37 -0700)]
added new btif_hl (HDP profile) module

Change-Id: I2caace570e5c8e9c211bf50b803180afb25703fd

12 years agoInitial commit of Bluetooth Abstraction Layer Hdr.
Jaikumar Ganesh [Fri, 17 Feb 2012 00:44:05 +0000 (16:44 -0800)]
Initial commit of Bluetooth Abstraction Layer Hdr.

Change-Id: Id04160d47a93e6b6ff3beb8c4287302393b62963

12 years agoChanged the arguements for set report and send data api
Priti Aghera [Thu, 22 Mar 2012 18:47:20 +0000 (11:47 -0700)]
Changed the arguements for set report and send data api
Signed-off-by: Priti Aghera <paghera@broadcom.com>
Change-Id: Id6fc8f89bca06b6e996531154d7a5a841aec6d43

12 years agonew bt socket interface
zzy [Tue, 27 Mar 2012 05:08:53 +0000 (22:08 -0700)]
new bt socket interface

12 years agoAdded dedicated HAL callback notifying framework on audio datapath
Mattias Agren [Mon, 26 Mar 2012 15:26:24 +0000 (08:26 -0700)]
Added dedicated HAL callback notifying framework on audio datapath
events

Change-Id: Iddd90ccc8e362660dc4468a1a69424d51b33d27c

12 years agoAdded new state BT_BOND_STATE_BONDING.
Ravi Nagarajan [Fri, 9 Mar 2012 03:49:20 +0000 (09:19 +0530)]
Added new state BT_BOND_STATE_BONDING.

Change-Id: I7fe012503e9f666bc045f1b622e0d0d391836613

12 years agoAlign the service status codes with spec. Add a new state for slc connection notification
Ravi Nagarajan [Thu, 8 Mar 2012 21:02:33 +0000 (02:32 +0530)]
Align the service status codes with spec. Add a new state for slc connection notification

Change-Id: Iad7bf6310f0f596df431d094ef39ff0391dcd08f

12 years agoPTS fixes: Re-define the call state values to match CLCC
Ravi Nagarajan [Thu, 8 Mar 2012 18:30:50 +0000 (00:00 +0530)]
PTS fixes: Re-define the call state values to match CLCC

Change-Id: Ieaa5b37ba82771c3072419996354e403cf12a99e

12 years agoMerged the Passkey request callback and the passkey reply APIs into the
Kausik Sinnaswamy [Tue, 6 Mar 2012 20:55:42 +0000 (12:55 -0800)]
Merged the Passkey request callback and the passkey reply APIs into the
SSP API and callback respectively

Change-Id: I68ef31176ad0ca6274a046f511b6c2d6a01e587f

12 years ago1.) Dynamic enable/disable of profiles using the respective profile
Kausik Sinnaswamy [Tue, 6 Mar 2012 13:42:00 +0000 (19:12 +0530)]
1.) Dynamic enable/disable of profiles using the respective profile
init/cleanup APIs

Change-Id: I017ec2b060ec71ee6937e360e5f024b03a9685c8

12 years agohwcomposer: add a new blank operation
Colin Cross [Fri, 13 Jul 2012 00:54:59 +0000 (17:54 -0700)]
hwcomposer: add a new blank operation

Add a new blank operation to be called by surfaceflinger when the screen
turns on or off.  Also rev the API version to 1.1 for the new field.

Change-Id: I266fb33f66184538e34cfc319f63cf809dcb2f18

12 years agohardware: Add field for number of framebuffers supported
Naseer Ahmed [Wed, 4 Jul 2012 04:17:23 +0000 (21:17 -0700)]
hardware: Add field for number of framebuffers supported

Change-Id: Iec29018a956d2c048ce077c48fd3995a4ca6f72a

12 years agoUse audio_channel_mask_t consistently
Glenn Kasten [Tue, 19 Jun 2012 19:16:04 +0000 (12:16 -0700)]
Use audio_channel_mask_t consistently

Change-Id: Ib832c0b707b1e0b82adf4ab3d4d18a2dc459d240

12 years agoUpdate ANativeWindow clients for sync
Jamie Gennis [Wed, 13 Jun 2012 23:36:01 +0000 (16:36 -0700)]
Update ANativeWindow clients for sync

This change updates uses of ANativeWindow to use the new ANW functions that
accept and return Sync HAL fence file descriptors.

Change-Id: I8ea699ba0a9b5c4b4316f9428cbd565976899991

12 years agoIntroduce HWC_DEVICE_API_VERSION_1_0
Jesse Hall [Wed, 6 Jun 2012 06:41:37 +0000 (23:41 -0700)]
Introduce HWC_DEVICE_API_VERSION_1_0

The new version adds an acquire and release fence to each layer,
providing explicit producer->hwc and hwc->producer synchronization.

Change-Id: Ibd6e3c7b3515c012c767246e6d6514274fdef01d

12 years agoMerge "Camera2: Add JPEG capture test."
Eino-Ville Talvala [Thu, 14 Jun 2012 15:38:13 +0000 (08:38 -0700)]
Merge "Camera2: Add JPEG capture test."

12 years agoCamera2: Add JPEG capture test.
Eino-Ville Talvala [Tue, 22 May 2012 17:41:20 +0000 (10:41 -0700)]
Camera2: Add JPEG capture test.

Bug: 6243944
Change-Id: Ifdf16f34b13df1e5bfe501eb7e6083862c71240a

12 years agoam 8405fe5a: am 1fbbb08d: Merge "remove seemed useless gralloc_open() call in fb_devi...
Jean-Baptiste Queru [Tue, 12 Jun 2012 22:18:23 +0000 (15:18 -0700)]
am 8405fe5a: am 1fbbb08d: Merge "remove seemed useless gralloc_open() call in fb_device_open()"

* commit '8405fe5a5203af18f39fd47b35606f0b32cd956c':
  remove seemed useless gralloc_open() call in fb_device_open()

12 years agoam 1fbbb08d: Merge "remove seemed useless gralloc_open() call in fb_device_open()"
Jean-Baptiste Queru [Tue, 12 Jun 2012 22:16:18 +0000 (15:16 -0700)]
am 1fbbb08d: Merge "remove seemed useless gralloc_open() call in fb_device_open()"

* commit '1fbbb08ddda4321ccdb05345658044c1f0235997':
  remove seemed useless gralloc_open() call in fb_device_open()

12 years agoMerge "remove seemed useless gralloc_open() call in fb_device_open()"
Jean-Baptiste Queru [Tue, 12 Jun 2012 20:57:02 +0000 (13:57 -0700)]
Merge "remove seemed useless gralloc_open() call in fb_device_open()"

12 years agoam 8350f364: Reconcile with jb-release
The Android Open Source Project [Mon, 11 Jun 2012 16:25:45 +0000 (09:25 -0700)]
am 8350f364: Reconcile with jb-release

* commit '8350f364f7fad55286c2dcb0e1e985e139646355':
  Add screen state parameter

12 years agoReconcile with jb-release
The Android Open Source Project [Mon, 11 Jun 2012 16:22:36 +0000 (09:22 -0700)]
Reconcile with jb-release

Change-Id: I75e5174aabe8e3fd3c1963045c2db6f7db9fc08d

12 years agoAdd screen state parameter
Glenn Kasten [Fri, 8 Jun 2012 17:49:34 +0000 (10:49 -0700)]
Add screen state parameter

Change-Id: Iead23e0d91dac34d40e9e55f525916b73c31bcb5

12 years agoam 34afb68c: Add screen state parameter
Glenn Kasten [Fri, 8 Jun 2012 17:57:52 +0000 (10:57 -0700)]
am 34afb68c: Add screen state parameter

* commit '34afb68c0cd1de315f0250f6a95b9dba234133ae':
  Add screen state parameter

12 years agoAdd screen state parameter
Glenn Kasten [Fri, 8 Jun 2012 17:49:34 +0000 (10:49 -0700)]
Add screen state parameter

Change-Id: Iead23e0d91dac34d40e9e55f525916b73c31bcb5

12 years agoam 41eeb4fe: audio HAL: add definitions for capabilities query
Eric Laurent [Tue, 5 Jun 2012 16:55:29 +0000 (09:55 -0700)]
am 41eeb4fe: audio HAL: add definitions for capabilities query

* commit '41eeb4fe9f0a043dc207111893dbea26827217a6':
  audio HAL: add definitions for capabilities query

12 years agoaudio HAL: add definitions for capabilities query
Eric Laurent [Fri, 18 May 2012 01:54:49 +0000 (18:54 -0700)]
audio HAL: add definitions for capabilities query

Added definitions for querying supported channel masks, sampling rates and
format with out_get_parameters().

Change-Id: Icb28fcef504c7e0a0b2daeb1bc7e704d20d3b738

12 years agoCamera2: Update test code for metadata changes
Eino-Ville Talvala [Mon, 21 May 2012 00:25:53 +0000 (17:25 -0700)]
Camera2: Update test code for metadata changes

- New resolution handling
- Don't do long exposures in tests

Bug: 6243944
Change-Id: Ia8362a50c8c4a2230d892e571b31e513c67ab84d

12 years agoI am a HAL of constant structure.
Eino-Ville Talvala [Fri, 18 May 2012 00:54:56 +0000 (17:54 -0700)]
I am a HAL of constant structure.

Bug: 6243944
Change-Id: I126313f75f5f7165d3ca96f52054866c4fb6bee0

12 years agoMerge "Camera2: Add test for construct_default_request."
Eino-Ville Talvala [Wed, 16 May 2012 18:55:29 +0000 (11:55 -0700)]
Merge "Camera2: Add test for construct_default_request."

12 years agoMerge "Camera2: Match updated camera_metadata methods."
Eino-Ville Talvala [Wed, 16 May 2012 17:59:13 +0000 (10:59 -0700)]
Merge "Camera2: Match updated camera_metadata methods."

12 years agoam e291f71e: split hwcomposer.h
Mathias Agopian [Tue, 15 May 2012 18:43:04 +0000 (11:43 -0700)]
am e291f71e: split hwcomposer.h

* commit 'e291f71e0a25ac9bb39fb754c599b710ab8f59d5':
  split hwcomposer.h

12 years agoMerge "Substantial cleanup of camera2 HAL, and some initial unit tests"
Eino-Ville Talvala [Tue, 15 May 2012 01:03:27 +0000 (18:03 -0700)]
Merge "Substantial cleanup of camera2 HAL, and some initial unit tests"

12 years agoMerge "Add RAW_SENSOR to gralloc sample"
Eino-Ville Talvala [Mon, 14 May 2012 22:57:29 +0000 (15:57 -0700)]
Merge "Add RAW_SENSOR to gralloc sample"

12 years agoCamera2: Add test for construct_default_request.
Eino-Ville Talvala [Mon, 14 May 2012 22:25:27 +0000 (15:25 -0700)]
Camera2: Add test for construct_default_request.

Bug: 6243944
Change-Id: I59b03d7ebece2a4b7672b265bd9f960b3faea621

12 years agoCamera2: Match updated camera_metadata methods.
Eino-Ville Talvala [Fri, 11 May 2012 23:18:42 +0000 (16:18 -0700)]
Camera2: Match updated camera_metadata methods.

Bug: 6243944

Change-Id: Ib691ef513b4811ca1290f0a9a4e3c1ce1e3f0945

12 years agosplit hwcomposer.h
Mathias Agopian [Mon, 14 May 2012 05:49:06 +0000 (22:49 -0700)]
split hwcomposer.h

hwcomposer_defs.h now contains enums, which are essentially names.
This won't change when we rev the h/w composer API (new ones will be added instead).

we do this to avoid having to abstract all these constants in higher
level APIs; instead hwcomposer_defs.h can be included without exposing
the hwcomposer's data structures (which are a lot more fragile wrt.
backward compatibility)

Change-Id: Ifb514f64de02a599fdd2d31c188327209ccb0ffc

12 years agoam a3e36414: remove triggering suspend from power hal
Colin Cross [Wed, 9 May 2012 08:54:29 +0000 (01:54 -0700)]
am a3e36414: remove triggering suspend from power hal

* commit 'a3e364144cc258bbe94e7eb0a216e317a9e7e38d':
  remove triggering suspend from power hal

12 years agoSubstantial cleanup of camera2 HAL, and some initial unit tests
Eino-Ville Talvala [Mon, 23 Apr 2012 16:29:38 +0000 (09:29 -0700)]
Substantial cleanup of camera2 HAL, and some initial unit tests

- Clean up const/struct usage in HAL
- Add user pointer to notify callback
- Revamp allocate_stream, now it picks its own ID.
- Much simpler stream interface
- Merged request/reprocess input queues
- Frame queue interface no longer a mirror of request queue
- Added triggers/notifications
- Added default request creation
- Lots of comments

Unit tests added:

- Lots of utility code to speed up test writing
- Basic open/close
- Capturing 1 raw buffer (request input, frame output, buffer output)
- Capturing a burst of 10 raw buffers

Bug: 6243944
Change-Id: I490bd5df81079a44c43d87b02c9a7f7ca251f531

12 years agoAdd RAW_SENSOR to gralloc sample
Eino-Ville Talvala [Fri, 13 Apr 2012 17:08:47 +0000 (10:08 -0700)]
Add RAW_SENSOR to gralloc sample

Change-Id: I0621bd70896385c3d522d283a1be714f5f29df3b

12 years agoremove triggering suspend from power hal
Colin Cross [Fri, 4 May 2012 00:31:41 +0000 (17:31 -0700)]
remove triggering suspend from power hal

PowerManagerService will trigger suspend after calling into the
power hal, remove it from here.

Change-Id: I98cc096413bd5c9e39a28b2bfc376d3d30544193

12 years agoam bcdb4cd3: hardware: Power HAL: Add POWER_HINT_INTERACTION
Todd Poynor [Fri, 4 May 2012 01:53:26 +0000 (18:53 -0700)]
am bcdb4cd3: hardware: Power HAL: Add POWER_HINT_INTERACTION

* commit 'bcdb4cd34b9c2a4a3ccebf0048137892e5586fe8':
  hardware: Power HAL: Add POWER_HINT_INTERACTION

12 years agohardware: Power HAL: Add POWER_HINT_INTERACTION
Todd Poynor [Thu, 3 May 2012 21:49:02 +0000 (14:49 -0700)]
hardware: Power HAL: Add POWER_HINT_INTERACTION

Change-Id: I9b2c29eadc60e2bea2f01b3925ad6a8539ec2655

12 years agoam 6b7adef0: hwcomposer: clarify vsync timestamp meaning
Jamie Gennis [Mon, 30 Apr 2012 20:49:10 +0000 (13:49 -0700)]
am 6b7adef0: hwcomposer: clarify vsync timestamp meaning

* commit '6b7adef0ef38f568099eab38d6865f402c92235b':
  hwcomposer: clarify vsync timestamp meaning

12 years agohwcomposer: clarify vsync timestamp meaning
Jamie Gennis [Mon, 30 Apr 2012 19:57:11 +0000 (12:57 -0700)]
hwcomposer: clarify vsync timestamp meaning

This change clarifies the meaning of the HWC vsync timestamp to specify that
the timestamp must be relative to the system monotonic clock.

Change-Id: I4386ce90511fd5b8f8e988917da637d84d86f026

12 years agoam 5cb1de89: add version number to power HAL
Mathias Agopian [Fri, 27 Apr 2012 02:56:05 +0000 (19:56 -0700)]
am 5cb1de89: add version number to power HAL

* commit '5cb1de89a905dd13c858779d73721bbc36cd4be1':
  add version number to power HAL

12 years agoadd version number to power HAL
Mathias Agopian [Fri, 27 Apr 2012 02:49:40 +0000 (19:49 -0700)]
add version number to power HAL

Change-Id: I6acf4523b5878565035ea6c85bddd58f9b20ef1b

12 years agoam 2f143fba: (-s ours) hardware: libhardware: Power HAL add power hints -- DO NOT...
Todd Poynor [Thu, 26 Apr 2012 04:41:22 +0000 (21:41 -0700)]
am 2f143fba: (-s ours) hardware: libhardware: Power HAL add power hints -- DO NOT MERGE

* commit '2f143fba74f6be91fe8805ef8bbdffe5b8ece8b4':
  hardware: libhardware: Power HAL add power hints -- DO NOT MERGE

12 years agohardware: libhardware: Power HAL add power hints -- DO NOT MERGE
Todd Poynor [Tue, 24 Apr 2012 20:39:15 +0000 (13:39 -0700)]
hardware: libhardware: Power HAL add power hints -- DO NOT MERGE

Change-Id: I8ab0376e4f5d8ef09d5b1062cbfbb30c30c5bb96
Signed-off-by: Todd Poynor <toddpoynor@google.com>
12 years agohardware: libhardware: Power HAL add power hints
Todd Poynor [Tue, 24 Apr 2012 20:39:15 +0000 (13:39 -0700)]
hardware: libhardware: Power HAL add power hints

Change-Id: I8ab0376e4f5d8ef09d5b1062cbfbb30c30c5bb96
Signed-off-by: Todd Poynor <toddpoynor@google.com>
12 years agoMerge "Update USB audio HAL to use API"
Mike Lockwood [Tue, 24 Apr 2012 23:51:00 +0000 (16:51 -0700)]
Merge "Update USB audio HAL to use API"

12 years agoUpdate USB audio HAL to use API
Mike Lockwood [Tue, 24 Apr 2012 23:41:18 +0000 (16:41 -0700)]
Update USB audio HAL to use API

Also don't clear card and device when out_set_parameters is called
to set other parameters.

Change-Id: I4feda9f6a2e76cb45bbc8a8f8256bb1760302707
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agofix typo in documentation
Mathias Agopian [Tue, 24 Apr 2012 22:42:37 +0000 (15:42 -0700)]
fix typo in documentation

Change-Id: I2c55034c25edd466180cd9c5718c2ad568aeedff

12 years agorename audio policy output flags.
Eric Laurent [Wed, 18 Apr 2012 20:58:44 +0000 (13:58 -0700)]
rename audio policy output flags.

Change-Id: I965fa9bcba45f223f2f2cbc4adccfb5491414c8b

12 years agoaudio: updated audio HAL device API
Eric Laurent [Tue, 10 Apr 2012 23:56:32 +0000 (16:56 -0700)]
audio: updated audio HAL device API

Modified open output and input stream functions to add new
parameters needed by audio HAL. Also grouped parameters
in a config structure for clarity.

Change-Id: I60832d8e5b5e4a48f209a6d83f5ca9c044be61f1

12 years agoMerge "Revise camera HAL 2, and add unit test skeleton."
Eino-Ville Talvala [Tue, 17 Apr 2012 15:57:44 +0000 (08:57 -0700)]
Merge "Revise camera HAL 2, and add unit test skeleton."

12 years agousbaudio: add initial usbaudio default HAL
Simon Wilson [Fri, 6 Apr 2012 23:17:12 +0000 (16:17 -0700)]
usbaudio: add initial usbaudio default HAL

Change-Id: I6e93b2512883f3697683a74cadb9a29113966bc0

12 years agoRevise camera HAL 2, and add unit test skeleton.
Eino-Ville Talvala [Thu, 22 Mar 2012 20:11:05 +0000 (13:11 -0700)]
Revise camera HAL 2, and add unit test skeleton.

- Add missing method in stream_ops (set_buffers_geometry)

- Remove extra method in stream_ops (set_swap_interval)

- Document metadata queue protocol

- Change metadata queue methods to be set/get through function calls
  only, instead of a struct member in the HAL device ops.

- Change vendor extension tag query methods to be retrieved by a get
  call, instead of a struct member in the HAL device ops.

- Add basic gtest unit test skeleton, which currently just returns
  static info from all camera devices.

Change-Id: I94117097b0243023ad60638070cc7f0cefec18e6

12 years agoimprove hwc VSYNC documentation
Mathias Agopian [Wed, 11 Apr 2012 04:22:28 +0000 (21:22 -0700)]
improve hwc VSYNC documentation

Change-Id: I5820d8fa183701ebbc0a825cf27bd0004b47d62e

12 years agoaudio policy: load audio hw modules.
Eric Laurent [Wed, 28 Mar 2012 18:10:51 +0000 (11:10 -0700)]
audio policy: load audio hw modules.

Added methods to audio_policy_service_ops to load an audio hw module.

Added methods to open an output or input stream on a particualr module.

Change-Id: Ia0618053bec9978c1b7d2a5f6c02b78209557256

12 years agoMerge "add support for VSYNC events in h/w composer HAL"
Mathias Agopian [Wed, 4 Apr 2012 02:10:25 +0000 (19:10 -0700)]
Merge "add support for VSYNC events in h/w composer HAL"

12 years agoMerge "audio: added definitions for audio HAL modules"
Eric Laurent [Tue, 3 Apr 2012 23:46:46 +0000 (16:46 -0700)]
Merge "audio: added definitions for audio HAL modules"

12 years agoaudio: added definitions for audio HAL modules
Eric Laurent [Tue, 3 Apr 2012 19:07:02 +0000 (12:07 -0700)]
audio: added definitions for audio HAL modules

Change-Id: I16f8b42ab5de503d38086413b83e934ac9aa1f24

12 years agoadd support for VSYNC events in h/w composer HAL
Mathias Agopian [Sat, 24 Mar 2012 22:56:29 +0000 (15:56 -0700)]
add support for VSYNC events in h/w composer HAL

Change-Id: Ic19a41ae522a236f45957e50c792934d987b116a

12 years agoUpdate comments
Glenn Kasten [Fri, 10 Feb 2012 21:42:44 +0000 (13:42 -0800)]
Update comments

Change-Id: I123d9baeceda13608cc01eda6a19e13822258dc0

12 years agoMerge "hardware: add some guidance on providing version defines"
Dima Zavin [Fri, 30 Mar 2012 18:58:04 +0000 (11:58 -0700)]
Merge "hardware: add some guidance on providing version defines"

12 years agoMerge "Add specific version number constants to Camera HAL."
Eino-Ville Talvala [Tue, 27 Mar 2012 23:50:18 +0000 (16:50 -0700)]
Merge "Add specific version number constants to Camera HAL."

12 years agoAdd specific version number constants to Camera HAL.
Eino-Ville Talvala [Tue, 27 Mar 2012 23:15:25 +0000 (16:15 -0700)]
Add specific version number constants to Camera HAL.

These constants should be used by HAL implementations to indicate
which versions of the module and device APIs they support.

Change-Id: I4b6eae278481545694e6a1827833b5958c26720c

12 years agohardware: add some guidance on providing version defines
Dima Zavin [Tue, 27 Mar 2012 06:14:15 +0000 (23:14 -0700)]
hardware: add some guidance on providing version defines

Change-Id: I456cb209bc5d5eb739b6fd2e2f3e869caa363ff0
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoMerge "Fixed an incorrect path for the include header file in a comment"
James Dong [Tue, 27 Mar 2012 00:47:50 +0000 (17:47 -0700)]
Merge "Fixed an incorrect path for the include header file in a comment"