Commit graph

466 commits

Author SHA1 Message Date
Brian Duddie
f4a503a101 Add sensors 1.0 default HAL to uhid group
am: 82299438b5

Change-Id: I4b9fbba3e85873763211b1bb36a2bf5d80fb39a1
2019-10-08 12:54:21 -07:00
Brian Duddie
82299438b5 Add sensors 1.0 default HAL to uhid group
Ensures it can access /dev/uinput in Android Q, sepolicy permitting.

Bug: 142105193
Test: confirm hall sensor works again on marlin
Change-Id: I585c32d4da4bdc0917068e4d81adeca43d257e56
2019-10-07 15:53:27 -07:00
Steven Moreland
82b84148c7 Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I878a4d04e65ef13f3a0ebaf64177f673958d213c
2019-10-02 12:50:29 -07:00
Stan Rokita
d45e49b4b3 Merge "MH2 | Implement pending writes thread" 2019-09-26 15:15:19 +00:00
Stan Rokita
5971426925 MH2 | Implement pending writes thread
Spin up a background thread inside the hal proxy that is responsible for
writing events to the event fmq if a previous write failed on the normal
postEvents thread. Create several new unit tests that help test the new
functionality.

Bug: 136511617
Test: Unit tests passing.
Change-Id: Ic35c9736fc0402297ab50072c195f66c9feb887d
2019-09-25 16:40:53 -07:00
Stan Rokita
db23aa825b MH2 | Implement direct channel and direct report methods
Implement registerDirectChannel, unregisterDirectChannel, and
configDirectReport methods of HalProxy.

Bug: 136511617
Test: Compiles successfully. Simple enough change to ignore unit tests
for now.

Change-Id: I7e1e6a4da6ba2fc070836084210c83bd9b53aabe
2019-09-24 14:46:49 -07:00
Stan Rokita
83e4370aec MH2 | Implement injectSensorData method of HalProxy
Bug: 136511617
Test: Compiles. No unit tests needed right now for such simple change.
Change-Id: Iaaf74579c26393ef8854ae717f01bb7a451de496
2019-09-24 10:44:53 -07:00
Stan Rokita
d0cd57d4cb MH2 | Implement ScopeWakelock ctor and dtor
Put the ScopedWakelock class into its own header and its implementation
into its own cpp. Implement the refcounting of the wakelocks. However,
do not incorporate the wakelock handling into post events in halproxy
yet.

Bug: 136511617
Test: No new tests yet. Will add more in a later patchset once more
fleshed out and integrated with postEvents.
Change-Id: I0815c6a6659ec5933b799294956595b11e7bf1b3
2019-09-23 08:55:28 -07:00
Stan Rokita
537c0274b8 MH2 | Add rough proxy callback postEvents method
Add post events method to HalProxyCallback without fully implementing
the wakeup events handling and pending blocking writes. Also change
mSensorList of the halProxy to mSensors which is a map from sensorHandle
to sensorInfo so that getNumWakeupEvents method of callback can find
sensorinfo info from sensorhandle of event type. Instantiate
halproxycallback vector in HalProxy for each subhal in the ctor as well.
Add very simple test for the postEvents method of callback.

Bug: 136511617
Test: New unit test passes.
Change-Id: I39c861cff286f24992bfcfcaa6bb468b4544b0e0
2019-09-23 08:55:17 -07:00
Stan Rokita
f97a3f3579 Multihal 2.0 - Small tweaks to sensorHandle handling
Add the sensor handle to subhal index bitmask as a constant. Change the
name of zeroOutFirstByte method to clearSubHalIndex and use the constant
there. Also use the constant in initSensorsList method.

Bug: 136511617
Test: Tested compilation success.
Change-Id: I3983850827697ff77c484e7b8d33e7722a7fb52a
2019-09-13 10:04:44 -07:00
Stan Rokita
7a7235461f MultiHal 2.0 - setOperationMode and init direct channel flags
Implement setOperationMode method of HalProxy object and initialized the
direct channel flag for the sensors list. Also create some unit tests to
test both of these new additions in HalProxy_test.cpp.

Bug: 136511617
Test: Tested using unit tests and tested on device with both fake
      subhals

Change-Id: I4e39ca0e94b3e109706d628612d1db9c98aca053
2019-09-12 15:05:53 -07:00
Stan Rokita
dc7a8e7898 MultiHal 2.0 - Get sensors list from subhals
Implement SubHal constructors. The default ctor will get the SubHal
object pointers from dynamic libraries. The test ctor will take a vector
of SubHal objects. Implment the HalProxy getSensorsList method which
will return all the sensors from the subhal objects. Create one unit
test for getSensorsList as well.

Bug: 136511617
Test: Flashed onto device and observed proper logs for both test
subhals. Also, passed getSensorsList test.

Change-Id: I6e8ca4883c50daabbd7b0955d3664f66b6cd74bf
2019-09-12 14:23:41 -07:00
Stan Rokita
4b4c7b744d MultiHal 2.0 - activate, batch, flush methods of HalProxy
These three methods of HalProxy simply call the apropriate ISensors
methods of the subhal pointed to by sensorHandle.

Test: Loaded onto device and observed no crashing.
Bug: 136511617
Change-Id: If90652554ea18c22b24aead0074ab9847eae0a4f
2019-09-11 07:43:22 -07:00
Stan Rokita
1638531dfb MultiHal 2.0 - proxying api calls helper methods
Create getSubHalForSensorHandle method which will get the proper subhal
pointer by getting the subhal list index from the first byte of the
sensor handle. Create the zeroOutFirstByte static helper method that
will return a version of the sensor handle without the first byte when
passed a handle.

Test: Tested compilation.
Bug: 136511617
Change-Id: I7d07003e1903aa1d8abaf904b778248c7b352653
2019-09-11 07:43:20 -07:00
Xin Li
15be13ea71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: Ia07db5c8afeed7fe22a2b18d867a38390f910a81
Merged-In: Ibbd540dbb5baee46360d3fe9469212cfd8f550ba
2019-09-08 13:06:54 -07:00
Steven Moreland
38c46d0b98 Merge "Remove libhwbinder/libhidltransport deps" am: 6b62c58a9a am: 8c22c3862f am: 6684ee8c36
am: 9a5ffa3196

Change-Id: I3a80895d10767fe68e90a907312a83ded976cbcc
2019-09-06 16:06:13 -07:00
Steven Moreland
6684ee8c36 Merge "Remove libhwbinder/libhidltransport deps" am: 6b62c58a9a
am: 8c22c3862f

Change-Id: Iaedfceb49f81387f7deaad434613b7c9f1c502a0
2019-09-06 14:28:04 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Anthony Stange
aacbf94854 Set up shell to use for unit tests
Sets up a unit test file that can be used to unit test the HalProxy. The
unit tests will eventually end up containing code that injects the fake
SensorsSubHal implementation into the HalProxy and verifies various
parts of the implementation. This will likely require some modifications
to the SensorsSubHal class to modify it during test execution, but it's
better that the same implementation is shared between unit / manual
integration testing.

Test: Run atest android.hardware.sensors@2.0-halproxy-unit-tests
Bug: 136511617
Change-Id: I7b6865564ea41ab3c58f77d3168366c95e3289e5
2019-09-03 11:22:38 -04:00
Stan Rokita
2879067ddb Multihal 2.0 - Implement SubHal discovery
Collect the SubHal pointers discovered from dynamic libs contained
within the multi hal config file.

Bug: 136511617
Test: Compiled with mma -j and observed loading of modules

Change-Id: I148265722e70d4cd56671af9c6f1ff6dde355ae4
2019-08-23 11:16:58 -07:00
Anthony Stange
c34e6683b1 Add a sub-HAL implementation for testing multi-HAL
Creates a fake sub-HAL using the default implementation for sensors HAL
2.0 with some small modifications to support the multi-HAL interface.

This sub-HAL can be configured to support two different sets of sensors
making it easier to build and load two different sub-HAL implementations
onto device and verify the multihal implementation works.

Bug: 136511617
Test: compile only. Once multihal can load in sub-HALs, then this can be
accurately tested.

Change-Id: I9b136506bdbc8a3b196fd363748bddfcdd564daf
2019-08-13 21:48:20 +00:00
Anthony Stange
a689f8a65b Add skeleton for multihal 2.0
Creates a basic set of structures needed to implement multihal 2.0.
Descriptions of each are as follows:

HalProxy - Main point of contact from the sensors framework. Implements
the ISensors interface and will implement several callbacks passed to
sub-HALs in the future

SubHal - Contains interface that sub-HALs are expected to implement in
order to be loaded properly by the HalProxy. Also contains definitions
for various callbacks and classes that will be fully implemented by the
HalProxy.

service.cpp - contains the main function that is reponsible for
initializing the HalProxy and starting the thread pool that will handle
communication between the HalProxy and sensors framework.

Bug: 136511617
Test: compile for now. Stubbed out sub-HAL to be added in a followup CL
    to facilitate testing before a vendor implements the subHAL
    interface.
Change-Id: If663159d444d721a0a65ebe49dd92e8924bbb3a3
2019-08-12 09:26:08 -04:00
Brian Duddie
d48333f6e1 Merge changes from topic "c2f2_sensors_vts" into qt-r1-dev am: 8813be6341 am: bab0c7efe3
am: 93d6c13f8e

Change-Id: Id49809aa35dfafb607c8ba781e48e1357981daa6
2019-08-02 21:11:02 -07:00
Anthony Stange
3883b06ed3 Change expected return type in direct report VTS am: 4bdd8fc774 am: 86063dc8da
am: 7063c1b00e

Change-Id: Ic541b4559b8958fd391553eedfc98b0f431168f8
2019-08-02 21:10:56 -07:00
Brian Duddie
b8959f4d0d Add support for new gralloc HAL versions am: df6e2b70ae am: 1eee061c84
am: 43e152dc7f

Change-Id: I6948a686cd20b139cd70a887e6797be51648d8ec
2019-08-02 21:10:52 -07:00
Vishal Agarwal
bb94a725ca Merge "VTS Sensor HAL 2.0: Fix Batch for One Shot sensors" into qt-r1-dev am: effdb89c97 am: 7af073c790
am: 2fe3c426b7

Change-Id: I907a418ab70bca9500677e65ab9fdfc80d9a5599
2019-08-02 21:10:48 -07:00
Brian Duddie
bab0c7efe3 Merge changes from topic "c2f2_sensors_vts" into qt-r1-dev
am: 8813be6341

Change-Id: Ie652236cdbd4734dc723fac8c27ca876161f623d
2019-08-02 19:40:55 -07:00
Anthony Stange
86063dc8da Change expected return type in direct report VTS
am: 4bdd8fc774

Change-Id: I7b313096992aa15f34a408fbed67b02e74060d5f
2019-08-02 19:40:49 -07:00
Brian Duddie
1eee061c84 Add support for new gralloc HAL versions
am: df6e2b70ae

Change-Id: Iea28b01046e9094a28d538119e5acdf845385f6f
2019-08-02 19:40:42 -07:00
Vishal Agarwal
7af073c790 Merge "VTS Sensor HAL 2.0: Fix Batch for One Shot sensors" into qt-r1-dev
am: effdb89c97

Change-Id: Ie3fa0c0a3a02e58d88ecc6971ca8bb744c005103
2019-08-02 19:40:33 -07:00
TreeHugger Robot
8813be6341 Merge changes from topic "c2f2_sensors_vts" into qt-r1-dev
* changes:
  Fix handling of reportToken when stopping
  Change expected return type in direct report VTS
  Add support for new gralloc HAL versions
2019-08-03 02:32:32 +00:00
TreeHugger Robot
effdb89c97 Merge "VTS Sensor HAL 2.0: Fix Batch for One Shot sensors" into qt-r1-dev 2019-08-03 02:32:32 +00:00
Andrew Lehmer
db00373b1b Fix assumptions in SensorsHidlTest.NoStaleEvents am: d8b212ec3e am: fec6b3b18f
am: 9b65c929d0

Change-Id: I98efe951a44574640426b72151bc07d478efe332
2019-08-02 18:14:05 -07:00
Andrew Lehmer
9b65c929d0 Fix assumptions in SensorsHidlTest.NoStaleEvents am: d8b212ec3e
am: fec6b3b18f

Change-Id: I804356a47b3c7178a14f347cd3c38be22b98a39b
2019-08-02 17:44:30 -07:00
Andrew Lehmer
2e3eceded7 Fix assumptions in SensorsHidlTest.NoStaleEvents
am: d8b212ec3e

Change-Id: I039f346605006576c7854de75d4d57b0aac08324
2019-08-02 17:33:35 -07:00
Brian Duddie
63d4f57976 Fix handling of reportToken when stopping
VTS should ignore the reportToken returned by configDirectReport when it
passes in RateLevel::STOP.

Bug: 138758242
Test: run direct channel tests on device using 2.0 HAL
Change-Id: I07e789157e051ceab488a61e856f17d50f435072
2019-08-02 15:16:45 -07:00
Anthony Stange
4bdd8fc774 Change expected return type in direct report VTS
If a sensor doesn't support a particular memory type for direct
reporting, then registerChannel will return an invalid channel handle.
When this handle is used in configureDirectReport, it will return
BAD_VALUE and when used in unregisterDirectReport, it will return OK.
Currently, the VTS tests assert it will return INVALID_OPERATION, but
that will only happen if the entire HAL doesn't support direct
reporting instead of a single sensor not supporting a certain memory
type.

Bug: 138758242
Test: Run VTS and verify DirectChannel* tests now pass
Change-Id: Ifba4262b68ec0c4ca6921dad40a03e0a52088d28
2019-08-02 15:08:30 -07:00
Vishal Agarwal
66d8297210 VTS Sensor HAL 2.0: Fix Batch for One Shot sensors
One Shot sensors have minDelay set to -1. Force the minDelay to be 0 in
the VTS test to avoid errors from invalid parameter

Bug: 138758242
Test: Run Batch test manually VtsHalSensorsV2_0TargetTest --gtest_filter=SensorsHidlTest.Batch
Change-Id: Ib2287f6f11502c10d346f5e7216c5f31d585edf9
2019-08-02 14:03:41 -07:00
Andrew Lehmer
d8b212ec3e Fix assumptions in SensorsHidlTest.NoStaleEvents
This test was making a couple of false assumptions which were causing it
to fail. The fixes are related to the following assertions:
  1. One-shot sensors do not report an initial event.
  2. Special sensors may not report an initial event.
  2. Some on-change sensors may not report an initial event.
The test now only checks for a stale event if the sensor reports an
initial event consistently.

Bug: 138758242
Test: ran on C2 DVT; only fails due to an improperly configured sensor
Change-Id: I83f0cb2f6e878244f3d94ae77f64bb8ed2f78e0b
2019-08-02 14:01:57 -07:00
Brian Duddie
df6e2b70ae Add support for new gralloc HAL versions
As VTS connects to the IMapper and IAllocator HALs directly, it needs to
handle the case where the device only supports the newer HAL versions,
which includes IMapper 2.1 & 3.0 and IAllocator 3.0.

Since sensors VTS uses the same functionality from the different HAL
versions, condense the code into a common interface with HAL
version-specific template instantiation. Also remove the unused code
that came along with copying from the gralloc VTS reference source.

Bug: 138758242
Test: run gralloc-related sensors VTS on Pixel 2+
Change-Id: I1646d8f92546623594af8541bc8ac02955370694
2019-08-02 12:07:39 -07:00
Anthony Stange
57800d71f6 Update OWNERS for sensors HAL
Changes sensors team owners to reflect the current owners on the team.

Test: N/A
Change-Id: Ic5b957bc65688ffb2bce7d0eab256a5153b61efd
2019-07-31 09:47:06 -04:00
Anthony Stange
09100250f7 Merge "Fix wait_for timestamps in Sensors VTS" into qt-r1-dev am: 29c8337d89 am: e62371fe48
am: 848f995df5

Change-Id: I0266ed4a31a3bc6e1978b20cfd958dbb7e663950
2019-07-29 16:42:32 -07:00
Anthony Stange
848f995df5 Merge "Fix wait_for timestamps in Sensors VTS" into qt-r1-dev am: 29c8337d89
am: e62371fe48

Change-Id: Ic56589dde075b4e1709b140ee439887a36f9994c
2019-07-29 15:53:39 -07:00
Anthony Stange
1cc1242cbe Merge "Fix wait_for timestamps in Sensors VTS" into qt-r1-dev
am: 29c8337d89

Change-Id: I781d960f513045bdf46e8ee6e2f613e8e0f5aa8a
2019-07-29 15:45:41 -07:00
Anthony Stange
4a80e231ed Fix wait_for timestamps in Sensors VTS
Previously, NoStaleEvents was treating any timestamps it dealt with as
if they were in microseconds, but sensors.minDelay is in microseconds
and Event timestamps are in nanoseconds. This uses std::chrono helpers
to ensure the correct time is used when deciding how long to sleep
during the test so that if waitForEvents never passes, the test doesn't
time out.

Bug: 136736906
Test: Run VTS and verify VtsHalSensorsV2_0Target doesn't finish as an
    incomplete module.

Change-Id: Ibba59dbf9312f97d7275e5aa8cd36547ab09e328
2019-07-29 14:40:20 -04:00
Anthony Stange
0a049754b3 Verify mPollThread is joinable before detaching am: 65945cfb15 am: f75cf1cf4d
am: ce98cb7938

Change-Id: If939dfc29dade2ab90dc398253e5eb73752e4c19
2019-07-15 18:47:51 -07:00
Anthony Stange
ce98cb7938 Verify mPollThread is joinable before detaching am: 65945cfb15
am: f75cf1cf4d

Change-Id: I8282d67898fffa2efff979250b10dde842511daa
2019-07-15 18:12:24 -07:00
Anthony Stange
f75cf1cf4d Verify mPollThread is joinable before detaching
am: 65945cfb15

Change-Id: Iee183865223aa993241c19924245177b3462d4da
2019-07-15 17:50:18 -07:00
Anthony Stange
65945cfb15 Verify mPollThread is joinable before detaching
If HidlSetUp() bails before startPollingThread() is called (which can
happen if the HAL isn't implemented on the given device), mPollThread
will initialize with the default constructor resulting in joinable()
returning false which means calling detach() throws an exception.

Checking joinable() before detaching allows the test suite to be skipped
successfully.

Fixes: 136736906
Test: Run vts-tradefed on VtsHalSensorsV1_0Target and verify that it is
    skipped successfully on a device that doesn't support HAL 1.0

Change-Id: Ie685ae2dc314edb8df2f3cc7112141a2f5e46008
2019-07-15 19:17:25 +00:00
Felix
84af4f6e7e Merge "Add interface info to .rc files" am: 98d0f4d52c am: 37298a7616 am: 3531ec0183
am: bf481c99ed

Change-Id: Ie44e2aa87f7407a9820dc6f1ad6298b61bae34f3
2019-07-08 12:57:01 -07:00
Felix
bf481c99ed Merge "Add interface info to .rc files" am: 98d0f4d52c am: 37298a7616
am: 3531ec0183

Change-Id: I9a48f01064e6b64fdbd3dcae3623163a27998703
2019-07-08 12:42:48 -07:00
Felix
3531ec0183 Merge "Add interface info to .rc files" am: 98d0f4d52c
am: 37298a7616

Change-Id: Ib279bd04cbdf030104d077b9a2a836a348322476
2019-07-08 12:31:38 -07:00
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00
Anthony Stange
2e89e4344b Merge "Deactivate sensors after flush events are received" into qt-dev am: 8913d1df2c am: 9ca9db61f8
am: 2ff09083af

Change-Id: I28bea9e6d7ab6083e6ee2f7d112b3eb2a6953027
2019-07-02 16:48:57 -07:00
Anthony Stange
80a247e090 Merge "Deactivate sensors after flush events are received" into qt-dev
am: 8913d1df2c

Change-Id: Ie32a5d1c5f1308060af6ae8c3b7d4c25ebdc9301
2019-07-02 15:14:45 -07:00
Anthony Stange
2ff09083af Merge "Deactivate sensors after flush events are received" into qt-dev am: 8913d1df2c
am: 9ca9db61f8

Change-Id: I4e3f088897dd557e92191bccb5b46288ecf40806
2019-07-02 15:14:18 -07:00
Anthony Stange
9ca9db61f8 Merge "Deactivate sensors after flush events are received" into qt-dev
am: 8913d1df2c

Change-Id: I74b279c6e4b26429c3868fac3e9ca9e0327af202
2019-07-02 14:44:12 -07:00
TreeHugger Robot
8913d1df2c Merge "Deactivate sensors after flush events are received" into qt-dev 2019-07-02 16:28:53 +00:00
Anthony Stange
4d90400985 Deactivate sensors after flush events are received
The VTS flush test case was previously deactivating sensors before
waiting for flush events to be received causing any pending flush events
to be discarded per the HAL contract.

Bug: 136472044
Test: Run test and ensure it passes
Change-Id: I23b94e650c6dbbc33640768bee356a49565ba753
2019-07-01 21:29:01 +00:00
Brian Duddie
1353468370 Avoid potential race condition in test setup
Resize the event queue before starting the polling thread to avoid
potential concurrent access.

Test: run VtsHalSensorsV2_0TargetTest
Change-Id: I71af46169e7731df4135639644665365b3714e1f
2019-07-01 18:07:03 +00:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
Brian Duddie
b828e7bc48 Avoid NPD when re-initializing HAL fails
am: bd109b9374

Change-Id: Ibe5e262b89dc2f9645ee44bc084265164cd57827
2019-06-20 18:05:25 -07:00
Brian Duddie
62a0c5bae9 Fix NPD in GrallocWrapper
am: ccbcaaee45

Change-Id: Id9cc57ee5f9bfbabb64285671a23b6b9dbfc7b69
2019-06-20 18:05:22 -07:00
Brian Duddie
06ef2015ee Fix log tag for sensors VTS tests
am: 56d64faff7

Change-Id: I5e2c3e8aca8133fde1d26c0615b9245d54a76f43
2019-06-20 18:05:18 -07:00
Brian Duddie
bd109b9374 Avoid NPD when re-initializing HAL fails
If the sensors HAL crashes or errors out during a test where we manually
re-run the environment setup function (e.g.
CleanupConnectionsOnInitialize), the pointer to the interface will
become null. Avoid dereferencing it by checking for nullness in the
per-test setup function and after each manual setup call. Also add a
death recipient to help identify instances where the HAL crashes during
a test.

Bug: 135638664
Test: run VTS on device where HAL crashes during above mentioned test
Change-Id: Iff7aa159c6b859272cfd18e7efb3ca431ea214fc
2019-06-20 13:36:43 -07:00
Brian Duddie
ccbcaaee45 Fix NPD in GrallocWrapper
Avoid dereferencing null if mapper service is not available.

Bug: 135638664
Test: run VtsHalSensorsV2_0TargetTest
Change-Id: I3cf2a9f152d8f1737cb5a94356e252d54156c716
2019-06-20 13:36:43 -07:00
Brian Duddie
56d64faff7 Fix log tag for sensors VTS tests
Define log tag at build level to ensure all libraries have a tag
defined.

Bug: 135638664
Test: run VtsHalSensorsV2_0TargetTest
Change-Id: I593055b59238e9fa8dead00a3dafa84c00e90ec4
2019-06-20 13:36:43 -07:00
Brian Duddie
6834c2da4f Merge "Notify HAL when events are read" into qt-dev am: be19a50010
am: 2f0cedfad1

Change-Id: I5970e4b104e7d227ec50afe1207d5f392bebba65
2019-06-19 16:05:29 -07:00
Brian Duddie
45668158f5 Merge "Notify HAL when events are read" into qt-dev
am: be19a50010

Change-Id: I1339c37d0a28fd056afbc3f2ce1634bfbb60a955
2019-06-19 15:44:11 -07:00
Brian Duddie
441842e38e Notify HAL when events are read
As defined in the HAL specification, the client of the HAL (framework or
VTS) needs to set the EVENTS_READ flag when it fetches samples out of
the FMQ, to support blocking write mode.

Bug: 135442877
Test: run VTS on a device supporting HAL 2.0
Change-Id: Ic7755e869b999b638086275e4e579a84600be314
2019-06-19 02:14:51 +00:00
Brian Duddie
ffe139e47c Merge "Add guidance for avoiding race in Sensors HAL 2.0" into qt-dev
am: 5c654f3fc6

Change-Id: I4720ca0dd2ec1c30b234fdf61aa6a3430ddd7a3e
2019-06-18 17:23:24 -07:00
Brian Duddie
a69036fbfe Add guidance for avoiding race in Sensors HAL 2.0
Bug: 135216821
Test: n/a, comment change only
Change-Id: Iad491c5e221c86a2724d4074ac645b8ee6e9af6f
2019-06-15 00:49:05 +00:00
Brian Duddie
0e70902d34 Fix null deref in sensors 2.0 VTS teardown
am: b6b28e58c4

Change-Id: I98288c2bea54fdbb7e733913ccba839817b7217a
2019-06-11 14:08:02 -07:00
Brian Duddie
b6b28e58c4 Fix null deref in sensors 2.0 VTS teardown
Avoid attempting to clean up resources that were never initialized, e.g.
if the target device doesn't support the version of the HAL in question.

Fixes: 134911861
Test: run VtsHalSensorsV2_0Target on device that only supports HAL v1.0
Change-Id: I6b529fae13b1347d533a19e04f1c7748bcda961b
2019-06-11 17:43:22 +00:00
Pierre Fite-Georgel
ba7ccb21f7 Clarify documentation for AINFO_SENSOR_PLACEMENT
am: 26c952bf61

Change-Id: Id3e7df67de64fb34f5139c4626760238d275efa7
2019-05-29 13:45:06 -07:00
Pierre Fite-Georgel
26c952bf61 Clarify documentation for AINFO_SENSOR_PLACEMENT
Specify units of location vector and define the direction of the
rotation matrix translation as Android device frame to local sensor
frame.

Fixes: 133264933
Test: n/a, comment update only
Change-Id: I76dae7a6fae3c8f44a4dcd1fcc6b790abff86420
2019-05-29 09:07:52 -07:00
Steven Moreland
99712c08cc Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I53e5bf67a0d314e1b10c0ba0c7172a7af358ddcc
2019-04-18 18:13:05 -07:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Brian Stack
565cb9d2f0 Rename init script for Sensors 2.0 Mock Service
Bug: 129562840
Test: Builds
Change-Id: I4744a8e00657f39010d5e2a39fe38d13813e6439
2019-03-29 15:21:27 -07:00
Steven Moreland
87f43604b9 Merge "Update makefies: no 'types' internal" 2019-03-05 17:40:03 +00:00
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Steven Moreland
b91ac5c6a0 Update makefies: no 'types' internal
Bug: 123976090
Test: N/A
Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
2019-03-04 14:09:25 -08:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Steven Moreland
f8a47b7f01 Update makefiles.
Bug: 123976090
Test: N/A
Change-Id: I5fb6c126a090a3fe0fa4829ea9224564133dc1ae
2019-02-11 21:14:16 -08:00
Brian Stack
e42843f4ad Rename Sensors 2.0 Default Implementation
Rename the default implementation to include ".mock" to indicate that
the default implementation is a mock service and not intended to be
used on production devices.

Bug: 124020028
Test: Builds, cuttlefish loads sensors
Change-Id: I28c29f23615324cb2ae1dbe1767f18d40cf8d8e1
2019-02-07 10:42:28 -08:00
TreeHugger Robot
c9da65afbb Merge "Properly append META_DATA event on flush" 2019-01-30 18:27:16 +00:00
Brian Stack
e388f14db6 Use more realistic values for sensors
Bug: 123597515
Test: Builds, cuttlefish device health checks pass
Change-Id: Ifddf16761a218788ac7174e16b2d9f7ebb9685a9
2019-01-30 00:44:55 +00:00
Brian Stack
913334e036 Properly append META_DATA event on flush
Bug: 123597380
Test: atest VtsHalSensorsV2_0TargetTest:SensorsHidlTest#FlushSensor
Test: Framework properly receives and handles flush complete events
Change-Id: I09d2b52555c27602e1fd2ee2282f8ad700a1be18
2019-01-29 15:40:41 -08:00
Brian Stack
a2d16bbc44 Add missing sensors to Sensors 2.0
Bug: 123380869
Test: atest com.android.devicehealthchecks.SensorsBootCheck#checkSensors
      passes on Cuttlefish
Change-Id: I08a8406b3932469878da981add61f60b7774a377
2019-01-28 10:57:40 -08:00
Brian Stack
8972040239 Add VINTF Fragment to Sensors HAL 2.0
Bug: 122267378
Test: Built Cuttlefish, Sensors HAL 2.0 requested on boot
Change-Id: Ibe1eaa277852db1b8346caee172632f0951daefc
2019-01-23 22:35:38 +00:00
Brian Stack
1f56b51862 Verify stale requests are removed
Add tests to verify that sensor requests and direct connections are
invalidated after initialize is called on the Sensors HAL.

Bug: 120857563
Test: Builds, tests pass against default implementation
Change-Id: I690bc5168dfa9adb7b5e08fd6ddac49f68366846
2019-01-15 09:30:33 -08:00
TreeHugger Robot
bc91e1388c Merge "Stop Wake Lock thread if it is running" 2019-01-12 05:57:20 +00:00
TreeHugger Robot
0fffa374e3 Merge "Add WakeLockQueueFlagBits to Sensors 2.0" 2019-01-11 03:08:23 +00:00
Brian Stack
2c313368d8 Add WakeLockQueueFlagBits to Sensors 2.0
WakeLockQueueFlagBits is used to signal between the framework and the
HAL whenever events are available on the Wake Lock FMQ. The
introduction of this type allows for the HAL to utilize blocking calls
when reading the Wake Lock FMQ, if desired.

Also removes stale reference to WakeLockEvent.

Bug: 122528664
Test: Builds, verified Sensors 2.0 default implementation reads events
      when they become available on the Wake Lock FMQ

Change-Id: Ia83bd1642b8f6aa8ea86da05e83f4040c6e593bb
2019-01-10 16:41:06 -08:00
Brian Stack
d3849e1029 Stop Wake Lock thread if it is running
If the Wake Lock thread is running, stop it whenever initialize() is
called in order to prevent an invalid Wake Lock Queue from being read.

Also disable all sensors whenever initialize() is called to ensure
that stale sensor registrations are properly cleaned up.

Bug: 122468928
Test: Sensors HAL 2.0 tests run without crashing
Change-Id: I5fb55628545adbb481da6fcda157c78cff834134
2019-01-09 17:08:34 +00:00
Brian Stack
54a73b633e Initialize callback for Sensors HAL 2.0 VTS tests
Bug: 122468928
Test: Sensors HAL 2.0 tests successfully run
Change-Id: Ic34c47548ea45e9a49392e2fa94e2d787f3c6a0f
2019-01-07 12:59:51 -08:00
Brian Stack
6e4a22068f Update documentation for initialize()
Updates the documentation for the initialize() function and defines
the requirements for using the Event FMQ's writeBlocking function
which requires both a read and write notification.

Also adds requirement for the Sensors HAL to cleanup active sensor
requests and direct connections whenever initialize is called.

Bug: 120857563
Test: Builds
Change-Id: I11c8f7404d27e9ab21f9314523faebc1970b9f0c
2018-12-18 13:11:15 -08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
TreeHugger Robot
fad169eb33 Merge "Add support for writeBlocking" 2018-12-07 17:18:28 +00:00
Keun Soo YIM
ff84c37bc1 pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-11-27 16:11:41 -08:00
TreeHugger Robot
745badbe07 Merge "Implement Direct Channel Tests" 2018-11-15 06:31:15 +00:00
TreeHugger Robot
cca99ce47f Merge "Data Injection Tests for Sensors HAL 2.0" 2018-11-15 03:44:41 +00:00
Brian Stack
f2aca3b487 Acquire and Release Wake Lock
Acquire a wake lock in the Sensors 2.0 Default implementation whenever
there are outstanding WAKE_UP events. Release the wake lock whenever
the number of oustanding WAKE_UP events is zero or at least
SensorTimeout::WAKE_LOCK_SECONDS seconds have elapsed since the
previous WAKE_UP event was written to the Event FMQ.

Bug: 111070257
Test: Builds, wake lock is acquired and released as expected.
Change-Id: I7c57724430144fd4022646d1fef1b1fa8bc4235d
2018-11-14 16:04:44 -08:00
Brian Stack
56358cae58 Implement Direct Channel Tests
Implements Direct Channel tests for Sensors HAL 2.0. The tests verify
that the interface has been implemented correctly and that expected
values are returned. These tests are not intended to verify that the
rate at which sensor events are generated is correct.

Also, correctly return -1 as the channel handle if direct report is
not supported.

Bug: 115969174
Test: Tests pass against default implementation
Change-Id: I31b3211268701665757b03d5ee4ba2316f461282
2018-11-14 15:19:04 -08:00
Brian Stack
00c4288d66 Data Injection Tests for Sensors HAL 2.0
Implements VTS tests for Sensors HAL 2.0 DATA_INJECTION mode. Ensures
that if a sensor reports that it supports data injection, events that
are injected while in data injection mode are written back to the
Event FMQ. Ensures that AdditionalInfo events not written to the
Event FMQ.

Bug: 115969174
Test: Data injection tests pass against default Sensors HAL 2.0
Change-Id: I350956b759e14abfff73de4e20384524bbc00a0f
2018-11-14 15:18:50 -08:00
Brian Stack
d23f200603 Data Injection Support for Default Sensors HAL 2.0
Implements data injection support for the default Sensors HAL 2.0.
Allows events to be injected into the Sensors HAL and these events be
written back to the Event FMQ.

Bug: 111070257
Test: Passes data injection VTS tests
Change-Id: If652417ec0df4148ffb5be3d5dd8bc6f0be65467
2018-11-13 17:32:10 -08:00
Brian Stack
4e152dd8bd Add support for writeBlocking
Adds support for the Sensors HAL to use writeBlocking when sending
sensor events to the framework.

Bug: 111070257
Test: Builds, verified that if the default implementation is modified
      to use a writeBlocking call, the framework receives events, and
      the HAL blocks if the Event FMQ is full.
Change-Id: I62fc654513afe98901b1e65bdf422af276d22663
2018-11-09 10:29:03 -08:00
Brian Stack
9c1867eec8 Update member variables to use mNamingConvention
Bug: 115969174
Test: Builds
Change-Id: Id4334d9060a3110d13debcfaf1bebc9dddd321c5
2018-11-07 17:26:01 -08:00
Brian Stack
40525b145e Implement activate tests for Sensors HAL 2.0
Implements new VTS tests to verify that Sensors HAL 2.0 activate
function behaves as expected and returns the correct values.

Bug: 115969174
Test: Tests pass against default implementation
Change-Id: I3dbc86b0c9df3958f11bae4eff925d1869319738
2018-11-07 17:26:01 -08:00
Brian Stack
0a20036927 Implement batch test for Sensors 2.0
Verify that the batch function is correctly implemented for Sensors
HAL 2.0. This test ensures that the interface is properly implemented,
not that sensors generate events at the requested rate.

Bug: 115969174
Test: Builds, new test passes against default implementation
Change-Id: I607ff18f59d1ba73aa972ed46b04332892772355
2018-11-07 13:48:20 -08:00
Brian Stack
1fdd1bb4db Implement VTS tests for Sensors 2.0 flush
Bug: 115969174
Test: Tests pass against default implementation
Change-Id: Icb8c3d7776b8460d502bfec251ded061f978bec9
2018-11-07 13:36:11 -08:00
TreeHugger Robot
a29f60d68a Merge "Only save newly received events during testing" 2018-11-06 03:54:28 +00:00
Arthur Ishiguro
e8f98ff983 Merge "Updates EventPayload documentation for (Geomag)-RV" am: 79189993ec am: d60adf2dd9
am: f81482a5f6

Change-Id: I8e3668e3da2c73b5265dfd4d8927692854f94216
2018-11-05 17:57:47 -08:00
Arthur Ishiguro
79189993ec Merge "Updates EventPayload documentation for (Geomag)-RV" 2018-11-06 01:28:23 +00:00
Arthur Ishiguro
d3881ea7fa Updates EventPayload documentation for (Geomag)-RV
The former HAL documentation incorrectly documented (Geomag)-RV
sensor data as Vec4, although an accuracy field is expected according
to the Android sensor docs. Former default HAL implementation has set
the accuracy value to zero, preventing apps from getting this value.

This change guides OEMs to use the Vec4 + accuracy when converting
(Geomag)-RV sensor events. The default HAL implementation passes
this extra data now (ag/5224072), but clients of the former
implementation will still get the data it needs if assuming
the Vec4 sensor data format.

Bug: 116874058
Test: Compile only
Change-Id: I6a5c8a48dd372c3d4682ed5329f7f87862746cb9
2018-11-05 11:01:57 -08:00
Arthur Ishiguro
fa2fcddb09 Adds conversion for quaternion data with accuracy
Also applies formatter.

Bug: 116874058
Test: Compile and verify apps can receive the accuracy
      field

Change-Id: I2535a5a9315ac3d343dcdf6010d3ae74288dfcd4
2018-11-01 17:33:22 -07:00
Brian Stack
9920e212f8 Only save newly received events during testing
All events in the temporary event buffer were being saved during
testing. This caused some events to be saved multiple times. This
patch ensures that only new events are saved.

Bug: 115969174
Test: Verified duplicate events are not received
Change-Id: Ia2c7df7273456700e0da2ddd927f7daf42e69334
2018-10-30 12:04:33 -07:00
Brian Stack
e4f74c77b1 Default flush implementation for Sensors 2.0
Bug: 111070257
Test: Builds, passes corresponding VTS tests
Change-Id: I5b46232ffb0dd2c85bccd9dad34dd04d29a5677d
2018-10-30 12:02:52 -07:00
TreeHugger Robot
4c1e30cebd Merge "Register default accelerometer sensor" 2018-10-27 02:02:19 +00:00
TreeHugger Robot
c7aa50238e Merge "Generate events for default Sensors 2.0" 2018-10-27 00:10:19 +00:00
TreeHugger Robot
cad117641a Merge "Add CallInitializeTwice Test" 2018-10-26 23:55:24 +00:00
Brian Stack
2927ab7ed7 Register default accelerometer sensor
Registers a default accelerometer with the Sensors HAL.

Bug: 111070257
Test: Builds, a_sns_test receives accel events
Change-Id: I2f016eb74b9b729854e771264f4c2f1adf025c09
2018-10-24 16:33:34 -07:00
Brian Stack
237abc6cf8 Generate events for default Sensors 2.0
Adds the ability for default Sensors 2.0 implementation to generate
sensor events.

Bug: 111070257
Test: Builds
Change-Id: I98f04dbac5370cc6fc3be43468ba43b6476b4515
2018-10-24 16:33:34 -07:00
Brian Stack
897528dd53 Implement activate and batch functions
Implements the activate and batch functions for the default Sensors
2.0 implementation.

Bug: 111070257
Test: Builds
Change-Id: I5987ab722cdd97c7cd7ff466d6d989794171b851
2018-10-24 16:33:26 -07:00
Brian Stack
9a407f23a6 Implement default functions for direct channel
Implements default functions for a Sensors 2.0 HAL that does not
support direct channel operation.

Although Sensors 2.0 supports direct channel operation, it is not a
requirement unless a device supports High Fidelity Sensors. A direct
channel implementation is vendor-specific, and therefore, the default
implementation does not provide a reference implementation.

A default implementation is able to be found in Sensors 1.0 since
direct channel operation has not changed between Sensors 1.0 and 2.0.

Bug: 111070257
Test: Builds
Change-Id: I1c4ef0cd9d4bd4b7ae3212358f9493c28c2798f4
2018-10-24 16:26:33 -07:00
Brian Stack
475d4d4d5e Default implementation for initialize()
Implements the default initialize() function for Sensors HAL 2.0

Bug: 111070257
Test: Builds
Change-Id: I1d1f0d732d931adaf12ae40167eea484887fb140
2018-10-24 16:26:27 -07:00
Brian Stack
60fcdcf635 Create Sensors HAL 2.0 Default Implementation
Auto-generated default implementation for Sensors HAL 2.0 via
hidl-gen and cleaned up formatting.

Modifies Android.bp for binderized HAL implementation which includes:
- Adding service.cpp
- Adding android.hardware.sensors@2.0-service.rc

android.hardware.sensors@2.0-service.rc was copied and updated from
the sensors@1.0 default implementation.

Bug: 111070257
Test: Builds
Change-Id: I6a939511ff6b4011cfe95bd26c3093ad18f26f5a
2018-10-24 16:15:59 -07:00
Brian Stack
1d329e633a Add CallInitializeTwice Test
Adds a test to Sensors 2.0 to ensure that if the initialize function
is called twice, then the FMQs used in the second call receive events.

Bug: 115969174
Test: New test passes (SensorsHidlTest#CallInitializeTwice)
Change-Id: I21a9307397eca1f2be93a826db89d24002e848c0
2018-10-19 15:18:28 -07:00
Brian Stack
85c8b31945 Initialize Sensors Test Environment
Properly initialize the test environment for Sensors HAL 2.0 by
constructing and reading from FMQs.

Bug: 115969174
Test: Builds, VTS tests run (some pass) against locally modified
      sensors HAL
Change-Id: Id959e50c18b643d2693c90bac15710ed6f34b1b4
2018-10-17 16:49:46 -07:00
Brian Stack
b6962f6e7d Copy Sensors VTS 1.0 into 2.0
Copy the VTS tests for Sensors 1.0 into the 2.0 directory to provide a
starting point for 2.0 tests. Updates references to 2.0 from 1.0 where
necessary.

Bug: 115969174
Test: Builds
Change-Id: Ia385552c208087175272627c65b9096cdb8f4afa
2018-10-15 15:19:03 -07:00
TreeHugger Robot
6624eeeff5 Merge "Adds conversion for quaternion data with accuracy" 2018-10-10 23:54:25 +00:00
Arthur Ishiguro
41c5b89b24 Adds conversion for quaternion data with accuracy
Also applies formatter.

Bug: 116874058
Test: Compile and verify apps can receive the accuracy
      field

Change-Id: I2535a5a9315ac3d343dcdf6010d3ae74288dfcd4
2018-10-10 15:31:59 -07:00
Brian Stack
085f505014 Extract SensorsHidlTestBase and reformat
Bug: 111070257
Test: Builds
Change-Id: I35956b9dab56e97d716aa6605dab328cdd5446d3
2018-10-09 11:44:10 -07:00
Brian Stack
0c102a998f Refactor SensorsTestSharedMemory
Extracts SensorsTestSharedMemory so that it can be used by other
versions of the sensors tests.

Bug: 111070257
Test: Build
Change-Id: I03df7462302d4ab0ea647e0d7688a46bf0e06dc1
2018-10-09 11:43:24 -07:00
TreeHugger Robot
18f3701543 Merge changes I1d41c6ed,I1e04e734,I4c2a968a
* changes:
  Refactor SensorEventsChecker
  Create SensorsHidlEnvironmentBase
  Extract SensorsHidlEnvironment
2018-10-09 17:40:43 +00:00
TreeHugger Robot
d126a2fb42 Merge "Move GrallocWrapper to common directory" 2018-10-08 17:27:35 +00:00
Brian Stack
a60a6ae08f Refactor SensorEventsChecker
Move SensorEventsChecker and derived classes into their own file.

Bug: 111070257
Test: Builds and passes VtsHalSensorsV1_0Target tests
Change-Id: I1d41c6edd71e6970ee0599ae21667c88dd5f1c4e
2018-10-05 10:03:43 -07:00
Brian Stack
bc5a39bd24 Create SensorsHidlEnvironmentBase
Move common parts of SensorsHidlEnvironment into a base class so they
can be reused with other versions of sensors tests.

Bug: 111070257
Test: Builds
Change-Id: I1e04e734d00308adff35b9c16de1499573a84b03
2018-10-05 10:03:43 -07:00
Brian Stack
f0dbf813b2 Extract SensorsHidlEnvironment
Extract SensorsHidlEnvironment from VtsHalSensorsV1_0TargetTest to
allow it to be used with multiple versions of testing

Bug: 111070257
Test: Builds and passes VtsHalSensorsV1_0Target tests
Change-Id: I4c2a968a7817d2a9783c358abe4066574add4e72
2018-10-05 10:03:43 -07:00
Brian Stack
eb755f55bb Move GrallocWrapper to common directory
Moves GrallocWrapper to a common directory so that it is able to be
used by different versions of Sensors HAL VTS testing.

Bug: 111070257
Test: Builds
Change-Id: I3b110a8b45a870d762c9ed09063115afa31e6ce3
2018-10-05 10:03:32 -07:00
Brian Stack
7ff9564b20 Require consistent getSensorsList
Require that the values returned from getSensorsList do not change
before the entire system reboots. The values must be stable even
across Sensors HAL restarts. This allows for the framework to
automatically re-establish connections if the Sensors HAL crashes.

Bug: 111070257
Test: Compiles
Change-Id: I0e4b7d6ef8f89f6780c6a14d67465fd3692cd482
2018-10-02 21:29:53 +00:00
Brian Stack
78aa4fc9dd Define the ISensorsCallback
The ISensorsCallback will be used to push notifications into the
sensors framework, such as when dynamic sensors are connected.

Bug: 111070257
Test: Compiles
Change-Id: I681e6de341a80016983a3ab7fa45284ee9104918
2018-09-24 21:33:11 +00:00
Brian Stack
1f0c5ea652 Define EventQueueFlagBits
The EventQueueFlagBits is used to notify the other end of an FMQ when
an action should be taken. For instance, the read end of the queue is
able to wait on a particular mask bit to be set by the write end of
the queue before reading events.

This is necessary because the number of events to read must be
specified when calling the FMQ's read() or readBlocking() functions.
read() will fail if the specified number of events is not available.
readBlocking() will not perform a partial read, so if the number of
events to read is not known ahead of time, the function may block for
an extended period of time until enough events are queued up. By
utilizing the EventFlag, the reading of events is able to wait until
events are ready to be read, and then the availableToRead() function
provides the number of events to read when calling read() or
readBlocking().

Bug: 111070257
Test: Compiles
Change-Id: I20e9e566efc58196e27e50dae3fc13518ce605fc
2018-09-20 13:11:46 -07:00
Brian Stack
28c675fd86 Replace poll with initializeMessageQueues
Replaces poll with the new initializeMessageQueues call in
ISensors::2.0.

Bug: 111070257
Test: Build succeeds
Change-Id: I99f951fe5f1d93d267bee6734534993b1088baeb
2018-09-13 14:18:50 -07:00
Brian Stack
ee3f720115 Copy ISensors 1.0 into 2.0 directory
Copy the current version of the Sensors HAL into the 2.0 directory to
provide a starting point to replace the polling function. Update
version and headers. Import types from version 1.0 of Sensors HAL.

Bug: 111070257
Test: Build succeeds
Change-Id: Ibd00d83016dedc06e583579a0d76c7baa8fbcd05
2018-09-13 11:02:27 -07:00
Brian Duddie
70c148b739 Update sensors OWNERS files
Reflect changes in team membership.

Fixes: 74439746
Test: n/a
Change-Id: I936b9dd9229024989bc6100a4fe396e822d53369
2018-08-09 19:56:18 +00:00
Peng Xu
f183230f46 Merge "Ignore meta sensor events when checking values" into oreo-vts-dev am: d09fdd6ca1 am: bfc5b817e7
am: 5b2f3f3c7c

Change-Id: Ic1d04b1a252274715b4f9a7168ffaf141e305c5b
2018-04-10 14:41:34 -07:00
Peng Xu
bfc5b817e7 Merge "Ignore meta sensor events when checking values" into oreo-vts-dev
am: d09fdd6ca1

Change-Id: I4623dce53e1cc5102d943c21944820c108466157
2018-04-10 14:21:57 -07:00
Peng Xu
23c91a2b54 Ignore meta sensor events when checking values
Bug: 68729931
Test: verified by vendor, see b/68729931#comment5
Change-Id: I0f729c33409e409f0a64d9d4f609215cffde71f5
2018-03-21 17:58:41 -07:00