Commit graph

1039 commits

Author SHA1 Message Date
Andre Eisenbach
f65d1257d3 Bluetooth: Additional status codes for wakelock ops
Add additional status codes to better track wakelock acquisition or
release failures.

Bug: 27721443
Change-Id: I99fb442277dac81df0d84d9a9f7a3340158377a8
2016-03-21 17:23:23 -07:00
Darren Krahn
deda044730 nvram: Add a get_max_space_size_in_bytes method.
This is useful for the Access-Controlled NVRAM HAL because
implementations may be able to achieve atomic writes if they are able to
limit the maximum space size. This method allows the module to report
that it is imposing such a limit.

BUG=27480753

Change-Id: Ia70f459d7d5fca894e52310ddb2cdcbb51bd8364
2016-03-08 15:43:41 -08:00
Jakub Pawlowski
36633ae370 Remove unused methods and callbacks
Bug: 27455533
Change-Id: Id2e265be02dc627e7fc81875c3000262cab2e35f
2016-03-03 15:01:32 -08:00
Andre Eisenbach
e410940531 Add ability to add interop entries dynamically (1/2)
Add ability and interface for adding dynamic entries to the interop
workaround database.

Bug: 26548845
Change-Id: I17f8cbdf1e63c316aa52903be7ec526c9b1376bb
2016-02-15 17:15:45 -08:00
Jakub Pawlowski
83e598ff25 Add new callbacks to bt_gatt_client.
Add services removed and services added callbacks

Change-Id: Id6abeb78207bd761969ee2ffc94f96f71dd20084
2016-02-12 00:07:05 +00:00
Mattias Nissler
087f89d4a0 Merge "Split NVRAM HAL header to break out types and constants." 2016-02-09 13:14:40 +00:00
Mattias Nissler
d2d0b67259 Split NVRAM HAL header to break out types and constants.
This allows inclusion of the new nvram_defs.h header to pull in NVRAM
types and constants without pulling in hardware.h, which is difficult
in low-level environments such as Trusty (and the full NVRAM HAL
header isn't useful in that environment anyways).

Change-Id: I023104ec666832d4e01ae8841a4d6407a5b04643
2016-02-05 09:50:23 +01:00
Darren Krahn
ab3ea641ab nvram: Add const to input-only arrays.
BUG=24397987

Change-Id: I534a8fc978e10e1277cb0c87b5942d182f7c2a79
2016-02-04 14:47:14 -08:00
Jakub Pawlowski
f2e1352d6c Add get_gatt_db to Bluetooth HAL
This patch adds new method, get_gatt_db to bluetooth HAL.
It can be used to grab whole GATT database in one request.
It will trigger get_gatt_db_callback, which is also part of
this patch.

Change-Id: I1a931f126db56e7a29537f3bca9cddff3dd27dc6
2016-01-29 20:13:15 +00:00
Shawn Willden
f704e8a939 Merge "Add KM_TAG_ALLOW_WHILE_ON_BODY." 2016-01-28 23:20:01 +00:00
Darren Krahn
6b09c49633 Merge "Add header for new NVRAM HAL." 2016-01-28 01:39:35 +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
Shawn Willden
71ca0109be Add KM_TAG_ALLOW_WHILE_ON_BODY.
Change-Id: I39ca0eee8be46a6acc65e975aad81d2f2c2aa5b8
2016-01-26 07:34:48 -07:00
Shawn Willden
cf30fe17fd Add keymaster2 HAL.
Change-Id: Ibfcda30f33077f61e74701fa026983f9e72e140e
2016-01-21 12:19:31 -07: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
Jakub Pawlowski
00202fff5a Add structure for holding Bluetooth OOB data.
Change-Id: I0f59bf6343e519a7da830f57d242f9bdf18fca93
2015-12-30 19:50:03 +00:00
David Zeuthen
e96eb0ddda Merge "libhardware: boot_control: Add isSlotMarkedSuccesful() function." 2015-12-09 20:58:58 +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
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
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
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
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
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
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
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
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
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
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
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
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
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