Commit graph

3963 commits

Author SHA1 Message Date
Treehugger Robot
60849b8da4 Merge "vibrator: fix issue with ledtrig-transient support" 2017-03-11 01:23:18 +00:00
Peng Xu
e12a0cc39d Merge "Dynamic sensor manager module - framework" 2017-03-10 22:21:31 +00:00
Jakub Pawlowski
0a660af26a Bluetooth 5 feature check implementation (2/3)
Wire the new feature check API to actual values received from the
controller.

Test: manual
Bug: 30622771
Change-Id: I76d373b94fd3d4d637ddae637a8424d463286837
2017-03-09 18:19:24 -08:00
Po-Chien Hsueh
69646f44a5 Merge "Move default HAL libraries to vendor" 2017-03-09 05:15:37 +00:00
David Lin
4e8f561fcd vibrator: fix issue with ledtrig-transient support
There's a problem with enabling the transient trigger in the HAL, that is
the trigger function exports tree properties - activate, state, and
duration which require to be chown'd to system:system during the init
process. Hence, the trigger will be now enabled in the init process and
the HAL will use the "activate" property to determine if the device has
vibrator support via ledtrig-transient.

Test: device vibrates with the driver supports ledtrig-transient

Change-Id: Ieb195ddc199c6372f5dcf3ca1b2be4fd59724717
Signed-off-by: David Lin <dtwlin@google.com>
2017-03-08 17:41:53 -08:00
Tomasz Wasilczyk
bfd41eb47b Merge "Check set_configuration input to make VTS negative test pass." 2017-03-08 20:00:25 +00:00
Steven Moreland
70818770a3 Merge "Update nfc-base.h" am: 879e1607d7 am: 4eae4eea23
am: 93e8efb14b

Change-Id: Id00fd572d0184c4490c38315ea00d03594a526de
2017-03-08 06:44:52 +00:00
Steven Moreland
93e8efb14b Merge "Update nfc-base.h" am: 879e1607d7
am: 4eae4eea23

Change-Id: I47a8c9791c92e57d98d94f455c50dcc2a9553314
2017-03-08 06:41:51 +00:00
Steven Moreland
4eae4eea23 Merge "Update nfc-base.h"
am: 879e1607d7

Change-Id: I1c388070b7ffc0f664c10bc0756eaf287013029c
2017-03-08 06:39:22 +00:00
Steven Moreland
879e1607d7 Merge "Update nfc-base.h" 2017-03-08 06:07:05 +00:00
Peng Xu
57d8af7f5e Dynamic sensor manager module - framework
Library to handle dynamic sensor connection. There are two way to use
this: as hal extension or standalone hal module.

In hal extension mode: add libdynamic_sensor_ext in dependency of hal,
instantiate DynamicSensorManager with appropriate parameters. Then
for all sensor requests, if the handle is owned by dynamic sensor
manager, forward the request.

In standalone mode, add sensor.dynamic_sensor_hal into device make
file. Usually, this also means multihal is necessary. Add
sensor.dynamic_sensor_hal into multihal configuration file.

This CL implements the dynamic sensor manager framework. Sensor daemon
will be added in follow up CL.

Test: test compile (functionality test done in a follow up CL)

Change-Id: I3b96ee135d8dbe3e199af01bed4b61637358803e
2017-03-07 20:50:56 -08:00
TreeHugger Robot
2e643b42ad Merge "Revert (nfc part of) "Ran hardware/interfaces/update-base-files.sh."" 2017-03-08 01:30:56 +00:00
Tomasz Wasilczyk
ad78c8d922 Check set_configuration input to make VTS negative test pass.
Bug: b/33382424
Test: VTS
Change-Id: I11b00e0a9797a30549cca989ea5c6a09c2d513c2
2017-03-07 17:05:41 -08:00
Steven Moreland
50e8f45ca8 Revert (nfc part of) "Ran hardware/interfaces/update-base-files.sh."
(commit: 54925f4636)

Reason for revert: nfc changes should go in AOSP:
https://android-review.googlesource.com/c/343935/

Change-Id: I3cc8c520c15c3b88ba5fceeb2e59ae44b8f887c4
2017-03-07 18:14:19 +00:00
Po-Chien Hsueh
c535b2fded Move default HAL libraries to vendor
Libraries under /hardware/libhardware/modules should go to /vendor/.

These are conventionl HALs for default implementations, most of them
are not used.

Camera and thermal are already moved in other CLs.

Bug: 35907904
Test: Compiled and checked install path. Verified on Sailfish with
$ lsof | grep default.

Change-Id: Ibde574001c01cbfea014a20a0fbbb3265e6cdc8a
2017-03-07 11:28:32 +08:00
TreeHugger Robot
88202b943f Merge "Update gnss-base.h" 2017-02-27 20:43:54 +00:00
Jiyong Park
5293c5b05d Merge "Move thermal HAL to vendor partition" 2017-02-27 04:14:12 +00:00
Jiyong Park
5067fe1a19 Move thermal HAL to vendor partition
In order to build generic system image that is agnostic to SoC or
device, HALs should be moved from system partition to vendor
partition.

Bug: 34826389, 35743509
Test: build & run and check whether the HAL is loaded from
/vendor/lib[64]/hw.
$ su; lsof | grep thermal.

Change-Id: Ia2bb060590f31688528de4a3b9b9ab8fbd376b6c
2017-02-27 13:11:33 +09:00
Steven Moreland
364ed97bc0 Update gnss-base.h
Test: pass
Bug: 33541458
Change-Id: Ib22daeddbd1de79210ff6f356ea4465b920bfe74
2017-02-24 16:27:50 -08:00
Steven Moreland
c293b01f04 Update sensors-base.h
Test: pass
Bug: 33541458
Change-Id: I9e29be69a3903ee5ec213ebc8e2e40e24f6ec755
2017-02-24 13:14:19 -08:00
Steven Moreland
2b335affb8 Update nfc-base.h
Test: pass
Bug: 33541458
Change-Id: Iacbbd553871028ea174fa97c87a36ee2bae50805
2017-02-24 13:11:01 -08:00
Jakub Pawlowski
c222f7f6f2 Merge "Use base::Callbacks in BleScannerInterface (1/3)" am: d3b3ea65c5 am: 45f56948fe
am: be8b526c78

Change-Id: I05dcd291b16575d0602d538bae0e858ab455e0a2
2017-02-21 18:19:17 +00:00
Jakub Pawlowski
be8b526c78 Merge "Use base::Callbacks in BleScannerInterface (1/3)" am: d3b3ea65c5
am: 45f56948fe

Change-Id: I44b78d93b24c1d3ee2b382e83bfe62dc47981ae1
2017-02-21 18:13:59 +00:00
Jakub Pawlowski
45f56948fe Merge "Use base::Callbacks in BleScannerInterface (1/3)"
am: d3b3ea65c5

Change-Id: If8f63018e33ad39621c47bac9b0ff8f670b2a875
2017-02-21 18:06:47 +00:00
Jakub Pawlowski
d3b3ea65c5 Merge "Use base::Callbacks in BleScannerInterface (1/3)" 2017-02-21 18:03:41 +00:00
Jakub Pawlowski
62ddb5d520 Use base::Callbacks in BleScannerInterface (1/3)
The remaining four native callbacks need more internal refactoring
before they can be turned into a callbacks.

Bug: 30622771
Test: sl4a FilteringTest
Change-Id: I5aea0485c88605d34ccf8e0a27202469bb5c0ff4
2017-02-17 17:26:46 -08:00
Tomasz Wasilczyk
8387e1cfb2 Merge "Review radio metadata allocations/deallocations." 2017-02-17 01:07:47 +00:00
Tomasz Wasilczyk
33683bf92b Review radio metadata allocations/deallocations.
Bug: b/34054813
Test: VTS, manual
Change-Id: I1cbd7baf5b852cd3d4cab374eb67289f3938fff3
2017-02-16 22:59:22 +00:00
Frank Salim
38925770ef Revert "Add new purpose to the HAL layer."
This reverts commit ee2f29de40.

Reason for revert: Remove partial support for wrapped key import

Change-Id: Iefb57c910a3d05fa9e2c9660c2ac236c2ecc9cc0
2017-02-16 19:18:19 +00:00
Kevin Chyn
ba8e932d1f implemented enumerate method in fingerprintservice
fixes bug 35358801
Test: ran enumeration in template with
1) more fingerprints in fingerprintd
2) more fingerprints in framework
3) no fingerprints in fingerprintd, but fingerprints in framework
4) no fingerprints in framework, but fingerprints in fingerprintd

Change-Id: Id150f0225d597939cf1af6bac218fe0fdeeca93d
2017-02-14 14:45:04 -08:00
Tomasz Wasilczyk
3e9a5396b0 Merge "Add radio HAL stub to the build list; fix format warning." am: cd4bc27771 am: 9e1874d6a3 am: ac4a492730
am: 105fea4ab3

Change-Id: I2b43feb5969e39b80740716f08cf559b660eaf21
2017-02-09 20:27:33 +00:00
Tomasz Wasilczyk
105fea4ab3 Merge "Add radio HAL stub to the build list; fix format warning." am: cd4bc27771 am: 9e1874d6a3
am: ac4a492730

Change-Id: I8081eb96b12f43cb9fc164e844441413d30e7531
2017-02-09 20:25:32 +00:00
Tomasz Wasilczyk
ac4a492730 Merge "Add radio HAL stub to the build list; fix format warning." am: cd4bc27771
am: 9e1874d6a3

Change-Id: I01a1c7aa5db67f4bb368fbadc5939fd1fc3df5c8
2017-02-09 20:23:31 +00:00
Tomasz Wasilczyk
9e1874d6a3 Merge "Add radio HAL stub to the build list; fix format warning."
am: cd4bc27771

Change-Id: Ie4b789c2cbcbda7613d64ea6fa51d4a318b6eeba
2017-02-09 20:21:34 +00:00
Tomasz Wasilczyk
cd4bc27771 Merge "Add radio HAL stub to the build list; fix format warning." 2017-02-09 20:17:49 +00:00
Tomasz Wasilczyk
dd2f59e4ab Add radio HAL stub to the build list; fix format warning.
Test: it builds
Change-Id: Id093441b9909f564d30f8351931ee3ccf55f2617
2017-02-08 15:04:31 -08:00
Jakub Pawlowski
239cdb26c0 Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710 am: 57a17f0269 am: d8c958cefa
am: 00aeb15b9d

Change-Id: I0abda9e46bad50a5483d5516e74bd39bb8b73aea
2017-02-07 14:08:02 +00:00
Pavlin Radoslavov
d39b7b4050 Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92 am: adf704ce29 am: e44d2b2804
am: 77ee9182aa

Change-Id: I9c3f98572c7aecea5196793d055c61aaad4b994d
2017-02-07 14:05:48 +00:00
Jakub Pawlowski
00aeb15b9d Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710 am: 57a17f0269
am: d8c958cefa

Change-Id: Ie9d6730bc5770a9b9a3000e4a5a8c56d5329038c
2017-02-07 01:37:34 +00:00
Jakub Pawlowski
d8c958cefa Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710
am: 57a17f0269

Change-Id: If237457e9c5b7f2784ceae1c8acdbab5d2263aed
2017-02-07 01:35:03 +00:00
Jakub Pawlowski
57a17f0269 Merge "Propagate BT5 specific scan result properties up the stack (1/3)"
am: a0ce42c710

Change-Id: I6e104c95c2f99a4337260df6b03a1eaf111881f1
2017-02-07 01:32:35 +00:00
Jakub Pawlowski
a0ce42c710 Merge "Propagate BT5 specific scan result properties up the stack (1/3)" 2017-02-07 01:29:26 +00:00
Pavlin Radoslavov
77ee9182aa Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92 am: adf704ce29
am: e44d2b2804

Change-Id: I1fcc37af08200d7898be2da7f85b45abb4177e78
2017-02-07 00:18:43 +00:00
Pavlin Radoslavov
e44d2b2804 Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92
am: adf704ce29

Change-Id: I9ebe63d07e486f0033765236a1d61e8a16989595
2017-02-07 00:10:26 +00:00
Pavlin Radoslavov
adf704ce29 Merge "Add a mechanism to configure the default A2DP codec priorities"
am: a82ee04b92

Change-Id: Ieb3e5803920d5068ac9c94b68acce56191789222
2017-02-06 23:12:26 +00:00
Treehugger Robot
a82ee04b92 Merge "Add a mechanism to configure the default A2DP codec priorities" 2017-02-06 22:59:51 +00:00
Jakub Pawlowski
701ab73a50 Propagate BT5 specific scan result properties up the stack (1/3)
Bug: 30622771
Test: sl4a FilteringTest
Change-Id: I740447921d2964559b5fa8c8d7dcc32975352b61
2017-02-06 14:05:37 -08:00
Pavlin Radoslavov
310d0f5979 Add a mechanism to configure the default A2DP codec priorities
Previously, the relative codec priorities were hard-codec internally.
The new mechanism uses the following configurable resources in
packages/apps/Bluetooth/res/values/config.xml to re-assign the
default codec priorities per device, or to explicitly disable a codec.

 - a2dp_source_codec_priority_sbc
 - a2dp_source_codec_priority_aac
 - a2dp_source_codec_priority_aptx
 - a2dp_source_codec_priority_aptx_hd
 - a2dp_source_codec_priority_ldac

Those values are assigned on startup.
Also, they can be changed per device by using an overlay:
device/<VENDOR>/<DEVICE>/overlay/packages/apps/Bluetooth/res/values/config.xml

Test: Manually streaming to a headset
Change-Id: I432174975d7afbecb8f27cb0e55f5aa816c6e64e
2017-02-06 13:10:38 -08:00
Pavlin Radoslavov
4f24afa81f Merge "Update the A2DP Codec Config API" am: 451a32cb56 am: 6c3ad4427f am: 28124d4384
am: 9c5d5e2347

Change-Id: Ib050779118c162f4de44f17274369400dba79a11
2017-01-31 19:25:14 +00:00
Pavlin Radoslavov
9c5d5e2347 Merge "Update the A2DP Codec Config API" am: 451a32cb56 am: 6c3ad4427f
am: 28124d4384

Change-Id: I8912291f2ae40c4cf654cbf2cc1ff53fe2908c29
2017-01-31 19:17:24 +00:00