Commit graph

16659 commits

Author SHA1 Message Date
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
Treehugger Robot
d57bd9622a Merge "[REFACTOR] health 2.0: battery monitor returns health info 2.0" 2019-10-29 03:52:54 +00:00
Michael Butler
7261ba7d10 Merge "NNAPI VTS update in response to utility function change" 2019-10-28 21:53:52 +00:00
Treehugger Robot
03d6f2fe8c Merge "audio: Extract utility functions" 2019-10-28 21:53:51 +00:00
Michael Butler
648ada5fcf NNAPI VTS update in response to utility function change
The frameworks/ml/nn CL "Improve performance of Burst executions"
changed the signature of a utility function used by NNAPI's VTS tests.
This CL modifies the test accordingly.

Bug: 132073143
Test: mma
Test: VtsHalNeuralnetworksV1_2TargetTest (with sample-all)
Test: VtsHalNeuralnetworksV1_3TargetTest (with sample-all)
Change-Id: I56c3b04e6fec11d526e2a1ff5b896f31cb12eb5f
Merged-In: I56c3b04e6fec11d526e2a1ff5b896f31cb12eb5f
(cherry picked from commit 5756887a7b)
2019-10-28 13:17:08 -07:00
Treehugger Robot
60d2ea9694 Merge "Add template for 1.3 types.hal and regenerate it" 2019-10-28 18:03:58 +00:00
Amy Zhang
2b505cd0ef Merge changes from topic "filters"
* changes:
  VTS refactoring for filter separation
  Refactor Tuner HAL Default Impl for Filter and Dvr separation
  Add Filter linkage and seperate interface
2019-10-28 17:53:18 +00:00
Lev Proleev
e5376fea95 Add template for 1.3 types.hal and regenerate it
After this update, types.hal v1.3 no longer refers to API level 30.

Test: none needed
Bug: 140132458
Change-Id: If707dfbcade6be1a0885fc21f6ddf47f3c27b244
Merged-In: If707dfbcade6be1a0885fc21f6ddf47f3c27b244
(cherry picked from commit e98e6793be)
2019-10-28 13:03:00 +00:00
nelsonli
cb460b6dae [vts-core] add VtsHalHealthV1_0TargetTest to vts-core
Convert VtsHalHealthV1_0TargetTest. to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalHealthV1_0TargetTest.
Change-Id: I3abfbfe0c20a5fe595f32c4793b2c53f6ad13e28
2019-10-28 07:25:51 +00:00
Xin Li
69879436a5 Merge "Merge Coral/Flame into AOSP master" 2019-10-27 04:44:29 +00:00
Dan Shi
6c4ab0203b Merge "Convert VtsHalWifiOffloadV1_0TargetTest to be parameterized test" 2019-10-26 03:31:15 +00:00
Amy
5d794f4ffa VTS refactoring for filter separation
Test: atest
Bug: 135708935
Change-Id: I22b6249a953b81793fdfbf17adbadeebde12277a
(cherry picked from commit 0f94ba87a0)
Merged-In: I22b6249a953b81793fdfbf17adbadeebde12277a
2019-10-26 00:30:00 +00:00
Amy
33963aa37b Refactor Tuner HAL Default Impl for Filter and Dvr separation
Test: manual
Bug: 135709325
Change-Id: I130f555315683fa02272f40d1e6209c5695c884a
(cherry picked from commit b4b680167c)
Merged-In: I130f555315683fa02272f40d1e6209c5695c884a
2019-10-26 00:29:45 +00:00
Henry Fang
865220991a Add Filter linkage and seperate interface
Test: Manual
bug: 135708935
Change-Id: I5782a183936ffca4f345d14c353ad34210f12df7
(cherry picked from commit e5125a89ab)
Merged-In: I5782a183936ffca4f345d14c353ad34210f12df7
2019-10-26 00:29:01 +00:00
Mikhail Naganov
0553d0615c audio: Extract utility functions
Move common code out of the test source.

Test: atest VtsHalAudioV5_0TargetTest
Merged-In: I86cf399029a0a5f3f08c7e82713ae62df03dee3f
Change-Id: I86cf399029a0a5f3f08c7e82713ae62df03dee3f
2019-10-25 15:36:24 -07:00
Treehugger Robot
9756532b64 Merge "Adding jbires to VTS OWNERS" 2019-10-25 17:54:54 +00:00
Xin Li
7152d04f36 Merge Coral/Flame into AOSP master
Bug: 141248619
Change-Id: I4710e1b4db3ded770addc60503e9b814c7c3607f
Merged-In: Ia3ae894786c281feced2161142a69775838b9ad5
2019-10-25 10:28:01 -07:00
Treehugger Robot
6e82d1abd5 Merge "[vts-core] add VtsHalWeaverV1_0TargetTest to vts-core" 2019-10-25 05:42:48 +00:00
Treehugger Robot
faeeab0c19 Merge "[vts-core] add VtsHalConfigstoreV1_0TargetTest to vts-core" 2019-10-25 05:42:19 +00:00
Treehugger Robot
ba18c085c3 Merge "[vts-core] add VtsHalBiometricsFingerprintV2_1TargetTest to vts-core" 2019-10-25 05:42:09 +00:00
Treehugger Robot
53b86ff792 Merge "[vts-core] add VtsHalMemtrackV1_0TargetTest to vts-core" 2019-10-25 05:41:19 +00:00
nelsonli
5739d2b87e [vts-core] add VtsHalIrV1_0TargetTest to vts-core
Convert VtsHalIrV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Bug: 143195812
Test: $ atest VtsHalIrV1_0TargetTest
Change-Id: Iced511be1f08e790715ec25fe66c30c4609ed6fe
2019-10-25 03:42:59 +00:00
Max Bires
b3ee534556 Merge "Adding test to check that ASN.1 lengths are properly encoded"
am: c6b086785d

Change-Id: Ia3ae894786c281feced2161142a69775838b9ad5
2019-10-24 15:34:49 -07:00
Dan Shi
2fb877b69e Convert VtsHalWifiOffloadV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest
Change-Id: I5480743b5384684a27036d2e0999d0de423a7c20
2019-10-24 15:15:14 -07:00
Treehugger Robot
c6b086785d Merge "Adding test to check that ASN.1 lengths are properly encoded" 2019-10-24 22:08:48 +00:00
nelsonli
9e281efcfc [vts-core] add VtsHalConfigstoreV1_0TargetTest to vts-core
Convert VtsHalConfigstoreV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalConfigstoreV1_0TargetTest
Change-Id: If65ce7afbe23eca95f62c6b231abf78d9ada616e
2019-10-24 07:36:20 +00:00
nelsonli
6bc848ea73 [vts-core] add VtsHalBiometricsFingerprintV2_1TargetTest to vts-core
Bug: 142397658
Test: $ atest VtsHalBiometricsFingerprintV2_1TargetTest
Change-Id: I04baa4f4dbc07f927d1a8c05f691dd63bb098a97
2019-10-24 14:57:11 +08:00
nelsonli
8b0b4c9017 [vts-core] add VtsHalMemtrackV1_0TargetTest to vts-core
Convert VtsHalMemtrackV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalMemtrackV1_0TargetTest
Change-Id: Ie334676c81185ba8ef918c819a6ed2ee80748fc0
2019-10-24 14:49:29 +08:00
nelsonli
326e55f2b6 Merge "[vts-core] add VtsHalBootV1_0TargetTest to vts-core"
am: 83cceb7c4b

Change-Id: I929fc9421742b401b07055dbbf21ad8deb8ef306
2019-10-23 19:46:16 -07:00
Treehugger Robot
83cceb7c4b Merge "[vts-core] add VtsHalBootV1_0TargetTest to vts-core" 2019-10-24 02:30:37 +00:00
Yifan Hong
43952e9e56 Merge changes from topic "health21"
am: a1e654d8f1

Change-Id: I8e9cc9f96d21af8e673c2d9f5c612a524d4951e1
2019-10-23 18:30:28 -07:00
Yifan Hong
38b2592340 health 2.1
am: ed0fead8e4

Change-Id: I811365d50760449154d1e887cfc20d5fa0f2fbef
2019-10-23 18:30:21 -07:00
Yifan Hong
a1e654d8f1 Merge changes from topic "health21"
* changes:
  Require health 2.1 on R devices
  health 2.1
2019-10-24 01:03:09 +00:00
Steven Moreland
6177a1bf37 Merge "TEST_MAPPING += hidl_implementation_test"
am: fac4d20499

Change-Id: I31de45d09ce5cc2e17a90c8adaad200f9d12e77f
2019-10-23 16:14:11 -07:00
Steven Moreland
fac4d20499 Merge "TEST_MAPPING += hidl_implementation_test" 2019-10-23 23:07:30 +00:00
Dan Shi
2ab91aa232 Merge "Convert VtsHalNfcV1_*TargetTest to be parameterized test"
am: a04877f2b3

Change-Id: Ia1a7ed91bc3e6c887238b0be2aa3d1d49038deae
2019-10-23 11:09:30 -07:00
Treehugger Robot
a04877f2b3 Merge "Convert VtsHalNfcV1_*TargetTest to be parameterized test" 2019-10-23 17:39:25 +00:00
Dan Shi
64e82b00b9 Merge "Convert VtsHalPowerV1_*TargetTest to be parameterized test"
am: 6ba951f674

Change-Id: I5439fe3b04128043d2982a33b1bd2e7842faaf80
2019-10-23 00:12:44 -07:00
Dan Shi
6ba951f674 Merge "Convert VtsHalPowerV1_*TargetTest to be parameterized test" 2019-10-23 06:58:46 +00:00
Dan Shi
e64262f91e Convert VtsHalNfcV1_*TargetTest to be parameterized test
Bug: 142397658
Test: atest
Change-Id: Id8fdc7128ead21d734f0dfa8b9428de9724b490c
2019-10-22 20:54:31 -07:00
nelsonli
158487f38e [vts-core] add VtsHalWeaverV1_0TargetTest to vts-core
Convert VtsHalWeaverV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalWeaverV1_0TargetTest
Change-Id: I4b28120a79cef5697de110aafd43be1975211fca
2019-10-23 03:05:57 +00:00
nelsonli
1c256003e7 Merge "[vts-core] add VtsHalVibratorV1_*TargetTest to vts-core"
am: 48141f00ab

Change-Id: I37412806b8c9abe2a4e2b71a0ba0f098e78a8ac7
2019-10-22 19:13:57 -07:00
nelsonli
7c1b8c8309 Merge "[vts-core] add VtsHalDumpstateV1_0TargetTest to vts-core"
am: 8a88a0f28f

Change-Id: Id5f2f5bf8beda374595d30f7ad3e84f7f64883ea
2019-10-22 19:13:30 -07:00
Treehugger Robot
48141f00ab Merge "[vts-core] add VtsHalVibratorV1_*TargetTest to vts-core" 2019-10-23 02:02:04 +00:00
nelsonli
10976957e7 [vts-core] add VtsHalVibratorV1_*TargetTest to vts-core
Convert VtsHalVibratorV1_*TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalVibratorV1_0TargetTest
      $atest VtsHalVibratorV1_1TargetTest
      $atest VtsHalVibratorV1_2TargetTest
      $atest VtsHalVibratorV1_3TargetTest
Change-Id: Ied47225bf40cce99648200b79cd7dd65e5222394
2019-10-23 02:00:22 +00:00
Treehugger Robot
8a88a0f28f Merge "[vts-core] add VtsHalDumpstateV1_0TargetTest to vts-core" 2019-10-23 01:59:54 +00:00