Commit graph

617 commits

Author SHA1 Message Date
Peng Xu
9347e65c5d Merge "Hid Utilities for HID based dynamic sensor" into oc-dev
am: 2577ac2cad

Change-Id: I037c9d5fc4bcefa0ee83cbb6f0f9fcb973333485
2017-04-19 21:57:35 +00:00
TreeHugger Robot
2577ac2cad Merge "Hid Utilities for HID based dynamic sensor" into oc-dev 2017-04-19 21:23:08 +00:00
Peng Xu
5beee10b17 Hid Utilities for HID based dynamic sensor
An HID utility library for constructing HID based dynamic sensor.

Primary functionality is in HidParser.h, which parses HID
descriptor into useful data structures. Supporting classes and
structures can be used individually as well.

Test: run tests in HidUtils/test
Bug: 37482274
Change-Id: Icfb59414bb6a1e7b6cdd1078a1a83820e70bbef8
2017-04-18 15:56:57 -07:00
Steven Moreland
a81298a515 gralloc: fix dependencies
am: e7722d4e3f

Change-Id: Ic543ed400eacd52ee4a99119776e1378e2358e91
2017-04-18 02:01:48 +00:00
Steven Moreland
e7722d4e3f gralloc: fix dependencies
Test: works with BOARD_VNDK_VERSION := current
Bug: 33241851
Change-Id: I145488dbf9b6e5257bee47920643c03c31eafbf4
2017-04-17 16:30:05 -07:00
Steven Moreland
814cd113c6 multihal: move to vendor
am: 17d4579494

Change-Id: I93be9bfd26c24aaaeaa5a38a6665ec3f285bb7e5
2017-04-14 23:44:59 +00:00
Steven Moreland
17d4579494 multihal: move to vendor
Test: works
Bug: 33241851
Change-Id: I752d2a67c0dde2c635970f6aa24f58f5da85e785
2017-04-14 11:07:49 -07:00
Steven Moreland
b2e7fd4712 Merge "nfc.default: remove unneeded dependency" into oc-dev
am: 19e18b3d0e

Change-Id: I694ac1aba965849f5f4bd59b3d7bd61bb60da4e6
2017-04-13 04:25:06 +00:00
Steven Moreland
d23bf8aabb nfc.default: remove unneeded dependency
libcutils was not used

Test: links
Bug: 33241851
Change-Id: Ic53e48b95461bb09b44df83952288a96ba9af65a
2017-04-12 23:00:56 +00:00
Mark Salyzyn
1ae7379baa resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Bug: 34250038
Change-Id: I4196a6d5a1365106643ac6c1548fd86faffead6f
2017-04-12 09:11:38 -07:00
TreeHugger Robot
64e609dda8 Merge "consumerir.default: remove unneeded dependency." into oc-dev 2017-04-12 09:54:11 +00:00
Peng Xu
7c371eb532 Merge "Dynamic sensor manager -- implementation of basic sensor daemon" into oc-dev 2017-04-12 06:29:13 +00:00
Steven Moreland
9e20781d64 consumerir.default: remove unneeded dependency.
Only liblog things are being used but libcutils was being included.

Test: links
Change-Id: I50492f49cef449256cad49823a21166f0d089bac
2017-04-12 03:25:10 +00:00
Mark Salyzyn
d88dfe8607 libhardware: deprecate cutils/log.h
Replace cutils/log.h with log/log.h. Sort headers. Minimize conflicts.
Add missing required headers.

Test: compile
Bug: 34250038
Change-Id: I5c0f231cbfed90b73e0538c9d32ad3226c7cc5e4
2017-04-11 10:50:06 -07:00
Steven Moreland
02b5d168f2 audio.*.default: remove unneeded dependency/IWYU
libcutils not needed as only functions from liblog are being used

Test: links
Change-Id: I2a2cb58d883c0ec1e26a2f023865b137517da432
2017-04-11 17:37:41 +00:00
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
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
95d22ed018 Merge "vibrator: fix issue with ledtrig-transient support"
am: 60849b8da4

Change-Id: I539a36cf4b0ec0d991fefae22f0e65d68704da8f
2017-03-11 01:28:11 +00:00
Peng Xu
e12a0cc39d Merge "Dynamic sensor manager module - framework" 2017-03-10 22:21:31 +00: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
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
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
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
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
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
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
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
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
Ashutosh Joshi
9eb5bbd45f Drop support for old Sensor HALs.
Dropping support for Sensor HAL version 1.0.
Sensor HALs version 1.1 and 1.2 are already depracated.
This makes version 1.3 as the earliest supported version.

Test: Sensors CTS tests still pass.
Change-Id: I806ce1d0d9277cbb312d9f90749975420cef2109
2017-01-09 17:09:35 -08:00
Tomasz Wasilczyk
3c7297a55a Make metadata field mandatory for program info struct.
Test: VTS, manual
Change-Id: I105f960442839f512db593615e2f2548ffdded35
2017-01-06 14:19:52 -08:00
Romain Guy
d0eb44c6da Add support for *_FP16 pixel formats
Bug: 32984164
Test: compile
Change-Id: I0851c62f140801c6784fdb597b3d947402aa5876
2016-12-16 09:53:20 -08:00
Nick Vaccaro
8a83708dae Sensors: MultiHal: add support for HIDL
Add get_multi_hal_module_info() to support using multi-hal
functionality within the HIDL sensor implementation.

Move externally relevant constants and prototypes to new multihal.h
file.

Add new Android.bp for Treble to build multi-hal into a static
library that is now included by the HIDL sensor implementation.

Bug: 32022308
Change-Id: I2b3afa9ff1e0a2e5a098e643dde99ec86bb88206
2016-12-15 14:09:34 -08:00
TreeHugger Robot
00f43fc376 Merge "fifo: add dependency needed after re-implementation of MonoPipe" 2016-12-14 00:29:01 +00:00
Eric Laurent
de8e013f54 stub radio HAL: fix default antenna connected state for FM.
Bug: 33583729
Change-Id: Ifbd2c95ab34a8faa7d31f4a1b2f28c6d7df38766

Test: build and run broadcast radio VTS
2016-12-13 14:21:51 -08:00
Glenn Kasten
57eaa9bcd8 fifo: add dependency needed after re-implementation of MonoPipe
MonoPipe is being re-implemented on top of FIFO in audio_utils.

Test: builds OK
Change-Id: I42a30c5cc859150c3b9e2b23aad3c9c14c7c341a
2016-12-12 15:54:14 -08:00
liuchao
2c038fa66f Merge "Add else branch to avoide fclose(NULL)" am: 10b043bb13 am: dded161774 am: 903044c667
am: f7e0b5185e

Change-Id: I63549a1b35a0ffb82f90f0cf0ea0fdc5005f4943
2016-11-22 16:52:00 +00:00
liuchao
903044c667 Merge "Add else branch to avoide fclose(NULL)" am: 10b043bb13
am: dded161774

Change-Id: Ifda3e38fe8129b8ea680c99689f9b0a49fdba831
2016-11-22 16:26:40 +00:00
liuchao
dded161774 Merge "Add else branch to avoide fclose(NULL)"
am: 10b043bb13

Change-Id: I224fec5854599172b49792167a7c92af56d55443
2016-11-22 16:24:09 +00:00
liuchao
df7d84a049 Add else branch to avoide fclose(NULL)
This fixes a potential NULL-pointer reference crash in case
cpu_file == NULL and pass NULL to fclose().

Test: mm -j 8
Change-Id: Ib3267676bea910533bd85ac2935efe02d361fc6b
2016-11-16 09:26:53 +08:00
Dmitry Shmidt
4d2f024df6 resolve merge conflicts of d20fe45 to stage-aosp-master
am: a905c234da

Change-Id: I7406c544bdb2a0ffa545640bc6a4e56acbd4e1ef
2016-10-26 23:13:58 +00:00
Dmitry Shmidt
a905c234da resolve merge conflicts of d20fe45 to stage-aosp-master
Change-Id: I4669a7566205f01217c9104b489fed4ee8d3fe3b
2016-10-26 16:02:39 -07:00
Dmitry Shmidt
a898f93475 audio: Fix size_t related warnings
Test: manual

Change-Id: I34961243f2d4b95c47d954fc616404391302595a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2016-10-26 13:54:25 -07:00
Eric Laurent
c37e6fe0ce radio: fixes in stub FM radio HAL.
Change-Id: I0adf39a08a364ffdecb1c7f618190174804865f4
2016-10-25 14:26:29 -07:00
Nick Vaccaro
1e8c5b1e22 Sensors: MultiHal: support sensor API version 1.4 am: c1ded2afef
am: 2fef0a95e9

Change-Id: I5c63fa98b137c64f906543ff23748e2ef683fe8b
2016-10-14 21:42:44 +00:00
Nick Vaccaro
2fef0a95e9 Sensors: MultiHal: support sensor API version 1.4
am: c1ded2afef

Change-Id: I74d275a51937754917d5115750bfb783fbb06b2c
2016-10-14 21:38:48 +00:00
Nick Vaccaro
c1ded2afef Sensors: MultiHal: support sensor API version 1.4
Add ability to support HALs with an API version of
SENSORS_DEVICE_API_VERSION_1_4.

Bug: 32113642
Change-Id: If61ff54faa9aefc959102a097df60e75a230cae3
2016-10-14 10:31:56 -07:00
Glenn Kasten
2494caec36 Be stricter about warnings
Test: build for several platforms
Change-Id: I8d66a74c72713f3cd7021b1924f72ea4a9e11c15
2016-10-07 08:44:58 -07:00
Greg Kaiser
09c2455a67 Merge "modules/camera: Fix compiler warnings" am: f7888e1130 am: f832261e65 am: d6cebded75
am: c25d13db4a

Change-Id: Ie66d7974be62bb0db5bfcf73a3ddbb28cd9f8390
2016-09-01 01:53:45 +00:00
Greg Kaiser
c25d13db4a Merge "modules/camera: Fix compiler warnings" am: f7888e1130 am: f832261e65
am: d6cebded75

Change-Id: I503be65fbe7c7f40f6700705f70184eebba182ab
2016-08-31 22:10:26 +00:00