Commit graph

1298 commits

Author SHA1 Message Date
Ruchi Kandoi
4e2d56925d Merge "power: Adds a new power hint POWER_HINT_SUSTAINED_PERFORMANCE" 2016-01-27 21:21:08 +00:00
Marie Janssen
32d45dd020 Add arguments to native dumpsys support
Arguments are passed through in order to support metrics logging and
future support for other dumpsys support in the native daemon.

Change-Id: Icaa75b9f36cca7e2dd2ceb5f94b27dec657d34e4
2016-01-27 17:49:32 +00:00
Ashutosh Joshi
8c3c46da69 Context hub HAL
Adding a new HAL to support Context hubs on devices.
A context hubs is a low power compute domain with access
to sensors and the potential to download code on the device.

Change-Id: Id2f8d6a0ac9bbfe18a64432c867a8869c0db91fe
2016-01-26 15:57:26 -08:00
Lifu Tang
df0fcf7ec9 Various changes on GPS.h HAL definitions
- Support for all GnssSvInfo
- Support for more than 32 satellites
- CellID support for LTE
- Mandatory support for Pseudoranges
- New field in GpsClock
- New callback to report GPS hardware version
- Moved deprecated/retired structs into separate file

Change-Id: I114aa3f651998c17c7222575d148595cc303b6f4
2016-01-26 15:37:57 -08:00
Marie Janssen
addd3133f3 Add arguments to native dumpsys support
Arguments are passed through in order to support metrics logging and
future support for other dumpsys support in the native daemon.

Change-Id: Icaa75b9f36cca7e2dd2ceb5f94b27dec657d34e4
(cherry picked from commit 4236525865b119af9d2e2f5a87ac21c91fc90333)
2016-01-26 20:13:31 +00:00
Shawn Willden
71ca0109be Add KM_TAG_ALLOW_WHILE_ON_BODY.
Change-Id: I39ca0eee8be46a6acc65e975aad81d2f2c2aa5b8
2016-01-26 07:34:48 -07:00
Ashutosh Joshi
cb96331ac3 Adding new sensor types.
Adding new sensor types for the following -
     i) Stationay Detection
    ii) Motion Detection
   iii) Heart Beat Detection

Change-Id: I0e0dca011de99ed1dda56cbb3b6381df529a1345
2016-01-26 05:56:42 -08:00
Polina Bondarenko
39f0c823b3 Merge "Hardware Properties HAL: header file and default implementation" 2016-01-26 12:13:57 +00:00
Ashutosh Joshi
ed021eae5c Adding support for a 6 DOF pose sensor
Adding a six degree of freedom sensor returning device pose.

This pose is comprised of two parts a rotation from an orientaion
pointing due north and zero pitch and roll && a translation from
an initial point of reference.

Change-Id: If9e1d5a421b81e6e388c446a5a1c19e9c08ad067
2016-01-25 14:22:29 -08:00
Keun-young Park
6308b5874a Merge "use only positive range for property key" 2016-01-25 21:05:52 +00:00
Keun-young Park
77d3c395e3 use only positive range for property key
- negative range makes handling it inconvenient in java space where
  there is no unsigned int.

bug: 25183740
Change-Id: If4080201df5f933c0462afe229d876c6d9a8aa2c
2016-01-25 11:37:24 -08:00
Keun-young Park
14f09000f9 add zone_type definition to zoned properties
Change-Id: Id8fbaedd894e0ad4ac4c29b360cc8b16341f3bec
2016-01-25 11:34:31 -08:00
Shawn Willden
1227f460ce Merge "Add keymaster2 HAL." am: 0c5612db38
am: 7b4766882d

* commit '7b4766882d1a11a4b87570e7f0b83c5116a64f07':
  Add keymaster2 HAL.
2016-01-25 17:40:10 +00:00
Polina Bondarenko
1c408b07ed Hardware Properties HAL: header file and default implementation
Added methods on Hardware Properties HAL:
getCpuTemperatures, getGpuTemperatures, getBatteryTemperautres,
getCpuUsages, getFanSpeeds and default/legacy empty implementations
(return empty lists by default).

Bug: 22407109
Change-Id: I3e0e74527cf759cc717ab03ea8e7184da5bea1e6
2016-01-22 17:29:38 +01:00
Shawn Willden
cf30fe17fd Add keymaster2 HAL.
Change-Id: Ibfcda30f33077f61e74701fa026983f9e72e140e
2016-01-21 12:19:31 -07:00
Adam Lesinski
726d830ad8 Merge "Add Bluetooth network traffic accounting to HAL API" am: 87882cc0f2
am: 432245ec7f

* commit '432245ec7f116a5587cb83b38248119fecc370e2':
  Add Bluetooth network traffic accounting to HAL API
2016-01-21 04:48:18 +00:00
Adam Lesinski
af8db0642c Add Bluetooth network traffic accounting to HAL API
Introduces a UID traffic struct and includes it in the API
for querying energy usage data.

Also adds the calling UID as a parameter for starting sockets
so that network traffic can be tracked.

Bug:26039657
Change-Id: I30a48bcf0abae2fae11454e0d5bb76017b42beea
2016-01-21 00:57:18 +00:00
Adam Lesinski
e2d316d2c9 Add Bluetooth network traffic accounting to HAL API
Introduces a UID traffic struct and includes it in the API
for querying energy usage data.

Also adds the calling UID as a parameter for starting sockets
so that network traffic can be tracked.

Bug:26039657
Change-Id: I9f4a130adc2846467063e7a9a4ea2231af06a80b
2016-01-20 16:47:00 -08:00
AnubhavGupta
eacdbc8b6d Bluetooth: A2DP sink interface for Audio Focus change and AVRCP 1.3
- Add interface to report audio focus change from Bluetooth Apk
   to media task for A2DP Sink scenarios.
 - Add interface to request audiofocus from system/bt.
 - Add interfaces for AVRCP 1.3.

Change-Id: I687ea7be460b3ee3b082db9264621e2e24d04c0c
2016-01-19 14:30:45 -08:00
Darren Krahn
a59143bc44 Add header for new NVRAM HAL.
This HAL abstracts implementations of non-volatile storage with
hardware-backed access controls.

BUG=24397987

Change-Id: Ia9935b138a7ad3e931c54e590570d233c9036e0f
2016-01-19 09:34:25 -08:00
Trevor Bunker
9d8d359829 Merge "sensor HAL: add device orientation sensor" 2016-01-15 16:25:26 +00:00
Keun-young Park
159f5707e0 Merge "add zoned int32 / float array" 2016-01-15 01:19:17 +00:00
Keun-young Park
73d7f226dd add zoned int32 / float array
bug: 26473518
Change-Id: I09fc9d14590ba4930cc2047857e66329dd388ead
2016-01-14 11:02:38 -08:00
AnubhavGupta
a5b557a590 Bluetooth: A2DP sink interface for Audio Focus change and AVRCP 1.3
- Add interface to report audio focus change from Bluetooth Apk
   to media task for A2DP Sink scenarios.
 - Add interface to request audiofocus from system/bt.
 - Add interfaces for AVRCP 1.3.

Change-Id: I687ea7be460b3ee3b082db9264621e2e24d04c0c
2016-01-13 15:54:59 -08:00
Ruchi Kandoi
9489865ddd power: Adds a new power hint POWER_HINT_SUSTAINED_PERFORMANCE
Adds a POWER_HINT_SUSTAINED_PERFORMANCE which is used to enable/disable
sustained performance mode. This mode provides consistent performance
for prolonged amount of time.

Bug: 22864186
Change-Id: I78d0f72fe41bf0ef6f115644de0fd7194d4f1040
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-01-13 09:09:57 -08:00
Andy Hung
dff34ffe23 Merge "Add mono audio parameter" 2016-01-08 23:17:55 +00:00
Andy Hung
89d567f1c9 Add mono audio parameter
Bug: 15283594
Bug: 22700363
Change-Id: Ia1806867344a862e794416b2469ccaa38b62d932
2016-01-08 13:58:51 -08:00
Trevor Bunker
f8e7ed34bd sensor HAL: add device orientation sensor
This sensor reports the current device orientation (e.g., portrait vs.
landscape).

Bug: 23470411
Change-Id: I7654473d5aaee256b8ae906c40634141a7f9cdd8
2016-01-08 10:22:23 -08:00
Keun-young Park
cb8c8872b0 move AUDIO_CONTEXT to audio range
bug: 25183740
Change-Id: I14b8dda402f74c3c72cced35251079d7a60f7c55
2016-01-08 09:41:19 -08:00
Alexander Levitskiy
83def36b2e Merge "Fingerprint: Add an API to support throttling." 2016-01-07 23:35:02 +00:00
Sasha Levitskiy
7e9204a954 Fingerprint: Add an API to support throttling.
Bug: 22568569
Change-Id: I948ac0f55bc5fbc61d0eacdc5caef0e2bf0746a2
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2016-01-07 15:26:06 -08:00
Jakub Pawlowski
85d3e791cc Add structure for holding Bluetooth OOB data.
Change-Id: I0f59bf6343e519a7da830f57d242f9bdf18fca93
2016-01-07 13:39:09 -08:00
Keun-young Park
bf877a7e66 vehicle hal update
- add zones to subscribe to allow selected subscription for
  zoned properties
- extend config to uint32[4] to allow passing more informaiton
  from configs
- change audio volume to be per context, not physical stream.
  This maps better to android side's logical streams.
- renamed APP_CONTEXT to AUDIO_CONTEXT: It is useful only for
  audio.
- add more audio contexts: safety alert, CD, aux audio

bug: 25183740, 26233321

Change-Id: I29de7b6c9d9a770cf87e7f50991c875d7ce9fdbe
2016-01-06 15:15:02 -08:00
Steve Paik
bf274b3f4f Revert "Revert "Add VEHICLE_HVAC_FAN_DIRECTION_FACE_AND_FLOOR_FLAG""
This reverts commit ac30be1f36.
2016-01-04 17:05:43 -08:00
Jakub Pawlowski
00202fff5a Add structure for holding Bluetooth OOB data.
Change-Id: I0f59bf6343e519a7da830f57d242f9bdf18fca93
2015-12-30 19:50:03 +00:00
Chengu Wang
7ffd1a32c3 Merge "Define AR HAL API more clearly" 2015-12-21 22:51:42 +00:00
Chengu Wang
eb1bd05175 Define AR HAL API more clearly
- Initial event.
- No events after disable_activity_event.
- Synchronized flush.

Change-Id: I9cce29c18cd0c771e2c838ae1c2634fb71585d20
2015-12-17 16:47:45 -08:00
Wonsik Kim
3d78be58b8 Merge "tv_input: add signal detection flag to stream config" 2015-12-17 07:05:52 +00:00
Ruben Brunk
0a99522efb Update lights HAL to include low-persistence mode.
Bug: 22855417
Change-Id: Ie76430025157930a3d824b7f18b5e23ba7d92f12
2015-12-16 11:22:40 -08:00
Steve Paik
d2ba70f965 Add more HVAC parameters to support TDK
Added new parameters:
  - max AC
  - max defrost
  - recirc
  - dual

Also added fan direction enum.

Change-Id: I887a5272bdd310cb7aed014489dacc901d4731d0
(cherry picked from commit 4e3891829cedd60ce5e8b609313458835b4cea1b)
2015-12-11 01:19:06 +00:00
David Zeuthen
c5e390a2dc Merge "libhardware: boot_control: Add isSlotMarkedSuccesful() function." am: e96eb0ddda
am: d8bc07cdce

* commit 'd8bc07cdce442fc42e3fd4250b6c6c4e9a42c9d3':
  libhardware: boot_control: Add isSlotMarkedSuccesful() function.
2015-12-09 22:27:57 -08:00
Keun-young Park
f251c7783b Merge "add clarification on parameter passing in get call" 2015-12-10 01:00:08 +00:00
Keun-young Park
08c255e3b6 add clarification on parameter passing in get call
- with errata fix
- also removed build warnings from vehicle.c

bug: 25183740
Change-Id: I6e0ed9e300e4bc5ff8821cca87ff8509ffc0968a
2015-12-09 15:55:39 -08:00
David Zeuthen
e96eb0ddda Merge "libhardware: boot_control: Add isSlotMarkedSuccesful() function." 2015-12-09 20:58:58 +00:00
David Zeuthen
f0385d4ccc Merge "libhardware: boot_control: Clarify documentation for isSlotBootable()." am: f73b52393c
am: 8d7bfc600d

* commit '8d7bfc600d7ef054d696b091c7044caed62605a7':
  libhardware: boot_control: Clarify documentation for isSlotBootable().
2015-12-09 15:09:21 +00:00
David Zeuthen
f73b52393c Merge "libhardware: boot_control: Clarify documentation for isSlotBootable()." 2015-12-09 15:01:18 +00:00
David Zeuthen
72c88c915d libhardware: boot_control: Add isSlotMarkedSuccesful() function.
This is useful in cases where the OS need to do some work (verification,
JIT'ing etc.) before it's ready to mark a slot as successful.

Change-Id: I114cfb7cf89ee227b186c56347446c850986d0b1
2015-12-09 09:59:39 -05:00
Yin-Chia Yeh
96621f879e Merge "Camera: add HAL 3.4 declaration" 2015-12-09 01:45:15 +00:00
David Zeuthen
45131be338 libhardware: boot_control: Clarify documentation for isSlotBootable().
The documentation for this method is clearly wrong and it confused
several implementors.

Change-Id: I0427abcf87d0c8955ea1168513e6b9ab85380bf2
2015-12-08 13:16:55 -05:00
Yin-Chia Yeh
3e0b5f65c6 Camera: add HAL 3.4 declaration
Bug: 26070606
Change-Id: I4768da5564eee28e24f8d7393e0544222675d833
2015-12-07 16:31:09 -08:00
Alexander Levitskiy
88912559e8 Merge "Fingerprint: Change enumerate() to asynchronous mode." 2015-12-04 17:40:13 +00:00
Eino-Ville Talvala
d4392024d2 Camera: Mark camera HAL device v2.x as unsupported
Device HAL v2.x is obsolete, and no devices using it are still
supported. Mark it unsupported, and clean up native tests.

Bug: 25866588
Change-Id: I8e0f1448b8ae0eaaf3714f2351746af46c7657a7
2015-11-30 10:20:57 -08:00
Wonsik Kim
d15399e13d tv_input: add signal detection flag to stream config
Bug: 23820259
Change-Id: I693f159b35192e14182cb3bc9082b2445c129560
2015-11-30 16:36:48 +09:00
Shawn Willden
20e4f8ea3b Merge "ECIES: adding ECIES-KEM" am: 3aa7935ef2 am: 7adb2d457c
am: 2eef78d355

* commit '2eef78d355c62f3e1b5ec626a080a7e3f91257c9':
  ECIES: adding ECIES-KEM
2015-11-23 16:36:47 +00:00
Shawn Willden
7adb2d457c Merge "ECIES: adding ECIES-KEM"
am: 3aa7935ef2

* commit '3aa7935ef24946c1aa6db6c04fea10f39453c450':
  ECIES: adding ECIES-KEM
2015-11-23 16:30:51 +00:00
Thai Duong
40d59c8155 ECIES: adding ECIES-KEM
Change-Id: Iea5877eba0a9b13610d3d1b33d04b5657edc3550
2015-11-23 06:41:33 -07:00
Colin Cross
02b22a6658 Merge "Vibrator: clarify the API" am: 8447aed332
am: 1dc2265379

* commit '1dc2265379c7d0bb86f25b3b6bd345635728ea49':
  Vibrator: clarify the API
2015-11-18 17:55:23 +00:00
Colin Cross
1dc2265379 Merge "Vibrator: clarify the API"
am: 8447aed332

* commit '8447aed33271c3f53849923327d6cfa3f4999e09':
  Vibrator: clarify the API
2015-11-17 19:53:02 +00:00
Colin Cross
8447aed332 Merge "Vibrator: clarify the API" 2015-11-17 19:31:22 +00:00
Sanket Agarwal
fb63668a8a Add vehicle hal.
- vehicle hal is used for supporting car specific features.
- Each property can be written (=set), read (=get), or subscribed.
- Each property has configuration informaiton to tell what that property
  is and how it can be accessed.
- also adding dummy hal implementation.

bug: 25183740

Change-Id: Ib1cc1c11540f156db73552f2a18a8efb361002af
2015-11-13 11:50:54 -08:00
Sasha Levitskiy
c7ffe16a62 Fingerprint: Change enumerate() to asynchronous mode.
Bug: 25244240
Change-Id: If337241594b8c52737a14d476c1db96930b62a48
2015-10-28 16:55:00 -07:00
Aravind Akella
493babb500 am 87f61413: am 29b03118: am 1ce7fe6b: Merge "Fix DATA_INJECTION flag in sensors.h" into mnc-dr-dev
* commit '87f6141397bb0e0c58926e365d9292f7951727f8':
  Fix DATA_INJECTION flag in sensors.h
2015-10-14 21:23:54 +00:00
Aravind Akella
87f6141397 am 29b03118: am 1ce7fe6b: Merge "Fix DATA_INJECTION flag in sensors.h" into mnc-dr-dev
* commit '29b0311870b151fb93420ac0844b87855346a807':
  Fix DATA_INJECTION flag in sensors.h
2015-10-14 21:19:58 +00:00
Aravind Akella
1ce7fe6b0a Merge "Fix DATA_INJECTION flag in sensors.h" into mnc-dr-dev 2015-10-14 21:03:13 +00:00
Michael Wright
b98b64cde7 am 87dd6051: am 70097605: am 147d5404: Define the data parameter for POWER_HINT_INTERACTION.
* commit '87dd60511708ce125efce3566a599518779d561b':
  Define the data parameter for POWER_HINT_INTERACTION.
2015-09-22 20:05:51 +00:00
Michael Wright
87dd605117 am 70097605: am 147d5404: Define the data parameter for POWER_HINT_INTERACTION.
* commit '7009760593d457902fed7d90fe924cf20f3d0604':
  Define the data parameter for POWER_HINT_INTERACTION.
2015-09-22 18:35:25 +00:00
Michael Wright
147d5404f5 Define the data parameter for POWER_HINT_INTERACTION.
Change-Id: I86857c1ea92082de109c612080e47c9c9835726b
2015-09-16 23:36:12 +01:00
Aravind Akella
2d6c8d7e90 Fix DATA_INJECTION flag in sensors.h
Bug: 24001171
Change-Id: Ia42934a97566f0ebe8d324e065351a3d9ed55621
2015-09-11 11:34:17 -07:00
Dan Stoza
5afb59f3da am fc0475db: am 5cdefc7b: am 95f01799: HWC: Add a color transform attribute per display
* commit 'fc0475db926b0ab5a621937ea563a4c40630a4d8':
  HWC: Add a color transform attribute per display
2015-09-04 14:28:00 +00:00
Dan Stoza
fc0475db92 am 5cdefc7b: am 95f01799: HWC: Add a color transform attribute per display
* commit '5cdefc7b6fedac0b84bf78aa8d695a7d34c042b1':
  HWC: Add a color transform attribute per display
2015-09-04 02:21:33 +00:00
Dan Stoza
95f017990b HWC: Add a color transform attribute per display
Adds a color transform option to the queryable display attributes,
which allows a different vendor-specific color transform (e.g., wide
gamut, sRGB, etc.) per display configuration. This does not increase the
HWC version, and is considered a part of HWC 1.5, though if
getDisplayAttributes returns an error code as a result of being passed
an unsupported attribute, the call will be retried without the new color
transform option.

Bug: 20853317
Change-Id: Iab1605bc073ed4caa780e55ddf396efeeff3aff1
2015-08-31 13:36:06 -07:00
Daniel Rosenberg
5d71554e3b am c3d6d3fa: am 92290228: am fef6638e: Merge "boot: Add a boot_control HAL"
* commit 'c3d6d3fa75b32f3faae82930ebf425cfc4ed9084':
  boot: Add a boot_control HAL
2015-08-28 21:43:56 +00:00
Daniel Rosenberg
92290228f9 am fef6638e: Merge "boot: Add a boot_control HAL"
* commit 'fef6638e82a8b3140f45e7ce410ad72609821142':
  boot: Add a boot_control HAL
2015-08-28 21:24:51 +00:00
Rom Lemarchand
a13a426a7d boot: Add a boot_control HAL
The purpose of the boot control HAL is to communicate with the
bootloader and set various flags letting the bootloader know which
partition to boot

Change-Id: I15178abaaf9ca208b1e5300c9207cedbb7950a88
2015-08-28 13:45:41 -07:00
Chad Brubaker
a3c0ae16ac Fix benign unsigned overflow
On the last check of the conditional param_count-- causes an unsigned
wrap around. This isn't incorrect but does lead to a false positive with
fsanitize unsigned-integer-overflow

Change-Id: If3eb7a9e248d0404a434de2ead70e8c099e84ddf
2015-08-12 12:46:44 -07:00
Ajay Panicker
bc7ec00f5e am aaaebe2a: am a7897020: am b3759712: Implement Bluetooth settings factory reset (4/5)
* commit 'aaaebe2aa5efdf5bfba2dd22486994c9bee31816':
  Implement Bluetooth settings factory reset (4/5)
2015-08-05 20:35:33 +00:00
Ajay Panicker
b3759712b0 Implement Bluetooth settings factory reset (4/5)
Implemented the factory reset function to be used to reset all bluetooth
settings on device to factory default

Bug: 16161518
Change-Id: I69358db95582ddd0f2f640f76cf0931f797d369b
2015-08-04 15:14:03 -07:00
Jim Miller
cd003aee3e am 7da2c5fe: am 3fabfd8e: am 929e0a19: Add better documentation to fingerprint.h
* commit '7da2c5fe2a17ad2216a5c6d18561e3932bc741f9':
  Add better documentation to fingerprint.h
2015-07-28 23:45:23 +00:00
Jim Miller
929e0a194e Add better documentation to fingerprint.h
Some vendors are confused by the use of errors vs acquired messages
This adds documentation on how they should be used.

Fixes bug 22728578

Change-Id: I5e6a8f7b159ec331a59202fa64b7320e43661429
2015-07-28 22:01:41 +00:00
Tim Kilbourn
5b5e7282cd Merge "MouseInputMapper" 2015-07-28 21:49:23 +00:00
Tim Kilbourn
864984c3b1 MouseInputMapper
Maps relative movements of a mouse or scroll wheel and mouse button
presses. All other logic from CursorInputMapper will be handled in the
host.

Change-Id: I00a966a6194d4810b7b6ac5cc815287ecf7dfb84
2015-07-28 13:21:10 -07:00
Shawn Willden
d0d00c9eab am 25bff5c7: am afac8dd6: am 70335f3d: Correct keymaster1 documentation.
* commit '25bff5c76efcac69b2773ff48392a9626149838f':
  Correct keymaster1 documentation.
2015-07-27 21:34:45 +00:00
Alex Klyubin
d79cc6d1b9 am a6ab9737: am f9df59a7: Merge "Add KM_TAG_MIN_MAC_LENGTH." into mnc-dev
* commit 'a6ab97371cdf0361c7ec4c799841e4b8e3eb50cd':
  Add KM_TAG_MIN_MAC_LENGTH.
2015-07-23 20:26:59 +00:00
Shawn Willden
70335f3d30 Correct keymaster1 documentation.
Bug: 22291207
Change-Id: I130d2ab2110321dc2228d41a154750da3a3f0b75
2015-07-23 12:54:15 -06:00
Shawn Willden
a3f0ab55a7 Add KM_TAG_MIN_MAC_LENGTH.
This allows the binding of minimum length for MACs or tags to HMAC keys
and AEAD symmetric keys.  Later attempts to use these keys with a
shorter MAC or tag specification (provided to begin() with
KM_TAG_MAC_LENGTH) will fail with KM_ERROR_INVALID_MAC_LENGTH.

Bug: 22337277
Change-Id: Ic5292ce01bdd6ecde25aad115e4b407aadc85f23
2015-07-15 10:07:59 -06:00
Shawn Willden
3d3a479253 Fix extern "C" guards.
Cherry-pick from internal.

Change-Id: I11ed50352865a099c3040a1558a48960ae7db416
2015-07-08 09:40:54 -06:00
Sasha Levitskiy
bc4ac88800 am 669288c5: am a36ffbe0: Fingerprint: Add post_enroll() API, adapt struct for binary compatibility, doc change.
* commit '669288c53b0e38a135670827720745d3707a93e6':
  Fingerprint: Add post_enroll() API, adapt struct for binary compatibility, doc change.
2015-07-01 00:18:53 +00:00
Sasha Levitskiy
a36ffbe0bb Fingerprint: Add post_enroll() API, adapt struct for binary compatibility, doc change.
Change-Id: If7e5738f921b0e91e46efc813d9f3c4bd1502832
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-06-26 15:10:20 -07:00
Shawn Willden
f6e1ec3a47 Rename keymaster tag types to clarify that integers are unsigned.
Bug: 22008538
Change-Id: I699a0f03aaf0f9f49a78b310763364fc2fb34c90
2015-06-24 22:31:51 -06:00
Shawn Willden
9b9376ef54 Add new error codes for rate-limit and max-use failures.
Bug: 21607106
Change-Id: I2e5515efe51b84200ade8c4c4cc5db3800d4b658
2015-06-24 21:29:25 -06:00
Shawn Willden
e1bce9625e Update comments on now-unsed user ID and app ID tags.
I'd just remove them but Trusty keymaster has been generating keys with
KM_TAG_ALL_USERS and KM_TAG_ALL_APPLICATIONS, so removing them without
breaking those keys is tricky.  Plus I think they may come back.

Bug: 21845167
Change-Id: I3b807e3e4bee64eba72b7fa6f1ee1929c4ca9dd0
2015-06-24 21:29:07 -06:00
Shawn Willden
b1d948edec Remove KM_TAG_AEAD_TAG.
Bug: 19919114
Change-Id: I06fdd0f9b8e247587d800031d3367078423baa50
2015-06-24 21:21:54 -06:00
Shawn Willden
ca4290b946 am de2c43f8: am 12fff70f: Merge "Revert "Revert "Rename keymaster tag types to clarify that integers are unsigned.""" into mnc-dev
* commit 'de2c43f8847849fc044c92b24f5f4b48391604d5':
  Revert "Revert "Rename keymaster tag types to clarify that integers are unsigned.""
2015-06-25 00:32:09 +00:00
Shawn Willden
12fff70fbd Merge "Revert "Revert "Rename keymaster tag types to clarify that integers are unsigned.""" into mnc-dev 2015-06-24 22:43:58 +00:00
Shawn Willden
29d3e9cf5c am f75c57a8: am f9232031: Merge "Revert "Rename keymaster tag types to clarify that integers are unsigned."" into mnc-dev
* commit 'f75c57a808a70228c7fe8a3bff2f790c9ec2b9f1':
  Revert "Rename keymaster tag types to clarify that integers are unsigned."
2015-06-24 21:31:48 +00:00
Shawn Willden
fbb0dfdf93 am 14fe770e: am 6563afa4: Merge "Rename keymaster tag types to clarify that integers are unsigned." into mnc-dev
* commit '14fe770e2b86a186898b19de53a33d2290978987':
  Rename keymaster tag types to clarify that integers are unsigned.
2015-06-24 21:08:22 +00:00
Shawn Willden
fe6bcfa71d Revert "Revert "Rename keymaster tag types to clarify that integers are unsigned.""
This reverts commit 1fb6c227de.

Change-Id: Iccc8a7ff40a694b1e4420a5de4b847e62289ff42
2015-06-24 20:59:14 +00:00
Shawn Willden
f9232031b2 Merge "Revert "Rename keymaster tag types to clarify that integers are unsigned."" into mnc-dev 2015-06-24 20:53:20 +00:00
Shawn Willden
1fb6c227de Revert "Rename keymaster tag types to clarify that integers are unsigned."
This reverts commit 335920edae.

Change-Id: Ib65f744b93ad2b62d5848dcf743397124a08911b
2015-06-24 20:52:32 +00:00
Shawn Willden
6563afa40b Merge "Rename keymaster tag types to clarify that integers are unsigned." into mnc-dev 2015-06-24 20:28:38 +00:00
Shawn Willden
335920edae Rename keymaster tag types to clarify that integers are unsigned.
Bug: 22008538
Change-Id: I699a0f03aaf0f9f49a78b310763364fc2fb34c90
2015-06-24 13:26:52 -07:00
Andres Morales
eded79189a am 1209f36d: am f8b5a37e: Merge "hardware: gatekeeper: Add delete and delete_all api\'s" into mnc-dev
* commit '1209f36dc51ff5933af4b2b4bea43e928153a4d6':
  hardware: gatekeeper: Add delete and delete_all api's
2015-06-24 18:34:02 +00:00
Andres Morales
f8b5a37ef9 Merge "hardware: gatekeeper: Add delete and delete_all api's" into mnc-dev 2015-06-24 18:06:19 +00:00
Aravind Akella
983c943c81 am 730c0797: am 077d3542: Merge "Define a flag for whether a sensor supports data_injection mode or not." into mnc-dev
* commit '730c0797e5fa8127bd31c4d78a12230cac1d6829':
  Define a flag for whether a sensor supports data_injection mode or not.
2015-06-23 23:18:18 +00:00
Aravind Akella
077d354252 Merge "Define a flag for whether a sensor supports data_injection mode or not." into mnc-dev 2015-06-23 22:24:38 +00:00
Naveen Ramaraj
76b43f9e41 hardware: gatekeeper: Add delete and delete_all api's
Add delete and delete_all api for gatekeeper.

Change-Id: I0511cb546ecba54b2a60692d6f704f24c55aa940
2015-06-23 13:18:52 -07:00
Aravind Akella
c7f54134ca Define a flag for whether a sensor supports data_injection mode or not.
Change-Id: I46373bbd2e10859b84428fe32b76679ac4292607
2015-06-22 18:26:54 -07:00
Shawn Willden
1d4c872c3c am bdea0d2b: am 396d6cbc: Add new error codes for rate-limit and max-use failures.
* commit 'bdea0d2bc30bd2aca568c1135c8d9862e6a1a1d3':
  Add new error codes for rate-limit and max-use failures.
2015-06-19 16:25:00 +00:00
Shawn Willden
1f437b5ee3 am d2584ca4: am 7ac0c0f5: Update comments on now-unsed user ID and app ID tags.
* commit 'd2584ca4e4effc306ed77fed7fe100c728b11d2d':
  Update comments on now-unsed user ID and app ID tags.
2015-06-19 14:11:08 +00:00
Shawn Willden
b9bbb8ebd9 am ddbf941a: am da89dde9: Remove KM_TAG_AEAD_TAG.
* commit 'ddbf941aad84209b9413114171cd8bbd5955a139':
  Remove KM_TAG_AEAD_TAG.
2015-06-19 14:11:07 +00:00
Shawn Willden
396d6cbce9 Add new error codes for rate-limit and max-use failures.
Bug: 21607106
Change-Id: I2e5515efe51b84200ade8c4c4cc5db3800d4b658
2015-06-18 21:20:47 -06:00
Shawn Willden
7ac0c0f5ad Update comments on now-unsed user ID and app ID tags.
I'd just remove them but Trusty keymaster has been generating keys with
KM_TAG_ALL_USERS and KM_TAG_ALL_APPLICATIONS, so removing them without
breaking those keys is tricky.  Plus I think they may come back.

Bug: 21845167
Change-Id: I3b807e3e4bee64eba72b7fa6f1ee1929c4ca9dd0
2015-06-18 12:20:32 -06:00
Shawn Willden
da89dde978 Remove KM_TAG_AEAD_TAG.
Bug: 19919114
Change-Id: I06fdd0f9b8e247587d800031d3367078423baa50
2015-06-18 12:19:03 -06:00
Eino-Ville Talvala
37710d0771 am 1c218f6e: am 8e350b1a: Merge "Camera3: Document behavior of flush() corner cases." into mnc-dev
* commit '1c218f6ec46a7c4ff381ed89edd6d9aa4e93828b':
  Camera3: Document behavior of flush() corner cases.
2015-06-12 23:20:17 +00:00
Eino-Ville Talvala
8e350b1a1d Merge "Camera3: Document behavior of flush() corner cases." into mnc-dev 2015-06-12 22:47:38 +00:00
Shawn Willden
a39ce12db8 Remove KM_TAG_CHUNK_LENGTH and add KM_TAG_AEAD_TAG
Bug: 19919114
Change-Id: I384f3d2fee2f68279c6518d9ac0a79e29bed0e52
2015-06-11 09:10:50 -06:00
Shawn Willden
75a885f500 Add output params to update() and finish().
Also, change signatures of several methods to pass structs rather than
array pointers and lengths.

Change-Id: Iaa1be186ebbd444202c47926ab57ac65d57416d7
2015-06-11 09:10:40 -06:00
Shawn Willden
b50083e235 Fix block mode numbering (CTR got added as 4 rather than 3)
Change-Id: I8c886c67ba081255ef18eb0f99ca1e6003fabb33
2015-06-11 09:10:32 -06:00
Sasha Levitskiy
13acd87252 am be94ff37: am d4331fda: Fingerprint: Avoid passing structures where simple types should suffice.
* commit 'be94ff37fda0309ef58d0499b305137dd634ac53':
  Fingerprint: Avoid passing structures where simple types should suffice.
2015-06-11 01:33:28 +00:00
Eino-Ville Talvala
85fdb3ff7d Camera3: Document behavior of flush() corner cases.
Document how HAL should operate when process_capture_request is
called while a flush() call is active.

Bug: 21506384
Change-Id: Ic1842add68123432e49914e83d8f7d5c13d6650d
2015-06-10 14:58:32 -07:00
Sasha Levitskiy
d4331fdae5 Fingerprint: Avoid passing structures where simple types should suffice.
Bug: 21282699

Change-Id: I02e13b7da0ad361a95b981f9745aac039151f356
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-06-10 14:10:47 -07:00
Satya Calloji
47565882c7 LE low power scan feature
LE low power extended scan feature header changes
based on Google spec v0.95

Bug: 20029342
Change-Id: Id1020a4da177d0bc421fdd123c5355a291cc0475
2015-06-10 20:46:51 +00:00
Tim Kilbourn
e8ee0c3ee0 Merge "Initial InputMappers for evdev input HAL." 2015-06-10 16:38:44 +00:00
Casper Bonde
5ccdc518ab SAP: Make it possible to enforce a 16-digit pin code (2/5)
This change enable the posibility to enforce using a
16-digit pin or MITM for a RFCOMM or L2CAP connection.

This is needed for the SIM access profile.

Change-Id: I4d43eefa76e8abc1bcfad6dfd9004d8e82168bf4
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
2015-06-09 13:57:53 -07:00
Tim Kilbourn
4f3145d75f Initial InputMappers for evdev input HAL.
The previous design of the InputHost wrapper classes made it very
painful to do testing, so this change also reverts to a more classical
C++ pattern for non-copyable objects. The InputHost classes still simply
call through to the input_host_t and callbacks as before.

Updated unittests to use gmock for mocking the InputHost interactions.

Change-Id: I4b70df2c89ed48af77446b8f5b87a4bde94510bf
2015-06-09 11:16:04 -07:00
Sasha Levitskiy
a70ab95eea Fingerprint: Remove unused API elements.
Change-Id: Iba2f6a5bc7a2923c3e9b92684a2fab2190f14fd5
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-06-08 14:00:39 -07:00
Andre Eisenbach
9a83650cef Bluetooth native dumpsys logging support (1/5)
Bug: 18508263
Change-Id: Id7b69a6ed7d817a0f048cb8ebf0889c600171926
2015-06-08 00:07:51 -07:00
Chien-Yu Chen
c88122614c Merge "Camera: Update for torch callbacks" into mnc-dev 2015-06-03 21:02:00 +00:00
Chien-Yu Chen
5c6230ebf6 Camera: Update for torch callbacks
Clarify that HAL shouldn't send AVAILABLE_OFF in addition to
NOT_AVAILABLE when open() is called.

Update the comments to use the right torch status enums.

Bug: 21475390
Change-Id: If9adf4bd169048fc9760ef504d3a36414cfbb196
2015-06-03 13:59:39 -07:00
Dan Stoza
9181f6da9e gralloc: Sort usage flags
Sorts the usage flags in increasing order so it's easier to see where
the gaps are.

Bug: 21609491
Change-Id: I98af3c67be84c6c5137767f3cd7a8bd63dfb5c03
(cherry picked from commit fd2d859445)
2015-06-03 11:03:26 -07:00
Chong Zhang
07cc032570 libhardware: fix gralloc usage bit redefine
bug: 21584171
Change-Id: I66c287681d3e53a263f85fbddfccbb199eaa4b33
(cherry picked from commit 2e3ed7e2e7)
2015-06-03 11:02:59 -07:00
Dan Stoza
fd2d859445 gralloc: Sort usage flags
Sorts the usage flags in increasing order so it's easier to see where
the gaps are.

Bug: 21609491
Change-Id: I98af3c67be84c6c5137767f3cd7a8bd63dfb5c03
2015-06-03 10:42:38 -07:00
Shawn Willden
7eaa15ffa6 Fix extern "C" guards.
Change-Id: Ibc8e023e3712903dbcbfac5fc64223e32775fe40
2015-06-03 09:03:20 -06:00
Shawn Willden
cbc5834cc7 Merge "Remove KM_TAG_CHUNK_LENGTH and add KM_TAG_AEAD_TAG" into mnc-dev 2015-06-03 05:37:48 +00:00
Shawn Willden
b248e7125b Merge "Fix block mode numbering (CTR got added as 4 rather than 3)" into mnc-dev 2015-06-03 05:30:18 +00:00
Shawn Willden
f291adb593 Merge "Add output params to update() and finish()." into mnc-dev 2015-06-03 05:21:57 +00:00
Casper Bonde
3e4c2dc183 Add support for MITM for BluetoothSockets (3/4)
This change adds an option to enforce Man-in-the-middle protection
for the authentication process. This feature is needed for the Sim
Access Profile.

Change-Id: I35d22a516ecbfc011ed13d7cb7d2ebda047fdfad
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
2015-06-03 03:44:17 +00:00
Chong Zhang
cac8ab8abc Merge "libhardware: fix gralloc usage bit redefine" into mnc-dev 2015-06-03 02:23:31 +00:00
Chong Zhang
2e3ed7e2e7 libhardware: fix gralloc usage bit redefine
bug: 21584171
Change-Id: I66c287681d3e53a263f85fbddfccbb199eaa4b33
2015-06-02 19:00:11 -07:00
Casper Bonde
207331d050 SAP: Change to use new SDP Api (3/4)
Added struct to carry SAP SDP record data.

Change-Id: I511a8de39a6d750e3e94bee72f48b3356ce6cd02
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
2015-06-02 17:00:50 -07:00
Shawn Willden
4144c64818 Remove KM_TAG_CHUNK_LENGTH and add KM_TAG_AEAD_TAG
Bug: 19919114
Change-Id: I384f3d2fee2f68279c6518d9ac0a79e29bed0e52
2015-06-02 09:01:30 -06:00
destradaa
f19ee6b70d Merge "Pack AGpsStatus data structures for 64-bit platforms. b/21471818" into mnc-dev 2015-06-01 21:13:10 +00:00
destradaa
6f8f5c5f40 Pack AGpsStatus data structures for 64-bit platforms.
b/21471818

The packing of AGpsStatus_v1 ensures that its size does not collide with
the size of AGpsStatus_v2.

Change-Id: Ic73a73070c29c0e819cb62667bc14333f448e856
2015-06-01 14:05:51 -07:00
Shawn Willden
4c19a3af35 Fix block mode numbering (CTR got added as 4 rather than 3)
Change-Id: I8c886c67ba081255ef18eb0f99ca1e6003fabb33
2015-06-01 14:52:54 -06:00
Shawn Willden
024a15265c Add output params to update() and finish().
Also, change signatures of several methods to pass structs rather than
array pointers and lengths.

Change-Id: Iaa1be186ebbd444202c47926ab57ac65d57416d7
2015-06-01 14:52:54 -06:00
Dan Stoza
44ddf4208a gralloc: Add foreign buffer usage flag
Adds GRALLOC_USAGE_FOREIGN_BUFFERS, which a consumer may set as a usage
flag if it intends to attach buffers that it has not detached from the
BufferQueue. It provides a hint to the producer (who may query the
consumer usage bits) that it may receive a buffer from another
BufferQueue, so that it can exit during initialization, hopefully with a
meaningful error message, if such buffers are not supported.

Also adds GRALLOC_USAGE_ALLOC_MASK, which is applied to usage bits
before calling alloc on the gralloc module, and prevents the module from
seeing GRALLOC_USAGE_FOREIGN_BUFFERS, since that usage flag is of no use
while allocating buffers.

Bug: 19801661
Change-Id: I17b927de94245f4df7cfd3f4483b544da3e9cd35
(cherry picked from commit 201c7d91b7)
2015-06-01 11:19:30 -07:00
Chien-Yu Chen
bbbcd516a3 Merge "Camera3: SHUTTER event for reprocessing" into mnc-dev 2015-06-01 17:25:43 +00:00
Chien-Yu Chen
73b49ebbf4 Camera3: SHUTTER event for reprocessing
Clarify that the SHUTTER event should be sent when HAL
start processing a reprocess request but the timestamp
should be the input image's start of exposure.

Bug: 21112186
Change-Id: I5bd32b749adc5e82e9a311ec4b123fd807a30d36
2015-06-01 10:21:16 -07:00
Dan Stoza
201c7d91b7 gralloc: Add foreign buffer usage flag
Adds GRALLOC_USAGE_FOREIGN_BUFFERS, which a consumer may set as a usage
flag if it intends to attach buffers that it has not detached from the
BufferQueue. It provides a hint to the producer (who may query the
consumer usage bits) that it may receive a buffer from another
BufferQueue, so that it can exit during initialization, hopefully with a
meaningful error message, if such buffers are not supported.

Also adds GRALLOC_USAGE_ALLOC_MASK, which is applied to usage bits
before calling alloc on the gralloc module, and prevents the module from
seeing GRALLOC_USAGE_FOREIGN_BUFFERS, since that usage flag is of no use
while allocating buffers.

Bug: 19801661
Change-Id: I17b927de94245f4df7cfd3f4483b544da3e9cd35
2015-05-29 19:52:34 +00:00
Zhijun He
21126b78e3 camera3: add camera3 stream configuration mode
This will be used for creating high speed capture session.

Bug: 21442271
Change-Id: I51feaec83de3d402decca7e4da79be85844536b4
2015-05-28 15:24:56 -07:00
Andres Morales
c65adc73e3 add request re-enroll to HAL API
devices may want to request an upgrade to a newer pasword
handle version

Change-Id: I34c731c81406e29961cff1fcccdefad02cff1237
2015-05-27 01:35:20 +00:00
Andres Morales
1cab2bf7e8 add request re-enroll to HAL API
devices may want to request an upgrade to a newer pasword
handle version

Change-Id: I34c731c81406e29961cff1fcccdefad02cff1237
2015-05-21 11:11:57 -07:00
Andres Morales
624ae04e60 [gatekeeper] document timeout requirements
GateKeeper may throttle the user, document the return
value of calls in this case.

No code changes.

Bug:21118563
Change-Id: Idd6c392d01c22627f828d86dd219a4a1d6e81439
2015-05-19 18:15:37 +00:00
Sasha Levitskiy
c32baff996 Merge "Fingerprint: Clean up documentaion for template delete." into mnc-dev 2015-05-16 17:47:00 +00:00
Sasha Levitskiy
0a544125ca Fingerprint: Clean up documentaion for template delete.
Change-Id: Ibe991d5f5e4bb77a859284a8f890a6bccc663448
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-05-15 15:46:47 -07:00
Andres Morales
d792aa6a88 Merge "[gatekeeper] document timeout requirements" into mnc-dev 2015-05-15 22:24:56 +00:00
Andres Morales
cca930dd7c [gatekeeper] document timeout requirements
GateKeeper may throttle the user, document the return
value of calls in this case.

No code changes.

Bug:21118563
Change-Id: Idd6c392d01c22627f828d86dd219a4a1d6e81439
2015-05-14 13:08:15 -07:00
Sasha Levitskiy
e0a2988b82 Fingerprint: Add enumerate function to FP HAL
Change-Id: I4a1da563a96a1e097ea56e0dced8c02820aa8485
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-05-12 16:35:15 -07:00
Andre Eisenbach
34ab95a369 Bluetooth native dumpsys logging support (1/5)
Bug: 18508263
Change-Id: Id7b69a6ed7d817a0f048cb8ebf0889c600171926
2015-05-12 15:56:10 +00:00
Shawn Willden
fb769fc312 Add KM_TAG_BOOTLOADER_ONLY.
Change-Id: Ia507a1378487640683985dbce2e76679261900d3
(cherry picked from commit 3eed99a54b)
2015-05-12 12:09:56 +00:00
Shawn Willden
57c93875e8 Add KM_TAG_BOOTLOADER_ONLY.
Change-Id: Ia507a1378487640683985dbce2e76679261900d3
2015-05-12 11:46:02 +00:00
Shawn Willden
9b31a49c36 Remove rescoping.
Rescoping was never a very good solution to the problem of supporting
multiple sets of authorizations for a given key material.  For M we're
removing it and in the future a better solution will be provided.

Change-Id: I6f7585274487bd66e4d90e89014af41e9aa30411
(cherry picked from commit 7f10ab99fc)
2015-05-12 11:29:27 +00:00
Shawn Willden
35ee53cc5c Remove rescoping.
Rescoping was never a very good solution to the problem of supporting
multiple sets of authorizations for a given key material.  For M we're
removing it and in the future a better solution will be provided.

Change-Id: I6f7585274487bd66e4d90e89014af41e9aa30411
2015-05-11 07:06:01 -06:00
Sasha Levitskiy
7eb7235c33 Fingerprint: Add storage path to set_active_group()
Change-Id: Ic6e7ad21cd3a253a38a6291bf08517c7e441af2b
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-05-07 19:25:00 -07:00
Prerepa Viswanadham
f0254aa0a0 Merge commit '5122502' into master_merge 2015-05-01 10:57:25 -07:00
Shawn Willden
4bdd7cbd47 Add KM_ERROR_CALLER_NONCE_PROHIBITED error code.
Bug: 20127433
Change-Id: I32eab62459003c526d3cf9ef108be7b2fd709960
2015-04-29 22:33:35 -06:00
destradaa
8153488b70 Update documentation related to A-GPS modes.
MS-Assisted has only be supported for legacy reasons for a while now.
This change moves gps.h in a direction where MS-Based (on device
computation with AGPS/Supl support) is the preferred mode to compute
locations in the device.

Change-Id: Id34a84bae79be52a435b78d249fb5b86a5f6b090
2015-04-28 13:10:56 -07:00
Shawn Willden
ca26b0056c Add KM_ERROR_CALLER_NONCE_PROHIBITED error code.
Bug: 20127433
Change-Id: I32eab62459003c526d3cf9ef108be7b2fd709960
2015-04-28 00:00:27 -06:00
Andres Morales
ec833bf3e4 Add gatekeeper HAL 2015-04-27 17:00:17 +00:00
kschulz
43d3443ce2 L2CAP and SDP Search API for BT profiles (1/2)
Added interface to create SDP records, to allow the upper
layers to set the content of the SDP record, including
both a RCFOMM channel and a l2cap PSM.

Change-Id: I7c47848a10b3d3091afbeadb4de8a8d7ea812288
2015-04-23 12:42:32 -07:00
Satya Calloji
807a994719 Incorrect RSSI value in onlost/onfound
Fix for signed value in onlost/onfound

Bug: 19891550
Change-Id: Idee4c566fe0d6f10a87c92f5bf03743fddbe2261
2015-04-23 12:42:32 -07:00
Satya Calloji
41121c80c5 OnFound/OnLost feature API changes based on spec v0.90
Bug: 19609671
Change-Id: Id28e188159aa41c940723fb5b12cade0a48e506b
2015-04-23 12:42:32 -07:00
Satya Calloji
51225020dc LE low power scan feature
LE low power extended scan feature header changes
based on Google spec v0.95

Bug: 20029342
Change-Id: Id1020a4da177d0bc421fdd123c5355a291cc0475
2015-04-17 14:27:17 -07:00
Sasha Levitskiy
468b567316 Fingerprint: Add an API to get authenticator id
Change-Id: If45ebc228425eaa43bf9abde934f8bb4e7d97e6c
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-04-16 21:52:28 +00:00
Tim Kilbourn
6fa82480ae Add input HAL methods for getting device properties.
A property map holds the collection of the properties for a given
device identifier. HAL modules allocate and release these property maps
to control the lifetime of the data. The host will typically open and
read the corresponding idc file on allocation, and release these
resources when it is freed.

Change-Id: Ia13ec7b7abf1a79eeed87dc744c174a37f1fb8a9
2015-04-16 13:21:39 -07:00
Eino-Ville Talvala
7771e6c521 Merge "Camera: Add HAL module init method." 2015-04-16 16:25:05 +00:00
Ashutosh Joshi
7779bc0038 Merge "Remove custome sensors from sensors.h" 2015-04-16 03:21:03 +00:00
Vinit Deshpande
edd5aa91b9 am 9a92a7b..9a92a7b from mirror-m-wireless-internal-release
9a92a7b L2CAP and SDP Search API for BT profiles (1/2)
2015-04-15 20:12:43 -07:00
Eino-Ville Talvala
aee4782839 Camera: Add HAL module init method.
For use by Camera HAL libraries to perform one-time initialization
steps after the library is loaded.

Bug: 20016050
Change-Id: Ia01ae0eafcadece9124ac2cfcc3b1c3939352843
2015-04-15 17:26:13 -07:00
Ashutosh Joshi
050f2e45a0 Remove custome sensors from sensors.h
Custom sensors should not be included in sensors.h

Change-Id: I553fbe3dd41eaaa70628184f5a0b9499699f17bc
2015-04-15 14:47:43 -07:00
Dan Stoza
6b46cc59ce am 7ff6445c: am 8fcb7ee2: Merge "HWC 1.5: Add per-layer damage region"
* commit '7ff6445c7ae2c1f66dda17f5a5ee5ba53f23d796':
  HWC 1.5: Add per-layer damage region
2015-04-15 21:42:46 +00:00
Dan Stoza
8fcb7ee243 Merge "HWC 1.5: Add per-layer damage region" 2015-04-15 20:35:49 +00:00
destradaa
33642b9c57 Merge "Complete updates to gps.h to enhance the definition of GPS Measurements interface. b/19938206" 2015-04-14 23:56:45 +00:00
destradaa
357e6222b7 Complete updates to gps.h to enhance the definition of GPS Measurements interface.
b/19938206

Change-Id: I9dc863e9333507d5603eee3951b0a2b7c8c2b299
2015-04-14 16:30:21 -07:00
Sasha Levitskiy
b8f401ab1c Merge "Fingerprint: Add auth token to enroll" 2015-04-14 22:52:52 +00:00
Sasha Levitskiy
6eced703e6 Fingerprint: Add auth token to enroll
Change-Id: Ied10a03213b8473b1a625229a75b7af6126d635a
2015-04-14 15:25:08 -07:00
Ashutosh Joshi
19f3fa8717 Merge "Sensors HAL changes" 2015-04-14 22:15:16 +00:00
Ashutosh Joshi
6507f5080b Sensors HAL changes
Adding HAL changes for the following
i) a method to place the HAL in a special mode.
     Expect to use this method for data-injection.
ii) a method to inject sensor data into the sensors subsystem.
iii) New sensor type for a SYNC event (google custom sensor).
iv)  New sensor type for a nudge gesture (google custom sensor).

Change-Id: Idf0479b6301c5363cf51938e23aabc790b69fa96
2015-04-14 15:11:49 -07:00
destradaa
00caa89ca3 Make updates gps.h to enhance the definition of GPS Measurements interface.
b/19938206

The changes have been worked out after working with two partners to implement the interface.
The need of the additional flag is required, given that each partner can only provide one type of
pseudorange rate (corrected vs uncorrected).

Change-Id: I2d3bdffe5c24f8df97b33111a6753cc7b0f2b3d9
2015-04-14 11:44:27 -07:00
Shawn Willden
50e1759db4 am 6c93927d: am 4827279c: Merge "Add KM_ORIGIN_UNKNOWN."
* commit '6c93927dd390abcf0e6254a38ef2c0f14fc1a51e':
  Add KM_ORIGIN_UNKNOWN.
2015-04-14 18:23:44 +00:00
David Christie
4b49035055 Add ability to flush FLP HAL batched locations buffer.
Currently GmsCore has to guess how many locations to retrieve
based on requested frequency and then demux the output looking
for timestamps (that aren't monotonically increasing).  This
capability gives GmsCore a more graceful solution.

Change-Id: If2d054c09efc98e33e357796bbfcd37c91b24ec8
2015-04-13 18:47:29 -07:00
David Christie
5cf80e5003 Add a status callback for FLP HAL batching.
-Allows GmsCore to know if location batching is
 unsuccessful so it can switch to a SW solution.

Change-Id: I5a01d44fdcf6daa07d6b40cf95a674e98179bf00
2015-04-13 17:59:39 -07:00
David Christie
97f76dca03 Merge "Add support for capability querying in the FLP HAL" 2015-04-14 00:03:21 +00:00
David Christie
6e4b504920 Add support for capability querying in the FLP HAL
Change-Id: I93ebdbdaf7dc0b2ddf1a7e7a089073db51cd15c3
2015-04-13 16:57:59 -07:00
Andres Morales
21cc483442 am 9e4985e8: am 845ffcea: Merge "hw_auth_token: make timestamp 64 bits"
* commit '9e4985e8cb40e6e53a01a1080c210c0c09be305f':
  hw_auth_token: make timestamp 64 bits
2015-04-13 18:52:27 +00:00
Shawn Willden
d359b04483 Add KM_ORIGIN_UNKNOWN.
This designates keys whose origin cannot be determined because the
keymaster implementation is old and did not record it.

Change-Id: I3c366d527ed211c59f6dc04ddb48f3e9b3a07c7d
2015-04-13 12:13:35 -06:00
Andres Morales
606167c66b hw_auth_token: make timestamp 64 bits
Change-Id: I1f871300cd2edb407479e1e38284b068db364b38
2015-04-13 17:58:01 +00:00
Andres Morales
0593202124 Merge "add challenge to gatekeeper hal" 2015-04-12 22:51:10 +00:00
Prerepa Viswanadham
a9d5c2b6c9 Merge "Merge commit '3de70a1d6a1b8c0e7febce5e8fc4f0b3ad400b7d' into merge_work" 2015-04-12 21:56:30 +00:00
Jim Miller
1e1f7ba5c9 Clean up FingerprintManager API and make it public.
Change-Id: I416dcc42fd70926875cc77e0c2cc958fdfcd9f9d
2015-04-11 09:21:56 -07:00
Andres Morales
b9e58c810a Add HW_AUTH_TOKEN_VERSION constant
Change-Id: Ic01da2b9ed8efcdba7750d8ca7fe2321d9047b68
2015-04-11 02:02:53 +00:00
kschulz
9a92a7bff0 L2CAP and SDP Search API for BT profiles (1/2)
Added interface to create SDP records, to allow the upper
layers to set the content of the SDP record, including
both a RCFOMM channel and a l2cap PSM.

Change-Id: I7c47848a10b3d3091afbeadb4de8a8d7ea812288
2015-04-10 16:48:44 -07:00
Shawn Willden
adf37c7970 am 5d6b0b41: am e7444884: Merge "Make several key crypto parameters repeatable."
* commit '5d6b0b41808e69c644cbc85d90a5842d5563e3dc':
  Make several key crypto parameters repeatable.
2015-04-10 21:58:50 +00:00
Shawn Willden
e7444884c7 Merge "Make several key crypto parameters repeatable." 2015-04-10 21:21:25 +00:00
Shawn Willden
b8615afc70 am b9554eed: am 614e69d4: Merge "Correct return type of delete_all_keys."
* commit 'b9554eedc782391eb5304c03a0bf8f01b0280499':
  Correct return type of delete_all_keys.
2015-04-10 20:53:27 +00:00
Prerepa Viswanadham
35e4400e8e Merge commit '3de70a1d6a1b8c0e7febce5e8fc4f0b3ad400b7d' into merge_work 2015-04-10 11:58:29 -07:00
Shawn Willden
fe895d1bf7 Make several key crypto parameters repeatable.
Note that there's a pre-requisite to landing this CL: The Nexus 9
keystore.flounder.so must be modified to translate between new and old
tag numbers when the TEE side is version 0.

Bug: 19509156
Change-Id: Ic584d8a6bf5601f9754563b67b3cc6b3ca6b5ff9
2015-04-10 11:02:43 -06:00
Shawn Willden
0acfbbeb53 am 94269ea0: am 6950fae4: Merge "Simplify keymaster_key_origin_t."
* commit '94269ea08086df37d4a358a802c292742cb75850':
  Simplify keymaster_key_origin_t.
2015-04-10 14:19:38 +00:00
Shawn Willden
e1afa5b8f3 Correct return type of delete_all_keys.
Change-Id: Ic868882a4b456913879f91562442ef233a58d09e
2015-04-10 07:50:36 -06:00
Shawn Willden
8d6cf2594c Simplify keymaster_key_origin_t.
Change-Id: Iaba6156f238ea3bb1ad103b88ccea17344d296af
2015-04-10 07:28:25 -06:00
Shawn Willden
e006d2ad90 am cc521ead: am 3f3b9790: Merge "Reduce the list of keymaster key formats to the required set."
* commit 'cc521eada2f2926791eb42a369a1e2151fe18a33':
  Reduce the list of keymaster key formats to the required set.
2015-04-10 04:35:15 +00:00
Shawn Willden
a899066c86 am b0759b61: am def4b59e: Merge "Reduce the list of keymaster padding modes to the required set."
* commit 'b0759b61f8714fb2ff3aa6f89f60e55a3d878ec5':
  Reduce the list of keymaster padding modes to the required set.
2015-04-10 04:35:14 +00:00
Shawn Willden
136905aee4 am 4821c01e: am fc691d91: Merge "Reduce keymaster digest list to required set."
* commit '4821c01e1c6bcb117cea0b59d976b23bf3664972':
  Reduce keymaster digest list to required set.
2015-04-10 04:35:13 +00:00
Shawn Willden
f1d456fba9 am 7b12e556: am 5e58787b: Merge "Reduce keymaster block modes to the required set."
* commit '7b12e5560c423ff02164a5cb8b5bbefd5a123e84':
  Reduce keymaster block modes to the required set.
2015-04-10 04:35:12 +00:00
Shawn Willden
4514f80822 am bc036083: am 1d9de3e6: Merge "Reduce keymaster algorithm list to the required set."
* commit 'bc0360838fdf7945f99bc600813e5342f53c9790':
  Reduce keymaster algorithm list to the required set.
2015-04-10 04:33:50 +00:00
Shawn Willden
b2d893d234 am 2d19dbfe: am 5d8d3981: Merge "Start authenticator numbering from 1, instead of 2."
* commit '2d19dbfed66adff49d58231483a887c6dd63a7b8':
  Start authenticator numbering from 1, instead of 2.
2015-04-10 04:33:40 +00:00
Andres Morales
9c29b0b53c add challenge to gatekeeper hal
Change-Id: Iffd250233c9ec2a28682f018984e28531bd83e7a
2015-04-09 19:17:40 -07:00
Andres Morales
f62e84ae4a Merge "fix extern C decl" 2015-04-09 21:17:22 +00:00
Andres Morales
89dd74cb3e fix extern C decl
extern C should be declared for C++ files, not C files

Change-Id: I3e30af2e45774b50259b9575cf699d7c0b455cad
2015-04-09 11:46:52 -07:00
Shawn Willden
cd640d125f Reduce the list of keymaster key formats to the required set.
Change-Id: I3a0830ab2066d4c16c084d19040ec98e520896d4
2015-04-09 12:31:18 -06:00
Shawn Willden
8412fdc428 Reduce the list of keymaster padding modes to the required set.
Change-Id: If04ffc8e92678f57e2b730f77c0fab195e1096c4
2015-04-09 12:31:18 -06:00
Shawn Willden
fe6c4f0633 Reduce keymaster digest list to required set.
Change-Id: Id5c660feb7e71ea76473523e3a86e1ba01f19c82
2015-04-09 12:31:18 -06:00
Shawn Willden
c7deedad04 Reduce keymaster block modes to the required set.
Change-Id: I8f804978208e2c8701bd52dc79b5597a307b7e7a
2015-04-09 12:31:18 -06:00
Shawn Willden
e9797a740c Reduce keymaster algorithm list to the required set.
Change-Id: Ibffddc5c3a5c728182f5ca7f6a76381413fc8645
2015-04-09 12:31:09 -06:00
Andres Morales
72eb8b7c9c Merge "Add HW_AUTH_TOKEN_VERSION constant" 2015-04-09 15:52:46 +00:00
David Christie
b3a7d37fa2 Add smallest displacement feature to FLP HAL
Change-Id: I73d5391be3640d5f5c9a1cbee3ed36beec9c1df0
2015-04-08 15:30:55 -07:00
Andres Morales
8e7aa99bb6 Add HW_AUTH_TOKEN_VERSION constant
Change-Id: Ic01da2b9ed8efcdba7750d8ca7fe2321d9047b68
2015-04-08 12:38:26 -07:00
Shawn Willden
85cec0f1a3 Start authenticator numbering from 1, instead of 2.
Change-Id: I44d94fd597ae7dec5199388b9ab0bd952cf831c3
2015-04-06 11:53:22 -06:00
Andres Morales
43bbf284aa Merge "Replace size_t with uint32_t" 2015-04-06 16:18:49 +00:00
Andres Morales
25503bd5f7 Replace size_t with uint32_t
Prefer fixed width fields

Change-Id: If4b5b329a6ae008fd4ace4ddecdf2a680c3881c6
2015-04-01 08:19:00 -07:00
Tim Kilbourn
aaf6b266fb More usage support in the Input HAL.
Define keycode, axis, and led usages.
Add callback interfaces for setting usage values in a report.

Change-Id: I5c7effddb7fce85d7d33ea79ff7005d37943f520
2015-03-30 17:21:49 -07:00
Tim Kilbourn
73475a4eb2 Input event hub for evdev input HAL module.
InputHub monitors paths for device changes and input events.
InputDeviceManager creates InputDevices and routes input events to
them. InputDevices currently just log these events during development.
InputHost represents a wrapper around the HAL interface.

Change-Id: Ic47d574498eb07bcdcd17812a648539fdf1c69d6
2015-03-30 17:21:29 -07:00
Satya Calloji
3de70a1d6a Incorrect RSSI value in onlost/onfound
Fix for signed value in onlost/onfound

Bug: 19891550
Change-Id: Idee4c566fe0d6f10a87c92f5bf03743fddbe2261
2015-03-27 09:42:37 -07:00
Satya Calloji
a8b49d3fee OnFound/OnLost feature API changes based on spec v0.90
Bug: 19609671
Change-Id: Id28e188159aa41c940723fb5b12cade0a48e506b
2015-03-27 09:40:52 -07:00
Jim Miller
3fba7bebe8 Merge "Update fingerprint.h for new API" 2015-03-25 19:45:17 +00:00
Jim Miller
1fb1e33454 Update fingerprint.h for new API
This adds vendor-specific messaging capabilities to the
HAL driver to avoid the possibility of vendors clobbering
general-purpose methods. The framework translates these
additional messages as an offset into a custom message array.

Additionally, authenticate() now takes a group id to restrict
authentication to a subset of possible fingerprints.

Bug 16487912

Change-Id: I8a92a6c86b4729af03a5576b4a150b1c73fbc9cc
2015-03-24 19:27:57 -07:00
Yin-Chia Yeh
15a5a06e7c 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-23 19:51:32 -07:00
Yin-Chia Yeh
1f29217b2a 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-23 19:51:22 -07:00
Eino-Ville Talvala
494b1da813 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-23 19:51:06 -07:00
Ruben Brunk
4ecaf1130c camera2: Update HAL docs on eviction behavior.
Bug: 19186859
Change-Id: Ie051f966a758c68d354250c245a87df57a4f4ae3
2015-03-23 19:50:58 -07:00
Shawn Willden
6fb0516f29 am 92469ed0: am f1babb18: Merge "Add KM_TAG_USER_SECURE_ID."
* commit '92469ed087f6e3c0b13ad0562661236731358029':
  Add KM_TAG_USER_SECURE_ID.
2015-03-23 23:24:20 +00:00
Andres Morales
6c560c0233 Rename keyguard to gatekeeper
Avoids confusion with the other part of the system
known as Keyguard.

Change-Id: Ie32a3a4c990c4317cfd462a0e6dbf8fc490d4de2
2015-03-20 13:57:48 -07:00
Andres Morales
889dd06032 Merge "Update keyguard API" 2015-03-20 01:56:13 +00:00
Yin-Chia Yeh
147814cd4c Merge "Camera: Fix tests per camera service interface change" 2015-03-19 17:27:28 +00:00
Andres Morales
8fa2fb74cf Update keyguard API
Change-Id: I51f144134e58109ed6e9747926645bd956631ad4
2015-03-19 08:40:41 -07:00
Shawn Willden
a45b4721d9 am 4dfbc5e3: am 6a39dafe: Merge "Use extern "C" rather than BEGIN/END_DECLS."
* commit '4dfbc5e320eaf0bfdc0af242ac16153143d4ba4c':
  Use extern "C" rather than BEGIN/END_DECLS.
2015-03-19 01:47:42 +00:00
Shawn Willden
4719acae02 Add KM_TAG_USER_SECURE_ID.
This tag identifies the user authorized to use the key.  Unlike
KM_TAG_USER_ID, its value does not reference the Linux-side user ID, but
a secure-world user ID, generated and managed by secure-world
authentication apps.

Bug: 19511945
Change-Id: I629ab2c47ee6d42de20a963ef283e330364c8ee7
2015-03-18 19:25:07 -06:00
Shawn Willden
c51d01ed02 Use extern "C" rather than BEGIN/END_DECLS.
For compatibility with Trusty.  I'll probably revert this later after I
find a proper fix for Trusty.

Change-Id: I49b4ae55251398eec2a6633e09bbc468f16a4d14
2015-03-18 19:25:01 -06:00
Shawn Willden
d4cb092c25 am 6b5b8ba9: am 201e5555: Merge "Add KM_TAG_AUTH_TOKEN and corresponding auth token structure."
* commit '6b5b8ba98e1caaa91693238e79bfe5b7d988ce5c':
  Add KM_TAG_AUTH_TOKEN and corresponding auth token structure.
2015-03-19 00:43:47 +00:00
Shawn Willden
e282df76e8 am 98bf75b4: am 0eadc764: Merge "Add error codes."
* commit '98bf75b4fd685373f3331b0a73ee7a2978bbec03':
  Add error codes.
2015-03-18 23:51:14 +00:00