Commit graph

3964 commits

Author SHA1 Message Date
Peng Xu
18082bd61f Dynamic sensor manager -- implementation of basic sensor daemon
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.

A dummy sensor module is included for testing.

Test: tested with cts dynamics sensor related test and demo app.
      also verified sensor basic operation with sensor logger.

Change-Id: I16612935fc21b06c173aca875401ece37c6bde01
2017-04-07 20:54:18 +00:00
TreeHugger Robot
3623fbace2 Merge "Camera tests: Include additional camera metadata header" into oc-dev 2017-04-06 14:02:11 +00:00
Emilian Peev
1cc12b856b Camera tests: Include additional camera metadata header
Bug: 34275821
Test: adb shell /data/nativetest/cameraservice_test/cameraservice_test
--gtest_filter=CameraProviderManagerTest.MultipleVendorTagTest
Complete Camera/Camera2 CTS tests
Change-Id: Ia78e3003ea8433b31388a6451c0b6e37fda64275
2017-04-05 17:03:22 +00:00
Scott Randolph
477913b9aa Remove deprecated vehicle_camera.h
This interface has been removed in favor of the EVS HAL in
hardware/interfaces/automotive/evs

Test:  build tree
Bug:  36900851
Topic:  RetireVehicleCamera
Change-Id: I1594839ce86d860c4aad6f4d0d922505311ab3c1
(cherry picked from commit d49b3655e3)
2017-04-04 23:01:42 +00:00
Jakub Pawlowski
784d6f1a88 Bluetooth 5 advertising duration refactoring (2/4)
Expose both duration and maximum extended advertising events to limit
advertising time.

Test: manual
Bug: 30622771
Change-Id: Id5a7246b1d3e937d5c462315c157b320d659a52d
(cherry picked from commit dd3e64f258)
2017-03-31 22:34:24 -07:00
Jakub Pawlowski
097032a21b Bluetooth 5 periodic scan (3/3)
This patch wires calls/callbacks through stack to prepare for actual
implementation.

Test: manual
Bug: 30622771
Change-Id: I30ed67e9975d5207bbe037328e4d7cbdcaf69e5c
(cherry picked from commit 5a074af6b8)
2017-03-31 22:33:48 -07:00
Andy Hung
7e1b97e4ff Fix endian define
Test: compilation
Bug: 36815380
Change-Id: I6a1a89dfcf8339faa07509b1e058250ad2e86f1d
2017-03-31 14:12:17 -07:00
Jakub Pawlowski
254c20585d Merge "Add option to specify initial LE connection PHY (1/3)" am: f11f4db5ad am: 5e4ebcab38
am: b5fe4bdc72

Change-Id: I24dcf2eae37abe50425c909e286f791f7838326f
2017-03-27 20:54:11 +00:00
Jakub Pawlowski
b5fe4bdc72 Merge "Add option to specify initial LE connection PHY (1/3)" am: f11f4db5ad
am: 5e4ebcab38

Change-Id: Ibd0509e62868c40fb54507d45a6705d2212dcb00
2017-03-27 20:51:11 +00:00
Jakub Pawlowski
5e4ebcab38 Merge "Add option to specify initial LE connection PHY (1/3)"
am: f11f4db5ad

Change-Id: I4e051af08c8efa8c1e2e2ef8fb4f53ee8eca6280
2017-03-27 20:48:11 +00:00
Jakub Pawlowski
f11f4db5ad Merge "Add option to specify initial LE connection PHY (1/3)" 2017-03-27 20:43:55 +00:00
Jakub Pawlowski
cc99bc54ec Add option to specify initial LE connection PHY (1/3)
For whitelist connections we always use all possible PHYs, for direct
connection use PHY specified by client.

Test: manual
Bug: 30622771
Change-Id: I13242608385230371e8a9170fc21e3f1b0a74c78
2017-03-27 11:40:18 -07:00
Jakub Pawlowski
b75531444d Merge "Expose connection update callback (2/3)" am: b1def383da am: 6cf186eb6b
am: 85ccdb8629

Change-Id: I24b390caa55284ab96601fbe7cd8418943036bb1
2017-03-24 20:47:03 +00:00
Jakub Pawlowski
85ccdb8629 Merge "Expose connection update callback (2/3)" am: b1def383da
am: 6cf186eb6b

Change-Id: I8347e8465e2ba04862d14ab1750243fa46c9f989
2017-03-24 20:41:54 +00:00
Jakub Pawlowski
6cf186eb6b Merge "Expose connection update callback (2/3)"
am: b1def383da

Change-Id: I05a6427ed162e767e126e20572279801688c2ad2
2017-03-24 20:35:27 +00:00
Jakub Pawlowski
b1def383da Merge "Expose connection update callback (2/3)" 2017-03-24 20:31:32 +00:00
Jakub Pawlowski
6f0c6f1874 Expose connection update callback (2/3)
Test: manual
Bug: 30622771
Change-Id: I5ed4fe503ba3212af808b759b67d71b895395bd3
2017-03-23 19:08:11 -07:00
Jakub Pawlowski
fd0bae5d4f Merge "Set preferred PHY and read PHY implementation (2/3)" am: 4929629d91 am: d71003fef1
am: 03aca19360

Change-Id: I3ed5db0d6ec9cca251bc2462a7bd7a5c37031da6
2017-03-24 01:16:51 +00:00
Jakub Pawlowski
03aca19360 Merge "Set preferred PHY and read PHY implementation (2/3)" am: 4929629d91
am: d71003fef1

Change-Id: Ib0854566fab22afa35cefab9160c6b1d3a667773
2017-03-24 01:14:51 +00:00
Jakub Pawlowski
d71003fef1 Merge "Set preferred PHY and read PHY implementation (2/3)"
am: 4929629d91

Change-Id: I5e4087a0661b18b6eb0910d7de9b50ed467e0524
2017-03-24 01:12:50 +00:00
Jakub Pawlowski
4929629d91 Merge "Set preferred PHY and read PHY implementation (2/3)" 2017-03-24 01:08:08 +00:00
Jakub Pawlowski
f3eb55825c Set preferred PHY and read PHY implementation (2/3)
Test: manual
Bug: 30622771
Change-Id: I26d64e8f0a2d881ddd648b3c7786ada25c72b455
2017-03-23 13:27:30 -07:00
TreeHugger Robot
bfea8ae78c Merge "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" 2017-03-23 18:07:05 +00:00
TreeHugger Robot
e51a6dd308 Merge "camera3: Add doc for combined stream use flags" 2017-03-23 02:21:29 +00:00
TreeHugger Robot
e90bc93d73 Merge "Add manufacturer and model to device ID attestation" 2017-03-23 00:01:39 +00:00
Jakub Pawlowski
38d71533ee Merge "Bluetooth 5 AdvertisingSet implementation (3/4)" am: ecb7fc5332 am: 00a91f290b
am: 9673fcf99c

Change-Id: I89b90208e2df3ab971e02736b43a63f8c34e9943
2017-03-20 22:41:10 +00:00
Jakub Pawlowski
9673fcf99c Merge "Bluetooth 5 AdvertisingSet implementation (3/4)" am: ecb7fc5332
am: 00a91f290b

Change-Id: I1db5837866531e13cfbaca4b8660f24c5bd09136
2017-03-20 22:33:13 +00:00
Jakub Pawlowski
00a91f290b Merge "Bluetooth 5 AdvertisingSet implementation (3/4)"
am: ecb7fc5332

Change-Id: I13dfd19877828eac02532a44fe8f6ba35418929b
2017-03-20 22:26:46 +00:00
Jakub Pawlowski
ecb7fc5332 Merge "Bluetooth 5 AdvertisingSet implementation (3/4)" 2017-03-20 22:19:08 +00:00
Jakub Pawlowski
a4bd8a61cb Bluetooth 5 AdvertisingSet implementation (3/4)
Test: manual
Bug: 30622771
Change-Id: I8dc3b0ee85a6a449838a61bab86be5a2ea40b0ab
2017-03-20 12:26:33 -07:00
Shuzhen Wang
07a5cd5650 camera3: Add doc for combined stream use flags
Specify the HAL behavior when stream usage flag is combination for
multiple consumers.

Test: Compile
Bug: 33777818
Change-Id: If11de5d249b1a8366dad7ec14e5e35f9cfc06ce4
2017-03-20 09:26:42 -07:00
Bartosz Fabianowski
81b7b5f68c Add manufacturer and model to device ID attestation
Discussions have shown that in addition to brand, device and product,
we should also allow devices to attest their manufacturer and model.

Bug: 36433192
Test: GTS com.google.android.gts.security.DeviceIdAttestationHostTest

Change-Id: I126003420a93241e04bf18ee7ff8e6aefa5599a8
2017-03-20 14:01:40 +01:00
Jakub Pawlowski
2ea3c31f31 Merge "LE Maximum Advertising Data Length (3/4)" am: d7c37e7235 am: c25f4d202e
am: 4d437176ee

Change-Id: I6c37e5fb9c0d4c5aad5439ca56bd7a0aa7a3d145
2017-03-17 05:29:52 +00:00
Jakub Pawlowski
4d437176ee Merge "LE Maximum Advertising Data Length (3/4)" am: d7c37e7235
am: c25f4d202e

Change-Id: I71bbfd0afb9c4f5e675cbd2a402c96669b91a9e5
2017-03-17 05:26:29 +00:00
Jakub Pawlowski
c25f4d202e Merge "LE Maximum Advertising Data Length (3/4)"
am: d7c37e7235

Change-Id: I99c507e4a65c51dcdfadd146593ed194a83826e8
2017-03-17 05:20:02 +00:00
Jakub Pawlowski
d7c37e7235 Merge "LE Maximum Advertising Data Length (3/4)" 2017-03-17 05:13:45 +00:00
Jakub Pawlowski
696f69966c LE Maximum Advertising Data Length (3/4)
Add ability to check maximum advertising data length.

Bug: 30622771
Test: manual
Change-Id: I14a66a906a3f6133eea87c538de854bbfab056f5
2017-03-16 18:28:59 -07:00
Jakub Pawlowski
db18196a52 Merge "Bluetooth 5 AdvertisingSet implementation (4/4)" am: 1317fe40e0 am: b2475c5afa
am: ff005ba330

Change-Id: I423311e19bead2f0fd8c9d54600be0917049f372
2017-03-17 01:21:43 +00:00
Jakub Pawlowski
ff005ba330 Merge "Bluetooth 5 AdvertisingSet implementation (4/4)" am: 1317fe40e0
am: b2475c5afa

Change-Id: I32eed4d290048de66a06e1fce790e6e113d68534
2017-03-17 01:15:12 +00:00
Jakub Pawlowski
b2475c5afa Merge "Bluetooth 5 AdvertisingSet implementation (4/4)"
am: 1317fe40e0

Change-Id: I6642bb6214f9d23e9a2a9b6c6bb3a690e9d69112
2017-03-17 01:08:05 +00:00
Treehugger Robot
1317fe40e0 Merge "Bluetooth 5 AdvertisingSet implementation (4/4)" 2017-03-17 01:01:17 +00:00
TreeHugger Robot
3876eecb59 Merge "Camera: Update camera3.h doc for high speed video batching" 2017-03-17 00:32:50 +00:00
Jakub Pawlowski
0d0b7d1757 Bluetooth 5 AdvertisingSet implementation (4/4)
This patch wires up fist methods of AdvertisingSet, making it possible
to start advertising and stop advertising. It also replaces legacy
implemementation with calls to new implementation.

Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest

Change-Id: I4a2739528fe114547f747d9719a4d47de7ce5589
2017-03-16 16:18:46 -07:00
Shuzhen Wang
13a19e11e6 Camera: Update camera3.h doc for high speed video batching
Now cameraservice only sends one shutter notify and capture result to
the application per batch.  Update the HAL interface doc to reflect this.

Test: Compiles
Bug: 35775704
Change-Id: I290ef93f842f4a02e5bdaeb0e50298f79fcef602
2017-03-14 14:06:59 -07:00
Jakub Pawlowski
fa41f8684f Merge "Bluetooth 5 feature check implementation (2/3)" am: 69606698b2 am: 3aa949fad0
am: c2d188fd62

Change-Id: I00034a0a2c1eb0d527634725affb9cf2b95ff8a7
2017-03-11 02:20:14 +00:00
Jakub Pawlowski
c2d188fd62 Merge "Bluetooth 5 feature check implementation (2/3)" am: 69606698b2
am: 3aa949fad0

Change-Id: I54c2bc9c544fdea56e1d3653adb54325ede97e43
2017-03-11 02:16:44 +00:00
Jakub Pawlowski
3aa949fad0 Merge "Bluetooth 5 feature check implementation (2/3)"
am: 69606698b2

Change-Id: Iab12da0e5f36e9e1878028e50e0218200e654b9f
2017-03-11 02:13:14 +00:00
Treehugger Robot
69606698b2 Merge "Bluetooth 5 feature check implementation (2/3)" 2017-03-11 02:03:43 +00:00
David Lin
488c55c858 Merge "vibrator: fix issue with ledtrig-transient support" am: 60849b8da4 am: 95d22ed018
am: fdfbcda7ad

Change-Id: Ib2df8e109d5842e3d3eaa0846a153c997908d967
2017-03-11 01:35:14 +00:00
David Lin
fdfbcda7ad Merge "vibrator: fix issue with ledtrig-transient support" am: 60849b8da4
am: 95d22ed018

Change-Id: I3d194c481e5060ac658832af294842868f88ab9a
2017-03-11 01:31:40 +00:00