Commit Graph

17147 Commits

Author SHA1 Message Date
nelsonli
c754eefc65 Merge "[vts-core] add VtsHalVrV1_0TargetTest to vts-core" am: 6b4b3e0047
am: 9ff775cd23

Change-Id: Ief471d5aed9932ae91939879a63f1a47087a208e
2019-10-31 20:40:17 -07:00
nelsonli
aa1e586e42 Merge "[vts-core] add VtsHalAtraceV1_0TargetTest to vts-core" am: 68db01aa44
am: 2c60ce0973

Change-Id: I0dc772425efcd21fd103562fe5774b0f75104213
2019-10-31 20:32:45 -07:00
nelsonli
9ff775cd23 Merge "[vts-core] add VtsHalVrV1_0TargetTest to vts-core"
am: 6b4b3e0047

Change-Id: I9d270788b63df94fc1ea5d70f4af4dec90dc4bb4
2019-10-31 20:32:45 -07:00
nelsonli
2c60ce0973 Merge "[vts-core] add VtsHalAtraceV1_0TargetTest to vts-core"
am: 68db01aa44

Change-Id: I78d1fe8018e697d147394b6e62dbaa37602541bf
2019-10-31 20:26:44 -07:00
Treehugger Robot
6b4b3e0047 Merge "[vts-core] add VtsHalVrV1_0TargetTest to vts-core" 2019-11-01 03:25:11 +00:00
Treehugger Robot
68db01aa44 Merge "[vts-core] add VtsHalAtraceV1_0TargetTest to vts-core" 2019-11-01 03:08:32 +00:00
Michael Butler
463118ec7d Merge "Add VtsHalNeuralnetworksV1_3TargetTest to TEST_MAPPING" am: 70798b6b10
am: ed9ade26de

Change-Id: I81ca5e357cfa95575cb86b34218eeb74b0a8fc6b
2019-10-31 16:11:59 -07:00
Michael Butler
ed9ade26de Merge "Add VtsHalNeuralnetworksV1_3TargetTest to TEST_MAPPING"
am: 70798b6b10

Change-Id: Ib4e71ca3fecdd12b30f9a00d77bfe173b3d020f8
2019-10-31 16:06:10 -07:00
Michael Butler
70798b6b10 Merge "Add VtsHalNeuralnetworksV1_3TargetTest to TEST_MAPPING" 2019-10-31 22:46:22 +00:00
Yifan Hong
7cb94d0d94 Freeze health 2.1 am: 4f73c7a8dd
am: 0877b0cb10

Change-Id: Ia554071bc9933d6da2d86a5657a7e9f75afcedad
2019-10-31 15:40:40 -07:00
Xin Li
700ef2339d Merge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master" into stage-aosp-master
am: 8dec4f4157

Change-Id: I1c1b4f41fffc772b8726130e38b5d96e5643be76
2019-10-31 14:55:22 -07:00
Yifan Hong
0877b0cb10 Freeze health 2.1
am: 4f73c7a8dd

Change-Id: I6d0e519313fb74ed4dc03d36167ea6d44a242382
2019-10-31 14:51:08 -07:00
Xin Li
6ed2b659c9 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
am: ab68d3750b

Change-Id: I08a06b3f22b058c7a81158eb94ad667618c0f944
2019-10-31 13:17:01 -07:00
TreeHugger Robot
8dec4f4157 Merge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master" into stage-aosp-master 2019-10-31 18:38:52 +00:00
Yifan Hong
4f73c7a8dd Freeze health 2.1
Test: vts_treble_vintf_vendor_test
Change-Id: I4098328a8233553c04435f8ac46a60c958b4670f
2019-10-31 10:54:14 -07:00
Stan Rokita
4950a9dc21 Merge "Add Sensors Multihal support for Hal 2.0" am: 2f27f7137e
am: 2d399b5af0

Change-Id: Iad679b84b91e62c03d8466a98fdff11163317578
2019-10-31 09:09:04 -07:00
Stan Rokita
2d399b5af0 Merge "Add Sensors Multihal support for Hal 2.0"
am: 2f27f7137e

Change-Id: I9aa84a0f099925086ade5d5bcdd564eb7bd09141
2019-10-31 08:57:10 -07:00
Treehugger Robot
2f27f7137e Merge "Add Sensors Multihal support for Hal 2.0" 2019-10-31 15:32:44 +00:00
Yifan Hong
8ab5840d40 health 2.1 implementation. am: e438211a0f
am: cbbd2fce73

Change-Id: Ic4410dacbc135342ad3634f5533f254a15917c0a
2019-10-30 13:31:59 -07:00
Yifan Hong
cbbd2fce73 health 2.1 implementation.
am: e438211a0f

Change-Id: I7a2477d8dcebf572c73132bc7f5b91ed4a7e8a6f
2019-10-30 13:25:58 -07:00
Xin Li
ab68d3750b DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: I8933ff57906fffacf1d48d606451533ec5b79fa2
2019-10-30 11:49:26 -07:00
Michael Butler
2951b226a2 Merge "Simplify NNAPI VTS TEST_MAPPING options" am: 950dcb63cf
am: cf57e42449

Change-Id: I79ee0cdfb3780fcad544b79066b0845a0e1c027e
2019-10-30 11:19:48 -07:00
Yifan Hong
e438211a0f health 2.1 implementation.
Test: VTS health 2.1 test
Bug: 137670450

Change-Id: I04ea74facbaa534eee00a51474a013db3b6eb212
2019-10-30 11:15:24 -07:00
Michael Butler
cf57e42449 Merge "Simplify NNAPI VTS TEST_MAPPING options"
am: 950dcb63cf

Change-Id: I0e671beccc5486bf91c8f11f8f589d300ba9068b
2019-10-30 11:13:30 -07:00
Michael Butler
950dcb63cf Merge "Simplify NNAPI VTS TEST_MAPPING options" 2019-10-30 17:50:37 +00:00
nelsonli
122c06f2a7 Merge "[vts-core] add VtsHalIrV1_0TargetTest to vts-core" am: 51d32a6881
am: 823a602dcc

Change-Id: I7b4a0259401b372b405cf6df23d664ff0407e4bd
2019-10-29 19:20:42 -07:00
nelsonli
eb95b199c3 Merge "[vts-core] add VtsHalHealthV1_0TargetTest to vts-core" am: c280f899c3
am: fd02941c1a

Change-Id: I566c3ad413a1545e863c2300fde5537177f5c165
2019-10-29 19:19:00 -07:00
nelsonli
823a602dcc Merge "[vts-core] add VtsHalIrV1_0TargetTest to vts-core"
am: 51d32a6881

Change-Id: I7bd0642127f15f2efeaab6875cdbbd9a6ddf162e
2019-10-29 19:14:51 -07:00
nelsonli
fd02941c1a Merge "[vts-core] add VtsHalHealthV1_0TargetTest to vts-core"
am: c280f899c3

Change-Id: I420a2834c375799fa111123fccbd13bc2a38d411
2019-10-29 19:12:59 -07:00
Michael Butler
62b76902fb Add VtsHalNeuralnetworksV1_3TargetTest to TEST_MAPPING
Bug: N/A
Test: cd $TOP/hardware/interfaces/neuralnetworks && atest
Change-Id: Ic903a45fbb6487f2b8b18dfd32d356c987a98b14
2019-10-29 19:08:27 -07:00
Treehugger Robot
51d32a6881 Merge "[vts-core] add VtsHalIrV1_0TargetTest to vts-core" 2019-10-30 01:55:40 +00:00
Treehugger Robot
c280f899c3 Merge "[vts-core] add VtsHalHealthV1_0TargetTest to vts-core" 2019-10-30 01:55:23 +00:00
Michael Butler
3104464c7f Simplify NNAPI VTS TEST_MAPPING options
Bug: N/A
Test: cd $TOP/hardware/interfaces/neuralnetworks && atest
Change-Id: I1eb0f25fe13c641cc661484021629ecd811ed984
2019-10-29 18:43:17 -07:00
Steven Moreland
158ff36662 Merge "libhidl_gtest_helpers -> libhidl_gtest_helper" am: 454c6ee1a0
am: c0dcc39899

Change-Id: Id4377041c7fa2c948316435b0b85c358a8a15fc7
2019-10-29 16:28:01 -07:00
Steven Moreland
c0dcc39899 Merge "libhidl_gtest_helpers -> libhidl_gtest_helper"
am: 454c6ee1a0

Change-Id: Id2dcb8d1ded295544d72c57feb37188f2ee50ed2
2019-10-29 16:21:01 -07:00
Treehugger Robot
454c6ee1a0 Merge "libhidl_gtest_helpers -> libhidl_gtest_helper" 2019-10-29 23:09:28 +00:00
Malcolm Chen
5cbfb57d4b Creating IRadio 1.5 vts framework. am: 474009910e
am: 6733988d4d

Change-Id: I79529596e4322eb440034c63202c8cfa2b44cca4
2019-10-29 16:01:27 -07:00
Malcolm Chen
4d8f8c899d Create IRadio 1.5 folder and empty files. am: 360e1f9298
am: 8befb632e8

Change-Id: Ifb81904b93f51c5108360c9434c772e8ad0789dd
2019-10-29 16:01:17 -07:00
Malcolm Chen
6733988d4d Creating IRadio 1.5 vts framework.
am: 474009910e

Change-Id: I3cc5c5e43a5c277b0ffaf3a44a143e5b079949c4
2019-10-29 15:48:38 -07:00
Malcolm Chen
8befb632e8 Create IRadio 1.5 folder and empty files.
am: 360e1f9298

Change-Id: I8a614965e3ed677f846412086f01ceb71c8178ba
2019-10-29 15:48:30 -07:00
Steven Moreland
07c843c749 libhidl_gtest_helpers -> libhidl_gtest_helper
Singular name is more common.

Bug: N/A
Test: N/A
Change-Id: I65eb36e951134ee63c7d85365083de0a7673ba34
2019-10-29 14:20:45 -07:00
Malcolm Chen
474009910e Creating IRadio 1.5 vts framework.
Bug: 141995149
Test: build

Change-Id: I260dfa2e57f1b8c7df5273e2d0b39cbc1d6a4571
Merged-In: I260dfa2e57f1b8c7df5273e2d0b39cbc1d6a4571
2019-10-29 20:45:11 +00:00
Malcolm Chen
360e1f9298 Create IRadio 1.5 folder and empty files.
So that later people can add APIs and type definitions as needed.

Bug: 141995149
Test: build
Change-Id: Ib18f75fd391b94ffbd65d7feb4589ff82b3ac1d4
Merged-In: Ib18f75fd391b94ffbd65d7feb4589ff82b3ac1d4
2019-10-29 13:44:21 -07:00
Stan Rokita
2e37ec4475 Add Sensors Multihal support for Hal 2.0
The multihal framework is a HAL interface for the sensors framework that
allows multiple vendors to package their HAL implementation into a
subHAL dynamic library that will be loaded and used to pass on method
calls to the appropriate subHAL. The HalProxy object, that will act as
the main proxy sensors wrapper for the multiHAL handles writing sensor
events to the event FMQ and wakelock acquisition and releasing via a
callback object it passes to the subHALs.

In order to turn your HAL 2.0 executable into a subHAL to be used by the
multiHAL, implement the Return<Result> initialize(sp<HalProxyCallback>&
callback) method of the ISensorsSubHal derived class. Implement the
ISensorsSubHal* sensorsHalGetSubHal(uint32_t* version)method and have it
return a pointer to your subHAL object. Build this into a dynamic
library and list its filename under /vendor/etc/sensors/hals.conf.

Squashed commits:

07b442e96 (refs/published/mh2_2) MH2 | Write processedEvents instead of
original events.
b38f2e251 Merge "MH2 | Check that subhal index is in range"
d38f99474 Merge "MH2 | Implement debug method of HalProxy"
bf46132fe (refs/published/mh2_4, mh2_4) MH2 | Implement debug method of
HalProxy
1de5bb334 MH2 | Fix wakelock name
e07215347 (refs/published/mh2_3, mh2_3) MH2 | Check that subhal index is
in range
336c1c71e MH2 | Add restart logic in HalProxy::initialize method.
731d7125b MH2 | Change rc file to more appropriate settings
f09465d11 MH2 | Add makeFMQ helpers to HalProxy_test
75cc7bf2f MH2 | Implement wakelock processing thread
e93fdf9a4 MH2 | Implement dynamic sensors callbacks on HalProxy
82b84148c Remove libhwbinder/libhidltransport deps
d45e49b4b Merge "MH2 | Implement pending writes thread"
597142692 MH2 | Implement pending writes thread
db23aa825 MH2 | Implement direct channel and direct report methods
83e4370ae MH2 | Implement injectSensorData method of HalProxy
d0cd57d4c MH2 | Implement ScopeWakelock ctor and dtor
537c0274b MH2 | Add rough proxy callback postEvents method
f97a3f357 Multihal 2.0 - Small tweaks to sensorHandle handling
7a7235461 MultiHal 2.0 - setOperationMode and init direct channel flags
dc7a8e789 MultiHal 2.0 - Get sensors list from subhals
4b4c7b744 MultiHal 2.0 - activate, batch, flush methods of HalProxy
1638531df MultiHal 2.0 - proxying api calls helper methods
aacbf9485 Set up shell to use for unit tests
2879067dd Multihal 2.0 - Implement SubHal discovery
c34e6683b Add a sub-HAL implementation for testing multi-HAL
a689f8a65 Add skeleton for multihal 2.0

Bug: 136511617
Test: atest android.hardware.sensors@2.0-halproxy-unit-tests &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalSensorsV2_0Target

Change-Id: Ibe92d40c92b70848526b0e941bbcffbaf81ffaf2
2019-10-29 11:08:38 -07:00
nelsonli
6edb7e28d4 [vts-core] add VtsHalVrV1_0TargetTest to vts-core
Convert VtsHalVrV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalVrV1_0TargetTest
Change-Id: Ic14260b15baebad082f6da0c52c09e58e40760b2
2019-10-29 16:16:55 +08:00
nelsonli
e203faff3c [vts-core] add VtsHalAtraceV1_0TargetTest to vts-core
Convert VtsHalAtraceV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalAtraceV1_0TargetTest
Change-Id: I290088e66e05f15db1a0ba69787f02238e3538b8
2019-10-29 14:56:03 +08:00
Yifan Hong
e287822c42 Merge "[REFACTOR] health 2.0: battery monitor returns health info 2.0" am: d57bd9622a am: f8a81c4e15
am: 321b0bfe9f

Change-Id: Iac2de05d7af957ef092f7aa41f568641ca31823e
2019-10-28 21:30:25 -07:00
Yifan Hong
321b0bfe9f Merge "[REFACTOR] health 2.0: battery monitor returns health info 2.0" am: d57bd9622a
am: f8a81c4e15

Change-Id: Ica5d8275115742a5a106791193c844cc7da22bc6
2019-10-28 21:23:27 -07:00
Yifan Hong
f8a81c4e15 Merge "[REFACTOR] health 2.0: battery monitor returns health info 2.0"
am: d57bd9622a

Change-Id: I216baf728c401aacb9beeb762df36fc08670d41d
2019-10-28 21:16:23 -07:00
Treehugger Robot
d57bd9622a Merge "[REFACTOR] health 2.0: battery monitor returns health info 2.0" 2019-10-29 03:52:54 +00:00