Commit graph

1155 commits

Author SHA1 Message Date
Peng Xu
ac377defb7 Merge "Fix build caused by "bool connect"" 2016-01-28 02:39:14 +00:00
Peng Xu
e20707ad87 Fix build caused by "bool connect"
Change-Id: Ibc0bc984aebff6ae512c11bfe3cb1d1a18845a78
2016-01-27 18:26:10 -08:00
Lifu Tang
05f39ba4e4 Merge "Various changes on GPS.h HAL definitions" 2016-01-28 02:02:24 +00:00
Ruben Brunk
2c84f81cf0 Add HAL for VR mode.
- Provide HAL for vendors to turn on VR-specific device performance
  settings when we enter VR mode in VrManagerService.

Bug: 22855417
Change-Id: I3dee920818eb0988452bf5c25d1a31f11fde7339
2016-01-27 17:58:31 -08:00
Darren Krahn
6b09c49633 Merge "Add header for new NVRAM HAL." 2016-01-28 01:39:35 +00:00
Peng Xu
e641ba987a Dynamic sensor related definitions
Defined the dynamic sensor meta data type and UUID of sensor.

Change-Id: I54385bf70c366057d07ea049def1073cd8a35166
2016-01-27 16:44:34 -08:00
Ashutosh Joshi
5cbf2327b1 Merge "Adding new sensor types." 2016-01-27 22:57:42 +00:00
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