Commit graph

993 commits

Author SHA1 Message Date
Chien-Yu Chen
126867ea94 camera_common: add TORCH_MODE_STATUS_OFF
Add TORCH_MODE_STATUS_OFF for the case when HAL has to turn off the
torch mode that was turned on by a previous set_torch_mode() call
in order to turn on the torch mode for the current set_torch_mode()
call.

Bug: 2682206
Change-Id: Ia2f717ffaca8c4346ec5fcdf73895160f700f067
2015-03-17 20:02:22 -07:00
Ruben Brunk
bd2929c03c camera HAL: Update camera_info with simultaneous access information.
- Add necessary metadata to the camera_info structure to allow
  the camera service to determine which devices can be safely
  opened and used simultaneously without attempting to open
  camera devices.

Change-Id: I4250b4c7e1296ebf4cab07355d6d3be01f17ba1e
2015-03-17 20:02:12 -07:00
Zhijun He
b3d428da7c camera: update HAL module API for external camera
Update camera module API 2.4 for usb camera support.

Change-Id: Id8329e31ad0622bdc06c60e87e97c742a9719b3b
2015-03-17 20:02:03 -07:00
Chien-Yu Chen
a5222582d5 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
2015-03-17 20:01:54 -07:00
Yin-Chia Yeh
5407ef1ec2 Camera: Fix tests per camera service interface change
Also clarify rotation field has no meaning and will always be 0
for a input stream.

Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
2015-03-16 13:11:11 -07:00
Eric Laurent
4c04a8ce89 Merge "initial radio HAL definition" 2015-03-16 18:17:07 +00:00
Shawn Willden
240790d286 am fb69cf20: am 37467e5b: Merge "Add keymaster_key_param_compare function."
* commit 'fb69cf209e1207d10ce27d46e6718acffdbfc583':
  Add keymaster_key_param_compare function.
2015-03-13 06:32:51 +00:00
Yin-Chia Yeh
e004208025 Camera3: Add rotation field to camera3_stream_t
This allows application or framework request HAL to perform a
rotation of 0, 90, 180 or 270 degrees counterclockwise. Currently
there is no plan to support arbitrary rotation angles.
HAL should return -EINVAL if the requested rotation cannot be
supported.

Change-Id: I8bde2bcfd797c408db4d5b391b170a4e856ec2d0
2015-03-12 13:34:42 -07:00
Shawn Willden
ed94111cce Add error codes.
Change-Id: I78cac1887fd41dd426e7d125a5f9c54e73188983
2015-03-11 21:54:26 -06:00
Shawn Willden
37467e5b52 Merge "Add keymaster_key_param_compare function." 2015-03-12 00:39:25 +00:00
Ruben Brunk
8e4b0cfac8 Merge "camera2: Update HAL docs on eviction behavior." 2015-03-12 00:21:34 +00:00
Ruben Brunk
1fa09029a9 camera2: Update HAL docs on eviction behavior.
Bug: 19186859
Change-Id: Ie051f966a758c68d354250c245a87df57a4f4ae3
2015-03-11 14:52:07 -07:00
Eric Laurent
0b763096a4 initial radio HAL definition
Added defintions for radio broadcast receiver HAL

Change-Id: Icd90e2b7b205af22b62eb957dff3cf6afc08294d
2015-03-10 18:29:57 -07:00
Eino-Ville Talvala
283a6f1848 Merge "Camera3: Add dataspace to camera HAL device stream configuration" 2015-03-09 23:29:07 +00:00
Eino-Ville Talvala
453c790395 Camera3: Add dataspace to camera HAL device stream configuration
The dataspace field communicates extra context about the requested
stream configuration. For most graphics formats, the dataspace
indicates the desired colorspace out of the output buffers.  For some
formats, the dataspace may indicate that depth output is requested
instead.

Change-Id: I6746d9097b4dc36af0a63ca88df75f32a77db90b
2015-03-09 12:54:15 -07:00
Andres Morales
ee84ee01be Merge "Change payload size to size_t and add uid param" 2015-03-09 18:12:14 +00:00
Andres Morales
e956a29fb9 Change payload size to size_t and add uid param
Buffers will likely be bigger than 255!

Change-Id: I8cc1ac1c656493a94e5a41ce6ee948af159f18f6
2015-03-09 10:09:00 -07:00
Shawn Willden
67411d6f51 Add keymaster_key_param_compare function.
This provides a reasonable ordering for params.

Change-Id: I1e3b403070d9e7621cc55c03ff9876ea3bbc699f
2015-03-04 10:04:35 -07:00
Chien-Yu Chen
8558510d59 camera_common: change torch status callback API
Update the torch status callback API so that HAL must invoke
the torch status callback whenever the torch status changes
including changes by set_torch_mode().

The problem of the previous approach was camera service needed
to invoke the callback after calling set_torch_mode() and two
sources of the torch status changes (HAL and camera service)
caused a race condition.

Add STATUS_ON and remove STATUS_AVAILABLE which isn't useful
because STATUS_OFF means torch is off and available. STATUS_ON
means torch is on and available.

Bug: 2682206
Change-Id: Ide5d289c5f485404a3ba46e6cb359fa8a52da0bb
2015-02-27 15:13:00 -08:00
Shawn Willden
e05ffdbb30 am 17dde875: Merge "Separate keymaster0 and keymaster1 HALs."
* commit '17dde875dda1b96722e6fb07850c268ca716c3d1':
  Separate keymaster0 and keymaster1 HALs.
2015-02-26 23:31:14 +00:00
Shawn Willden
302d252f2c Separate keymaster0 and keymaster1 HALs.
For now the keymaster1 HAL still includes all of the keymaster0 entry
points, and soft_keymaster_device will continue to implement them.  In
the near future the keymaster0 entry points will be removed, as soon as
we can ensure that keystore no longer needs them.

Change-Id: I5c54282c12d1c4b8b22ed4929b6e6c724a94ede4
2015-02-25 23:08:39 -07:00
Dan Stoza
811445a3f3 HWC 1.5: Add per-layer damage region
This adds an array of rects to hwc_layer_1_t that define which
portions of that layer's source buffer have been modified. If there
are a non-zero number of rects, then any portion of the source buffer
not touched by one of the rects may safely be assumed to not have
been modified. If no rects are defined, then the whole source buffer
must be assumed to have been modified.

Change-Id: Id5efafee74602ed7d76609180e334ed203c23f7e
2015-02-25 13:42:18 -08:00
Shawn Willden
fd4b4d5a9b Separate keymaster0 and keymaster1 HALs.
For now the keymaster1 HAL still includes all of the keymaster0 entry
points, and soft_keymaster_device will continue to implement them.  In
the near future the keymaster0 entry points will be removed, as soon as
we can ensure that keystore no longer needs them.

Change-Id: I5c54282c12d1c4b8b22ed4929b6e6c724a94ede4
2015-02-24 14:58:17 -07:00
Alex Klyubin
c07f425c65 am 8840a683: am 587d8313: am 4f5949b5: Merge "Clarify the meaning of KM_TAG_MAC_LENGTH."
* commit '8840a6833a4be28dddef0a3a318f0145b3f615cd':
  Clarify the meaning of KM_TAG_MAC_LENGTH.
2015-02-24 05:23:17 +00:00
Alex Klyubin
587d8313d6 am 4f5949b5: Merge "Clarify the meaning of KM_TAG_MAC_LENGTH."
* commit '4f5949b5dda4a2e95d29e1aa3effb22c678df21a':
  Clarify the meaning of KM_TAG_MAC_LENGTH.
2015-02-24 00:49:44 +00:00
Michael Wright
289c26e9b1 Merge "Add input HAL header." 2015-02-23 19:35:11 +00:00
Michael Wright
5113aff7e2 Add input HAL header.
Change-Id: Ia959dd1d1adf024459d2423fc9d59a811466e53c
2015-02-23 10:45:55 -08:00
Alex Klyubin
340d0b12c5 Clarify the meaning of KM_TAG_MAC_LENGTH.
Change-Id: I18478923059783e955613142a8d3352f98f5d7b0
2015-02-20 16:42:23 -08:00
Bill Yi
fb9ad66afd Merge commit 'd7cc04b275ea6d1cec863159327281b0ffbc8120' into HEAD 2015-02-19 14:31:52 -08:00
Chien-Yu Chen
e04043d8f1 Merge "camera_common: add -EUSERS to set_torch_mode" 2015-02-19 21:01:11 +00:00
Shawn Willden
301ef55a44 am 66b7b389: am 0e5fca1c: Merge changes Id4bdfdcb,Ib94f3606
* commit '66b7b3899fdc76add9e728cebcde146b386210e0':
  Added insecure (chunkless) AEAD option.
  Add additional param lists to update and finish.
2015-02-18 16:05:11 +00:00
Shawn Willden
66b7b3899f am 0e5fca1c: Merge changes Id4bdfdcb,Ib94f3606
* commit '0e5fca1ca4777f5f5d5fa8bd0de139e42077881b':
  Added insecure (chunkless) AEAD option.
  Add additional param lists to update and finish.
2015-02-18 15:59:37 +00:00
Shawn Willden
0e5fca1ca4 Merge changes Id4bdfdcb,Ib94f3606
* changes:
  Added insecure (chunkless) AEAD option.
  Add additional param lists to update and finish.
2015-02-18 15:48:03 +00:00
Shawn Willden
892ae44c5f Merge "Rename KM_TAG_ADDITIONAL_DATA to KM_TAG_ASSOCIATED_DATA" 2015-02-18 05:50:07 +00:00
Shawn Willden
871500013a Merge "Rename KM_TAG_ADDITIONAL_DATA to KM_TAG_ASSOCIATED_DATA" into lmp-mr1-dev-plus-aosp 2015-02-18 02:22:48 +00:00
Shawn Willden
afd2ec9629 Rename KM_TAG_ADDITIONAL_DATA to KM_TAG_ASSOCIATED_DATA
Change-Id: Ieddd706ee205100719f7e2f9e18b3d9b07c37669
2015-02-17 19:18:46 -07:00
Shawn Willden
ade0dc3c5d Merge "Rename KM_TAG_ADDITIONAL_DATA to KM_TAG_ASSOCIATED_DATA" 2015-02-18 01:46:30 +00:00
Shawn Willden
a7c77a7ef8 Rename KM_TAG_ADDITIONAL_DATA to KM_TAG_ASSOCIATED_DATA
Change-Id: Ieddd706ee205100719f7e2f9e18b3d9b07c37669
2015-02-17 18:41:21 -07:00
Sasha Levitskiy
3b7402ef30 hardware: libhardware: introduce new fingerprint HAL 2.0 features.
Change-Id: I4ab0a511417742a4b0b912ebf98a3773ec22bb10
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-02-17 15:57:35 -08:00
Shawn Willden
5d4ee176fb am d7cc04b2: am 6bdaf827: Merge "Add explicit values to keymaster_key_format_t"
* commit 'd7cc04b275ea6d1cec863159327281b0ffbc8120':
  Add explicit values to keymaster_key_format_t
2015-02-14 01:04:48 +00:00
Shawn Willden
d7cc04b275 am 6bdaf827: Merge "Add explicit values to keymaster_key_format_t"
* commit '6bdaf827ef59975efbf73b2d5b4228fb61c36123':
  Add explicit values to keymaster_key_format_t
2015-02-14 00:53:14 +00:00
Chad Brubaker
f883b988e7 Add explicit values to keymaster_key_format_t
Change-Id: I4113286396b16ca687fbd8bc38b2f16063fc1024
2015-02-13 13:58:36 -08:00
Chien-Yu Chen
273def398c camera_common: add -EUSERS to set_torch_mode
To match the public API, seperate camera device in use and other
resources in use errors.

Bug: 2682206
Change-Id: Ie0451931f0c84fc65f3f6294a9f44bec10627afe
2015-02-12 17:52:27 -08:00
Nick Vaccaro
8c0e65b45d am 4c2059d8: am adbfbb74: Add new SENSOR_TYPE_WRIST_TILT_GESTURE sensor type
* commit '4c2059d8fbefad3d3f3c37079819ea8205809b17':
  Add new SENSOR_TYPE_WRIST_TILT_GESTURE sensor type
2015-02-11 02:55:24 +00:00
Nick Vaccaro
4c2059d8fb am adbfbb74: Add new SENSOR_TYPE_WRIST_TILT_GESTURE sensor type
* commit 'adbfbb747de9fe1efc21fc83f6591e7d13c81c36':
  Add new SENSOR_TYPE_WRIST_TILT_GESTURE sensor type
2015-02-11 00:20:54 +00:00
Shawn Willden
79d7934684 Added insecure (chunkless) AEAD option.
Also moved chunk length specification to operation parameter rather than
keygen parameter.

Change-Id: Id4bdfdcb1c7b64b3f22b4027e037e37c2860ec39
2015-02-10 15:15:47 -07:00
Shawn Willden
67ba9e8144 Rename KM_TAG_ADDITIONAL_DATA to KM_TAG_ASSOCIATED_DATA
Change-Id: Ieddd706ee205100719f7e2f9e18b3d9b07c37669
2015-02-09 16:02:51 -07:00
Shawn Willden
e26e136c4f Add additional param lists to update and finish.
At the moment this is to accommodate associated data for AEAD modes, but
there may be other parameters in the future.

Change-Id: Ib94f3606e3f714f6fa75bf0d4bd75804d9a8db4e
2015-02-09 16:02:51 -07:00
Nick Vaccaro
adbfbb747d Add new SENSOR_TYPE_WRIST_TILT_GESTURE sensor type
Adds a new sensor type for converting the Android Wear defined wrist
tilt sensor type into an official android sensor type.

Change-Id: If6357aeb463a556a68a19b28931edec04f99a952
2015-02-05 12:26:35 -08:00
Lajos Molnar
3a274b66d3 am 2c16d1e0: am a163e491: Merge "gralloc: clarify lock_ycbcr in light of multimedia codec usage" into lmp-mr1-dev
* commit '2c16d1e07d4600f78f40d16137c16c3160a3fdef':
  gralloc: clarify lock_ycbcr in light of multimedia codec usage
2015-02-04 18:58:19 +00:00
Lajos Molnar
2c16d1e07d am a163e491: Merge "gralloc: clarify lock_ycbcr in light of multimedia codec usage" into lmp-mr1-dev
* commit 'a163e491c148468884520d6d331a0f6d19104677':
  gralloc: clarify lock_ycbcr in light of multimedia codec usage
2015-02-04 15:49:31 +00:00
Lajos Molnar
a163e491c1 Merge "gralloc: clarify lock_ycbcr in light of multimedia codec usage" into lmp-mr1-dev 2015-02-04 07:18:04 +00:00
Shawn Willden
26581a4008 am efbc9f6d: am 949d6d4b: Merge changes I38700cda,I088e6094
* commit 'efbc9f6d0b6cbf890ee894ee66f2a6f8308c1766':
  Add raw key format, for symmetric key import.
  Remove "required" label from DSA algorithm.
2015-02-03 20:47:53 +00:00
Shawn Willden
efbc9f6d0b am 949d6d4b: Merge changes I38700cda,I088e6094
* commit '949d6d4bfc1cf37a84d5d4ac00a20017941fdeba':
  Add raw key format, for symmetric key import.
  Remove "required" label from DSA algorithm.
2015-02-03 20:41:29 +00:00
Shawn Willden
949d6d4bfc Merge changes I38700cda,I088e6094
* changes:
  Add raw key format, for symmetric key import.
  Remove "required" label from DSA algorithm.
2015-02-03 20:30:05 +00:00
Chien-Yu Chen
a40a7cebcd Merge "camera_common: add TORCH_MODE_STATUS_OFF" 2015-02-03 18:27:54 +00:00
Shawn Willden
e1b7636ca1 Add raw key format, for symmetric key import.
Change-Id: I38700cdafcf1f244584d6e88f8d9540c70a7de56
2015-02-03 11:12:20 -07:00
Shawn Willden
f7745ac27e Remove "required" label from DSA algorithm.
Change-Id: I088e6094ec56f434356d11ab2032b1a5b1223334
2015-02-03 11:10:48 -07:00
Shawn Willden
901349a66b am 9da1cb51: am f3391a93: Merge changes I4ef53a09,I7c3c5bd5
* commit '9da1cb51c6d9ddca81213211aa5168685557a9cc':
  Remove get_output_size() method from keymaster HAL.
  Add tag to allow caller-specified nonce.
2015-02-02 23:43:51 +00:00
Shawn Willden
9da1cb51c6 am f3391a93: Merge changes I4ef53a09,I7c3c5bd5
* commit 'f3391a93188de86f7e15859e613faba94f65cdbc':
  Remove get_output_size() method from keymaster HAL.
  Add tag to allow caller-specified nonce.
2015-02-02 23:39:20 +00:00
Shawn Willden
f3391a9318 Merge changes I4ef53a09,I7c3c5bd5
* changes:
  Remove get_output_size() method from keymaster HAL.
  Add tag to allow caller-specified nonce.
2015-02-02 23:19:32 +00:00
Shawn Willden
e57b65c454 Remove get_output_size() method from keymaster HAL.
Rather than requiring implementations to be able to predict output
sizes, we'll just have the Java layer make a very conservative guess.

Change-Id: I4ef53a09d122d4ecf0c80b9dadc9c7a9073561cc
2015-02-02 11:52:36 -07:00
Shawn Willden
41e91e9fa3 Add tag to allow caller-specified nonce.
Change-Id: I7c3c5bd5f26a4d465554c998f673e0ee2ab8b86e
2015-02-02 11:52:14 -07:00
Haynes Mathew George
a4d1653900 am 3ec7c973: am d5f7dbec: audio: Add audio parameter key for device connect
* commit '3ec7c973d134dae7e246358d92e6054de911d7b8':
  audio: Add audio parameter key for device connect
2015-02-02 15:37:02 +00:00
Haynes Mathew George
3ec7c973d1 am d5f7dbec: audio: Add audio parameter key for device connect
* commit 'd5f7dbec0cac2d0e638025e43f8fb0d611d22bfa':
  audio: Add audio parameter key for device connect
2015-02-02 15:29:58 +00:00
Elliott Hughes
0baa8dae5e am cb37e73b: am ee844515: Merge "Fix "error: \'strlen\' was not declared in this scope"."
* commit 'cb37e73bb023ca97048a8c4b0155ce6397f84e10':
  Fix "error: 'strlen' was not declared in this scope".
2015-01-31 08:33:58 +00:00
Elliott Hughes
cb37e73bb0 am ee844515: Merge "Fix "error: \'strlen\' was not declared in this scope"."
* commit 'ee84451582a1ccf3a177726f2848b64670c88437':
  Fix "error: 'strlen' was not declared in this scope".
2015-01-31 07:49:22 +00:00
Elliott Hughes
360956c4b0 Fix "error: 'strlen' was not declared in this scope".
Change-Id: I8ae39a6b3cf4844429e6211b3c909c6f72978832
2015-01-30 20:40:50 -08:00
Haynes Mathew George
d5f7dbec0c audio: Add audio parameter key for device connect
Add audio parameter key for device connect.

Bug: 17785277
Bug: 19214836
Change-Id: Icd81702634e0bd83645d89c2d65e2b303fc11f8c
(cherry picked from commit 55c07c3418a3bc19a72c4935d8ed57a57074c49a)
2015-01-31 01:42:31 +00:00
Andres Morales
4fc22e94c9 Merge "hardware keyguard HAL" 2015-01-31 00:08:57 +00:00
Ruben Brunk
c65319643a Merge "camera HAL: Update camera_info with simultaneous access information." 2015-01-30 22:59:40 +00:00
Andres Morales
3b48ae5a64 hardware keyguard HAL
simple API for signing/verifying passwords
with a hardware-backed keyguard

Change-Id: Ib2e25c7419e113494c2b0a4579ce8264a2335e07
2015-01-30 12:18:10 -08:00
Lajos Molnar
811677e68d gralloc: clarify lock_ycbcr in light of multimedia codec usage
Bug: 19179927
Change-Id: I53886f8d1a3a998b958f031b04ddd4cbf19aad2c
2015-01-30 11:02:58 -08:00
Zhijun He
ebdf1286e7 camera3: update reprocessing spec
Also bump the HAL version to 3.3 for reprocessing spec update

Change-Id: I37eda90970eace23c42ba9106d4db1587df8d1b4
2015-01-29 16:42:23 -08:00
Chien-Yu Chen
46edf1ac47 camera_common: add TORCH_MODE_STATUS_OFF
Add TORCH_MODE_STATUS_OFF for the case when HAL has to turn off the
torch mode that was turned on by a previous set_torch_mode() call
in order to turn on the torch mode for the current set_torch_mode()
call.

Bug: 2682206
Change-Id: Ia2f717ffaca8c4346ec5fcdf73895160f700f067
2015-01-29 16:26:24 -08:00
Ruben Brunk
0388bcd7b3 camera HAL: Update camera_info with simultaneous access information.
- Add necessary metadata to the camera_info structure to allow
  the camera service to determine which devices can be safely
  opened and used simultaneously without attempting to open
  camera devices.

Change-Id: I4250b4c7e1296ebf4cab07355d6d3be01f17ba1e
2015-01-29 16:17:37 -08:00
Zhijun He
b1a0d14cc2 am 2a96edc3: am b2bc0e51: camera3: update ZSL spec
* commit '2a96edc36ae1f21bf13842f790c265b134d6e903':
  camera3: update ZSL spec
2015-01-29 23:57:02 +00:00
Zhijun He
2a96edc36a am b2bc0e51: camera3: update ZSL spec
* commit 'b2bc0e518278b228d8b4c6bd324f04237feb92c3':
  camera3: update ZSL spec
2015-01-29 23:49:04 +00:00
Zhijun He
b2bc0e5182 camera3: update ZSL spec
INPUT stream is not used by framework-implemented ZSL (HAL3.2), the sample
use case description is incorrect.

Bug: 19197776
Change-Id: I247ad8755b2197c2a62cc109c151749b42a4bd49
2015-01-29 14:44:37 -08:00
Shawn Willden
244cee7b1c am fb823c7f: am 1e541c22: Merge changes I85f430fb,I514a136b
* commit 'fb823c7f6e34973fbfbee788b2ed658dc4544742':
  Remove extraneous 'const' on rescope.
  Rename KM_ERROR_UNSUPPORTED_TAG_LENGTH to KM_ERROR_UNSUPPORTED_MAC_LENGTH.
2015-01-29 17:21:35 +00:00
Shawn Willden
5d773f3584 am 9e9fa066: am 1309477b: Merge "Add missing "const" on add_rng_entropy argument."
* commit '9e9fa066345fd3c17a995f447f07495a0f1eeb13':
  Add missing "const" on add_rng_entropy argument.
2015-01-29 17:21:35 +00:00
Shawn Willden
fb823c7f6e am 1e541c22: Merge changes I85f430fb,I514a136b
* commit '1e541c22d3552b116f0ab3e3a826f458b2821673':
  Remove extraneous 'const' on rescope.
  Rename KM_ERROR_UNSUPPORTED_TAG_LENGTH to KM_ERROR_UNSUPPORTED_MAC_LENGTH.
2015-01-29 01:00:58 +00:00
Shawn Willden
9e9fa06634 am 1309477b: Merge "Add missing "const" on add_rng_entropy argument."
* commit '1309477bdaaecc35b468f00045d9b1d005dde377':
  Add missing "const" on add_rng_entropy argument.
2015-01-29 01:00:57 +00:00
Shawn Willden
611a695c24 Remove extraneous 'const' on rescope.
Change-Id: I85f430fb902fad75f7ce272ac5ab420f212a133c
2015-01-26 16:19:49 -07:00
Shawn Willden
6b424bea80 Rename KM_ERROR_UNSUPPORTED_TAG_LENGTH to
KM_ERROR_UNSUPPORTED_MAC_LENGTH.

Change-Id: I514a136b5cbdb1ab1df67d44a22d68a09427a711
2015-01-26 13:04:28 -07:00
Shawn Willden
59d2578b52 Add missing "const" on add_rng_entropy argument.
Change-Id: I584feed0f89f4342e94cc83e165904c78687f610
2015-01-26 13:03:58 -07:00
Shawn Willden
c59d85a89f am e1d15dda: am 79c255ad: Merge "Change per-boot tag and remove rescope auth timeout tag."
* commit 'e1d15dda2a6a34215d4ee3d2f070270d787bf7cd':
  Change per-boot tag and remove rescope auth timeout tag.
2015-01-24 16:57:19 +00:00
Zhijun He
e4193b8c1c Merge "camera: update HAL module API for external camera" 2015-01-23 23:58:18 +00:00
Zhijun He
94e23b297c camera: update HAL module API for external camera
Update camera module API 2.4 for usb camera support.

Change-Id: Id8329e31ad0622bdc06c60e87e97c742a9719b3b
2015-01-23 15:37:24 -08:00
Shawn Willden
e1d15dda2a am 79c255ad: Merge "Change per-boot tag and remove rescope auth timeout tag."
* commit '79c255ade3ed7ab00db8041dbf7e2a171cbc32b0':
  Change per-boot tag and remove rescope auth timeout tag.
2015-01-23 22:21:44 +00:00
Shawn Willden
dc0007bdb4 Change per-boot tag and remove rescope auth timeout tag.
Change the boolean KM_TAG_SINGLE_USE_PER_BOOT to an integer-valued
KM_TAG_USES_PER_BOOT.  This makes it more flexible without changing
implementation complexity.

Remove KM_TAG_RESCOPE_AUTH_TIMEOUT because there's no clear use case and
it seems unnecessarily complex.

Change-Id: Iad1512f5cc80f517e5ea7622288179c162bed2ad
2015-01-23 13:47:59 -07:00
Shawn Willden
e3b89a9c43 am bde6c2bb: am b1a12188: Merge "Define keymaster HAL v0.4."
* commit 'bde6c2bb3fca4bc0665701ac99fa2b5b9673a6d6':
  Define keymaster HAL v0.4.
2015-01-22 21:41:28 +00:00
Shawn Willden
bde6c2bb3f am b1a12188: Merge "Define keymaster HAL v0.4."
* commit 'b1a1218845eb32564b2f7f0297096ec43b27e41b':
  Define keymaster HAL v0.4.
2015-01-22 21:36:14 +00:00
Shawn Willden
9d645a003b Define keymaster HAL v0.4.
Change-Id: I040412443bbbe25bce3d44759d710b78eac36caa
2015-01-22 10:54:31 -07:00
Jinsuk Kim
53e64c2cbe am 1d1bf8b5: am 8b7eca86: CEC: Add a new flag for set_option
* commit '1d1bf8b5f648abad900b16eabdfd0813e5d6a6a2':
  CEC: Add a new flag for set_option
2015-01-19 02:54:58 +00:00
Jinsuk Kim
8b7eca8674 CEC: Add a new flag for set_option
Added a flag to pass system language information to HAL so that it can
respond to <Get Menu Language> in standby mode.

Bug: 19054079

Change-Id: Iada00307202f5c9429944184b62b6456b624125a
2015-01-19 10:46:39 +09:00
Chien-Yu Chen
301591776f 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
2015-01-15 10:35:07 -08:00
Glenn Kasten
6b6f19d0a8 Line length 100
Change-Id: Iaef5bcaec19a9e383432c8c8460bcdf1115f1072
2014-12-30 08:32:04 -08:00
Jinsuk Kim
4b280b0cd0 CEC: Add a parameter port ID to set_audio_return_channel
This CL addresses the cases where TV has more than one ARC-supported
HDMI ports.

Bug: 18781204

Change-Id: I4eaeb755caf2552b826a7322d19ee671407ee43f
2014-12-17 17:35:14 +09:00
Andre Eisenbach
285fed0963 Add server-side callback for change in MTU (1/4)
When a client requests to update the LE transport MTU, the server
currently does not get notified and can therefor not properly size
notifications appropriate to the current MTU.

Bug: 18388114
Change-Id: I136f32cba48da3302e13fb9a9ec81b8e01712138
2014-11-26 12:56:23 -08:00
Daniel Estrada Alva
700d2c2cf5 Merge "Fix typo and add more detailed comments on what we expect from GPS HAL. b/16727892" into lmp-mr1-dev 2014-11-06 21:52:43 +00:00
Ruchi Kandoi
0e6a158eaf Merge "power: Adds setFeature functionality for the power module" into lmp-mr1-dev 2014-10-31 23:31:09 +00:00
Tsuwei Chen
a90cf193b9 Fix typo and add more detailed comments on what we expect from GPS HAL.
b/16727892

Change-Id: I73d3ea3e743846b9e579c78b80d7a393319c09f1
2014-10-31 13:43:07 -07:00
Ruchi Kandoi
d091713884 power: Adds setFeature functionality for the power module
Adds the setFeature callback which could be used to enable/disable
power as well as performance specific features.

POWER_FEATURE_DOUBLE_TAP_WAKE is added which uses the setFeature
callback to enable/disable the double-tap feature.

Bug: 16875464
Change-Id: I5ed9b5be8fddedf9861eedd962def421d9fac5bf
2014-10-31 10:58:30 -07:00
Wonsik Kim
357ce00a5b Merge "tv_input: more documentation to events" into lmp-mr1-dev 2014-10-23 06:55:32 +00:00
Wonsik Kim
fbb4412b1c tv_input: more documentation to events
Bug: 18047715
Change-Id: I63fd594d3380f92fce3224a258060ca2bf37e79b
2014-10-23 14:11:19 +09:00
Eric Laurent
bc19a3de77 audio: new parameter key for HW A/V sync ID allocation
The HW A/V sync ID is retrieved from the HAL by calling
global get_parameters() with key AUDIO_PARAMETER_HW_AV_SYNC.

After the output stream is opened, the HW A/V sync ID is communicated
by stream set_parameters() with key AUDIO_PARAMETER_STREAM_HW_AV_SYNC.

Bug: 17112525.
Change-Id: Id1e3a3aa1e88d15461a609b381ca8c1902735a29
2014-10-20 09:58:04 -07:00
Eino-Ville Talvala
b545983975 Camera HALs: Promote device HAL v3.2
And deprecate older HALs.

Bug: 17445920
Change-Id: I37a5e53fda3c93080e37ec848f84c702a2c9120b
2014-09-10 11:13:16 -07:00
Aravind Akella
110d2f2713 sensors.h documentation change.
i) on-change sensors should set maxDelay.
  ii) Drivers should hold a wake_lock till poll() is called
  the next time when delivering events from wake-up sensors.

Change-Id: I4b137843d5c857f04601618548306a710fbfbe5c
2014-09-05 14:50:07 -07:00
Tsuwei Chen
02516c78f3 Merge "Creates interface to dynamically configure GPS. Bug: 17110478 Change-Id: I2a053d02e3c198d519d6306809f81ff601169151" into lmp-dev 2014-09-02 17:01:23 +00:00
Tsuwei Chen
167d31f528 Creates interface to dynamically configure GPS.
Bug: 17110478
Change-Id: I2a053d02e3c198d519d6306809f81ff601169151
2014-08-30 00:16:14 +00:00
Griff Hazen
f0f67e6af9 Merge commit '38014a7c' into lmp-dev
Conflicts:
	include/hardware/sensors.h

Change-Id: I21517f717761af7f52c003d535e86059ebb75f05
2014-08-28 17:02:50 -07:00
Vinod Krishnan
38014a7c81 am 74279e3c: Adding information about the first activation
* commit '74279e3c23bd62c70d53098be91db85df5a68ece':
  Adding information about the first activation
2014-08-28 23:08:37 +00:00
Vinod Krishnan
74279e3c23 Adding information about the first activation
Change-Id: If5759749c5e6a88dcaf5ab600c9086b056c3908a
2014-08-28 15:25:13 -07:00
Paul McLean
2c6196f20c Fix problem with dropouts with multiple USB audio streams.
Bug 17136569

Change-Id: I94bdbe037533a3fd77f249fdd42f4d828d3bf87f
2014-08-28 07:59:03 -07:00
Aravind Akella
a7f2cda848 Sensor HAL documentation fix.
Change-Id: Ibc3f643a22163f734ba0ca912f011decf55d9bfa
2014-08-21 16:31:14 -07:00
Etienne Le Grand
772d85ad35 Some parameter renaming and comment update in sensors.h
bug: 16818625
Change-Id: Ifcda8cd4e80a7377a6b5b138b9c7a5a2275af153
2014-08-19 17:29:10 -07:00
Andre Eisenbach
005b123e41 Merge "LE: Add limited advertising duration capability (1/3)" into lmp-dev 2014-08-06 23:49:20 +00:00
Andre Eisenbach
4789ed595a LE: Add limited advertising duration capability (1/3)
Change-Id: I14006aa96758c285a1d88aef12df11cf28598028
2014-08-07 15:18:34 -07:00
Eric Laurent
4ea9b95684 audio HAL: add parameter to get audio HW sync source
Bug: 16132368.
Change-Id: Id76ce254b73ea11316cc684399de8d9c520c9b9b
2014-08-05 15:02:46 -07:00
destradaa
6ca86fbe16 Merge "Add HAL capabilities for GPS Measurements and Navigation Messages." into lmp-dev 2014-08-04 23:37:12 +00:00
destradaa
69d5ea5dac Add HAL capabilities for GPS Measurements and Navigation Messages.
Change-Id: I2ed41f2c048cfe82a539b3a4e955305787731a95
2014-08-04 18:07:46 -07:00
Andre Eisenbach
01206e579c Add transport parameter to createBond() function (1/4)
Change-Id: I8373ace899444c138907aaecc0f067188b0a7d90
2014-08-04 17:22:29 -07:00
Aravind Akella
fa9a4a3c68 Merge "Remove WAKE_UP_* sensor constants and stringTypes." into lmp-dev 2014-07-29 21:36:00 +00:00
Prerepa Viswanadham
378de1a9e0 Incorrect data type. bt_local_le_features_t of wrong size
b/16653133

Change-Id: Icd7a3de6161669f4c54c6042bf80314e72f5f0ff
2014-07-30 23:41:29 +00:00
Aravind Akella
9057e128b0 Remove WAKE_UP_* sensor constants and stringTypes.
Change-Id: Iabe4bb064d88d9fcecc1a31e609cb8b77ebdd5ad
2014-07-30 16:27:36 -07:00
Eric Laurent
d1a1b1c4df Add parameter key and values for hearing aid compatibility mode
Change-Id: Ibdbe102bd49dbf228af5d4327b1868849c9d754e
2014-07-30 09:49:04 -07:00
Eric Laurent
ca413b6ec9 Merge "audio HAL: add parameters to open stream" into lmp-dev 2014-07-25 21:16:23 +00:00
Eric Laurent
f5e2469c02 audio HAL: add parameters to open stream
Pass device address (and audio source for inputs) to
open_output_stream() and open_input_stream() audio HAL functions.

Bug: 14815883.
Change-Id: I5535677db3f3027917a31a7ed5c0a4c6bc013639
2014-07-28 11:38:40 -07:00
Jinsuk Kim
634e9484eb Revert "Update comment for send message."
This reverts commit 0e956a7cd2dee76b762320c141960ffdb64d24eb.

The decision was to revert to the old behavior where retransmission
will be handled by HAL for efficiency.

Change-Id: If165b60c0408ea1015b83806f6bf21e18b15bc7f
2014-07-28 08:04:04 +00:00
Jeff Brown
d61f84efe2 Delete mcu HAL.
This HAL was intended to support doze mode but it is currently
unused and it's best for it to stay that way.

Bug: 16516536
Change-Id: I4f442e27d68f18ff322afd4c1debd2f392687e80
2014-07-26 14:58:23 -07:00
Martijn Coenen
2a1b8bec59 Merge "Add HAL module ID for BCM2079x." into lmp-dev 2014-07-24 15:36:02 +00:00
Martijn Coenen
93cc45750b Add HAL module ID for BCM2079x.
Bug: 16542494
Change-Id: Ia03f981d134e0f4f2de909f8ab158b28931a1dc0
2014-07-24 18:00:42 -07:00
Eino-Ville Talvala
4ad1309c0c Merge "Camera: Define error codes for remaining camera_module methods." into lmp-dev 2014-07-24 15:37:54 +00:00
Eino-Ville Talvala
c984be747d Camera: Define error codes for remaining camera_module methods.
Not previously documented, though already assumed to be this.

Bug: 16514157
Change-Id: I9334fdf672c9772014681a5c346a6f20b51d8213
2014-07-24 17:04:45 -07:00
Greg Hackmann
4e6b19fd48 Merge "gralloc: add GRALLOC_USAGE_CURSOR flag" into lmp-dev 2014-07-24 15:36:02 +00:00
Riley Andrews
4a6788b02f Add interface for doing asynchonous cursor layer updates to hwcomposer
Change-Id: If2ab523b400cfb586c8e1fed98f2ebe3538c0419
2014-07-24 00:53:21 +00:00
Greg Hackmann
8931ce18e5 gralloc: add GRALLOC_USAGE_CURSOR flag
On many devices, hardware cursors have stricter layout constraints than
other overlays.  GRALLOC_USAGE_CURSOR indicates a buffer may be used as
a cursor; byte order and padding should be chosen accordingly.

GRALLOC_USAGE_CURSOR must not cause allocation failure.  If the requested
properties (dimensions, format, other usage flags, etc.) aren't compatible with
the device's cursor hardware, the implementation must allocate the buffer
anyway, acting as if GRALLOC_USAGE_CURSOR were not specified.

Change-Id: I7d66e8d7c953421d996c5def3257d408f91962f4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-07-23 20:59:44 +00:00
Satya Calloji
be7f044b64 LE energy info feature
Header changes for energy info feature

Change-Id: Ic341ad9089b444960c36beff726fa9ddb5c901a2
2014-07-23 18:52:50 +00:00
destradaa
09c1736aaf Merge "Fix typo in sensor type using an already defined constant." into lmp-dev 2014-07-23 18:50:38 +00:00
destradaa
941c928d9d Add uncertainty for GPS received tow field.
b/16463499

Change-Id: Ib8ddd092f3da8295345524846e3ea0bcce59ccc2
2014-07-21 18:26:34 -07:00
destradaa
5ebb31c9bc Fix typo in sensor type using an already defined constant.
Change-Id: I209d9191456dc6c1ef2eb695c9a8348a18504a8d
2014-07-21 15:12:21 -07:00
destradaa
122b588b78 Merge "Update GPS measurement HAL definition." into lmp-dev 2014-07-21 15:42:19 +00:00
Wonsik Kim
962e9adc2f Reorder hardware types & remove verbose comments
Reorder hardware types so that older types comes first roughly. This
would make it more natural to add newer hardware types as they come.
In addition, remove verbose comments where the meaning is obvious from
the name.

Change-Id: I275e9e608c8c2392e3f7ec2c5d81743059f2d36b
2014-07-19 16:17:46 +09:00
Jeff Brown
842b906dd4 Add new HWC_POWER_MODE_DOZE_SUSPEND power state.
Change-Id: Ice194315bc51ca25732c9e30c809bd6b39f3718f
2014-07-18 21:28:19 -07:00
destradaa
75843eb756 Update GPS measurement HAL definition.
b/16374800

Change-Id: I39602e4b7dedeca5de866cdb996887ae53d5aa9d
2014-07-17 18:33:00 -07:00
Jungshik Jang
c48c879bdd Merge "Update comment for send message." into lmp-dev 2014-07-17 21:11:29 +00:00
Jungshik Jang
2b863dc444 Update comment for send message.
HAL should not handle retransmission because it's handled by
hdmi control service.

Change-Id: I0daf1baf6f87805e2049ff84c6f8c2cace76dba2
2014-07-21 18:06:01 +09:00
Andre Eisenbach
da4eaca2cc LE: Add connection parameter update request API (1/4)
Change-Id: I90955b5e1640f7025e864ac9227af6ad8ba5ca77
2014-07-18 12:15:03 -07:00
Jeff Brown
8df2feb00d Add glance gesture for doze mode.
Change-Id: I2daa13e74d2183247c314c15ee283b7a6c20bc22
2014-07-17 18:20:12 -07:00
Aravind Akella
2d613f8526 Merge "Define SENSOR_TYPE_PICK_UP_GESTURE." into lmp-dev 2014-07-17 18:05:14 +00:00
Aravind Akella
952471eb99 Define SENSOR_TYPE_PICK_UP_GESTURE.
Change-Id: I122f37f5625a2acc3912ad37bdf8717ae2f31b6f
2014-07-17 12:55:43 -07:00
Glenn Kasten
7d973adff4 Add audio_input_flags_t to HAL open_input_stream
Change-Id: I3519bfa45809e064d19473ebe6489c5249d306a8
2014-07-16 12:29:35 -07:00
Michael Lentine
9d5428c4c7 Merge "hwcomposer: Allow display configuration selection" 2014-07-14 23:57:14 +00:00
Dan Stoza
e83d10c1fc hwcomposer: Allow display configuration selection
Adds two functions to the HWC interface: one for querying the current
display configuration, and one for setting a new configuration. This
will enable DisplayManager to change the mode on demand.

Bug: 14320401
Change-Id: I556c509192b877b38b2103a78f937b3687f35546
2014-07-14 14:09:13 -07:00
Jinsuk Kim
299664d8e8 Merge "Use the term port_id for HDMI port index across definitions" 2014-07-10 21:52:20 +00:00
destradaa
9f7c3734df Update GPS HAL to accept raw data.
Change-Id: Id487c2f9eb4bc95d89dc0fba1332f666ae332ee0
2014-07-09 10:55:30 -07:00
Jinsuk Kim
ca6fa79703 Use the term port_id for HDMI port index across definitions
Renamed various terms like, port, port_num to port_id, and
added a description that the id starts from 1.

Change-Id: I9229edff7fd75dd15e672e309369e237ca339238
2014-07-09 17:17:24 +09:00
Zhijun He
aba57fb4e5 Merge "camera3: fix some spec issue related with input/bidrectional stream" 2014-07-08 21:53:37 +00:00
Zhijun He
52a188993a camera3: fix some spec issue related with input/bidrectional stream
Bug: 13934977
Change-Id: Ibccb80e69ac9da153de6378f1e3b0f00527ce4c9
2014-07-08 13:59:41 -07:00
Eric Laurent
30f3e6d348 sound trigger: update HAL
New start_recognition() prototype with recognition
configuration structure specifying:
- List of keyphrases to listen to.
- Recognition mode for each keyphrase
- List of users and min confidence levels for each users

New recognition event format with confidence level and user ID
for each user.

Bug: 12378680.
Change-Id: I95e998c735321ceb5c27f477d894b574a6eca860
2014-07-07 10:15:45 -07:00
Eric Laurent
c51e49259a Merge "audio: different frame size calculation for input and output" 2014-07-06 02:28:07 +00:00
Eric Laurent
c5ae6a0304 audio: different frame size calculation for input and output
Bug: 15000850.
Change-Id: I7813e99a0b7ce613cc3b7d7c95be0525cb2d6c81
2014-07-03 16:51:09 -07:00
Jinsuk Kim
ada8314004 Remove tx_status event in CEC HAL
Removes tx_status event type which turns out not in actual use.
This changes makes send_message() work in sychrnonous fashion
when called by HdmiControlService. HdmiControlService has io thread
dedicated to interact with HAL, hence no need to introduce
another async flow for HAL.

Change-Id: I8ae21b1149cd36bfd0f9da215c4f23b30f0c8d30
2014-07-03 09:37:10 +09:00
Hemant Gupta
053cccfe14 Bluetooth: Support MAP Client role on Bluedroid.
Implementation of MAP Client (MCE) role on
Bluedroid stack. Include MAP Client Interface ID.

Change-Id: Icdf11b7f09a161e35aa3aa68b9b5fa315e18fd65
2014-07-01 10:36:44 -07:00
Matthew Xie
549e6be33d Merge "Add WBS support on Bluedroid (4/6)" 2014-06-30 22:27:39 +00:00
Satya Calloji
3154babbb6 LE Onfound and Onlost feature
Header changes for on found/onlost feature

Change-Id: I72d49a1b6560c2c913a3b7016b7504eef9962258
2014-06-30 10:43:31 -07:00
Satya Calloji
a28f92a7f5 LE ADV Filter changes
Header changes for ADV filter feature

Change-Id: Ib568f422c4171ed8a3bb42d9e75af5250edf98b6
2014-06-30 10:43:31 -07:00
Satya Calloji
20a1a05996 LE Batch scan feature
Header changes for LE Batch scan feature

Change-Id: I32a51331d7a3a8eedf8577a66a8bdf90732f32db
2014-06-30 10:43:31 -07:00
Hemant Gupta
4d8645547d [1/2] Bluetooth: Security: Handle authentication rejected error status
Handle authentication rejected error status in failure scenario.

Change-Id: Ibd59d161ee5481ced2cb078a6ee6f4a6b045bcd4
2014-06-29 11:53:55 -07:00
Andre Eisenbach
9ef3c72ef3 LE: Add notification sent and congestion callbacks (1/4)
This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Change-Id: I613cbf968770921f853a407888bb8308849039f3
2014-06-25 14:00:30 -07:00
Mudumba Ananth
3c4db4c560 Add WBS support on Bluedroid (4/6)
Bug 13764086

Change-Id: I7938758d39aaa1218c38956be41d8402f84c2f49
2014-06-23 23:27:34 -07:00
Andre Eisenbach
0d553bc12f LE: Add is_connected() function (1/3)
Change-Id: I1b94ab0c8b0ff2e1026a4f5bbe95dca25be3d104
2014-06-19 11:32:12 -07:00
Jim Miller
953524b2bd Minor cleanup of HAL fingerprint API
Change-Id: I7a4b1caadfe499d2394c8645e45903759b672e8b
2014-06-16 21:06:13 -07:00
Wonsik Kim
ace6d32dd7 Merge "tv_input: Add HDMI port ID" 2014-06-10 22:29:12 +00:00
Wonsik Kim
45849fb74e tv_input: Add HDMI port ID
Bug: 15570939
Change-Id: Id15ef9dbc79cd9c4f55be1eb114d66e08dfe923d
2014-06-13 11:47:08 +09:00
Ganesh Ganapathi Batta
460343a1b5 Add support for retrieving local LE features via get_adapter_properties
Change-Id: I337614aa96ec08f631667dc4a18b4e5c993a79b1
2014-06-12 01:34:38 +00:00
Sasha Levitskiy
da105cd382 Merge "HAL: Fingerprint: Incremental scan notification." 2014-06-10 22:12:51 +00:00
Sasha Levitskiy
ba45e05a6a HAL: Fingerprint: Incremental scan notification.
Change-Id: If943fe6b46a8261ca936e07a36e11c10c7e6d63a
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-06-11 10:17:25 -07:00
Zhijun He
5f36d1af13 Merge "hardware: camera_common: add module open legacy device API" 2014-06-10 21:32:31 +00:00
Zhijun He
bcdebf37fb hardware: camera_common: add module open legacy device API
This adds the module API to open a camera device as lower HAL version legacy
device.

Change-Id: I6616aebc5ec0cef28f675e5dddb334dc6b5dfea9
2014-06-13 11:44:19 -07:00
Mike Lockwood
21e50b1898 Use separate HAL interfaces for A2DP source and sink roles.
Both use the same structs for APIs and callbacks, but now
source and sink mode can operate independently with separate
Bluetooth profile services in the framework.

An extra callback btav_audio_config_callback is used for reporting
audio configuration for A2DP sink role

Change-Id: I6e8172b66ff95e61721d1c35790609b7ae2be030
2014-06-13 09:09:58 -07:00
Mike Lockwood
7da4cb8b6f Move AVRCP controller support to a different HAL interface
This allows us to add a new BluetoothProfile subclass for
the AVRCP controller role independent of the existing AVRCP target support.

Change-Id: I504bbf58a88808d1a884266992ae0c635c62aca1
2014-06-13 09:09:58 -07:00
Hemant Gupta
1beebfc39b Add Support for AVRCP Controller Feature
- Provide support for AVRCP Controller CAT 1 and CAT 2
    passthrough commands.

Change-Id: If437a3bbd1e97d22e5ceddf0d052dbaad1093257
2014-06-13 09:09:57 -07:00
Mike Lockwood
5735b772ee Merge "Bluetooth: Add support for HFP Client role." 2014-06-12 17:09:07 +00:00
Hemant Gupta
e7737c81e8 Bluetooth: Add support for HFP Client role.
Implementation changes in HAL for HFP Client role.
Include HFP Client Interface ID.

Change-Id: I1117c6a0c53e7e7059e46711f7a26639d2bbaee3
2014-06-12 13:20:32 -07:00
Aravind Akella
457265f5c0 Merge "Add sensor flags for reportingMode." 2014-06-12 05:34:42 +00:00
Aravind Akella
c841efdc36 Add sensor flags for reportingMode.
Change-Id: Ife456dd13264bafa7cd50d72b8818526030d7a3e
2014-06-12 14:49:09 -07:00
Sharvil Nanavati
3bd8cba787 Add callouts for bluedroid to acquire wake locks and set wake alarms.
Since bluedroid is running outside of system_server, it does not have
the necessary Linux capabilities or filesystem permissions to access
/sys/power/wake_* and /dev/alarm (or any other wake alarm). This change
provides a mechanism by which bluedroid can call back up into Java code
and use the standard Android APIs to get wake locks / wake alarms.

Change-Id: I714fd394224d38da5ff0f82de5559599d522010b

Conflicts:
	include/hardware/bluetooth.h
2014-06-12 14:01:25 -07:00
Prashant Malani
0f0b6d5ccb Merge "hwcomposer: Add function pointer for setPowerMode() callback" 2014-06-10 21:44:22 +00:00
Prashant Malani
02b31986cb hwcomposer: Add function pointer for setPowerMode() callback
The blank HWC call is being replaced by a setPowerMode() call.
This incorporates all of the blank functionality, but provides added
support for display low power modes, if they are available in hardware.

Currently there are three supported modes:
- HWC_POWER_MODE_OFF    : Turn screen off.
- HWC_POWER_MODE_DOZE   : Put screen in low power mode.
- HWC_POWER_MODE_NORMAL : Turn screen on, and exit low power mode (if
                          display was previously in low power mode).

Where applicable, the device driver is expected to retain and restore
the low power mode state of the display during entry and exit from
suspend, respectively.

Bug: 13472578
Change-Id: I743ea3a2cb58247d14d7c47158b09a5309cca710
Signed-off-by: Prashant Malani <pmalani@google.com>
2014-06-12 17:11:03 +00:00
destradaa
f48cc67fcf IPv6 support for GPS HAL.
Change-Id: Ieb5aead647c10ed42e50bef9c4d7cd558fe7160b
2014-06-10 10:38:53 -07:00
Dan Stoza
cbdd561911 Merge "hwcomposer: Correct padding for 32/64-bit" 2014-06-06 17:23:17 +00:00
Eric Laurent
7bb04adc53 Merge "added sound trigger HAL." 2014-06-05 01:09:46 +00:00
Dan Stoza
91699a82eb hwcomposer: Correct padding for 32/64-bit
The size of hwc_layer_1_t varies depending on whether we're building
for a 32- or 64-bit target. This change splits the padding into two
sections so that we can add more fields without changing the overall
size on either bitness.

Change-Id: Ib7c960a9feb0061586dc6398211d7d3dc012d573
2014-06-04 16:10:46 -07:00
Eric Laurent
46bbe8a782 added sound trigger HAL.
Defined HAL for hardware voice and sound activity
activity detection (sound trigger).

Change-Id: I04f3c770c69a81245e8a15dd9e097e2c3f5ef069
2014-06-04 14:34:06 -07:00
Aravind Akella
80efde7c11 Merge "Replace integer constants with strings in Activity Recognition HAL." 2014-06-03 17:21:37 +00:00
Aravind Akella
871b748733 Replace integer constants with strings in Activity Recognition HAL.
Change-Id: I67d543869f5870f9e771c36c0fe1d58e7495ca57
2014-06-03 01:37:50 +00:00
Etienne Le Grand
2ec41a17b2 Merge "Rewording of tilt sensor" 2014-05-30 02:42:58 +00:00
Etienne Le Grand
426f14df08 Rewording of tilt sensor
Change-Id: I7bb0e63c3e1e6850359d7e690bfeea9e8c8fbcbf
2014-05-29 19:35:48 -07:00