Commit graph

17348 commits

Author SHA1 Message Date
Slava Shklyaev
76f5263d6f Merge changes from topic "quant_coupling"
* changes:
  Add QUANT8_ASYMM_SIGNED support to SELECT op
  Add quantization coupling test
  Combine test parameters into TestConfig structure
2019-11-26 17:44:27 +00:00
Steven Moreland
7696aa885f ./update-makefiles.sh, for union changes/memory
Many more types can be used in Java.

Bug: 143566068
Test: N/A
Change-Id: Ie18e1e0f9c22f2ea15b755df3b048c9d651c4945
2019-11-26 09:24:31 -08:00
nelsonli
8bb8a9b237 Merge "[vts-core] add VtsHalGatekeeperV1_0TargetTest to vts-core"
am: ddad94ab0e

Change-Id: I5b9c1d9f23421248f5c7ba35a2e47980148e4c68
2019-11-25 21:33:38 -08:00
Treehugger Robot
ddad94ab0e Merge "[vts-core] add VtsHalGatekeeperV1_0TargetTest to vts-core" 2019-11-26 05:24:37 +00:00
Yifan Hong
f723db3b84 Merge "health 2.0: Check health_loop status for passthrough usage"
am: b68a055c68

Change-Id: I8f1da886f17c7545bb6338aa28375d74d3f2d379
2019-11-25 16:36:39 -08:00
Yifan Hong
b68a055c68 Merge "health 2.0: Check health_loop status for passthrough usage" 2019-11-26 00:25:03 +00:00
Sarah Chin
b071f8ae53 Set up IRadioConfig 1.3 skeleton
Create IRadioConfig, IRadioConfigIndication, IRadioConfigResponse
Create vts for 1.3
Create default implementation for 1.3

Test: run vts -m VtsHalRadioConfigV1_3Target
Bug: 144101226
Change-Id: Ibf92683ca48b4053e86de3fb655ac15ad1e0725d
Merged-In: Ibf92683ca48b4053e86de3fb655ac15ad1e0725d
2019-11-25 16:23:41 -08:00
Stan Rokita
1e9bac4b58 Make ScopedWakelock a shared library
am: 1d53f9563b

Change-Id: Ic9b1d0d42f671f5e173a007f472178e5601e7941
2019-11-25 14:31:22 -08:00
Rob Barnes
f82aa5d4fe Added standalone benchmark for keymaster.
Test: Run benchmark
Bug: 139890773
Change-Id: I23c511b70bd27c58a188b5fc8ae690cdbb775dec
2019-11-25 21:16:01 +00:00
Stan Rokita
1d53f9563b Make ScopedWakelock a shared library
Change the build configuration of multihal and its tests to make the
ScopedWakelock.cpp file and its associated headers available as a
library to be included by the fake subhals and the multihal binary
seperately.

Bug: 144722764
Test: Compiled and loaded onto device without issue
Change-Id: Ide83b6761302c5df6c72bc3202727341361b36ed
2019-11-25 12:36:10 -08:00
Ram Muthiah
6f90454cdd Added kernel LTS 5.4
Test: Treehugger
Bug: 143710295
Change-Id: Ic250c12daf9b31b1a27f25d1882e02c258b8db45
2019-11-25 12:22:06 -08:00
Steven Moreland
19d121b611 Merge "vibrator extension: use checked_interface_cast"
am: 741347b49d

Change-Id: I3c21e5fd872a974b04d6f283256971a61d0778f3
2019-11-25 10:18:16 -08:00
Steven Moreland
741347b49d Merge "vibrator extension: use checked_interface_cast" 2019-11-25 18:06:24 +00:00
Steven Moreland
3d00560737 Merge "vndk vintf vibrator"
am: 2fb810f495

Change-Id: I2fad31f9ec45739270f718cefbf84496821cd01d
2019-11-25 09:40:02 -08:00
Steven Moreland
2fb810f495 Merge "vndk vintf vibrator" 2019-11-25 17:31:26 +00:00
nelsonli
b16eeee62b Merge "[vts-core] add VtsHalBiometricsFaceV1_0TargetTest to vts-core"
am: 78e5470dbc

Change-Id: Icb763b887d9cf72f9618848274441e73a9e5fc4b
2019-11-24 00:52:01 -08:00
Treehugger Robot
78e5470dbc Merge "[vts-core] add VtsHalBiometricsFaceV1_0TargetTest to vts-core" 2019-11-24 08:44:43 +00:00
Hridya Valsaraju
55f1a1f3f6 health 2.0: Check health_loop status for passthrough usage
health HAL is used as passthrough in recovery mode and hence
healthd_main() is not invoked. Add checks in
healthd_battery_update_internal() and healthd_register_event()
to return when health_loop is NULL.

Test: fastboot getvar battery-voltage works in fastbootd.
Bug: 144299329

Change-Id: I0a975a4bfe942813f9c5b3936df91cc3d8fa9674
2019-11-23 02:07:08 +00:00
Lev Proleev
f604476205 Merge "Add NNAPI 1.3 OperationType"
am: 2264258028

Change-Id: I2d4c53395d931aeeb9305d3f50e5e7297eef87bf
2019-11-22 14:22:55 -08:00
Treehugger Robot
2264258028 Merge "Add NNAPI 1.3 OperationType" 2019-11-22 22:12:01 +00:00
Dan Shi
8caedd0d68 Convert VtsHalRadioV1_*TargetTest to be parameterized test
Bug: 142397658
Bug: 142972256
Test: atest VtsHalRadioV1_0TargetTest \
  VtsHalSapV1_0TargetTest \
  VtsHalRadioV1_1TargetTest \
  VtsHalRadioV1_2TargetTest \
  VtsHalRadioV1_3TargetTest \
  VtsHalRadioV1_4TargetTest

Change-Id: I1890f7a6b1401260e87c94c2bc4e1dfa7060a0cb
2019-11-22 13:57:26 -08:00
Mikhail Naganov
b6d82825e0 Merge changes from topic "upstream-close-fixes"
am: 7663233f5c

Change-Id: I67e3879985fcc7e80bb50c2b65ee08ee2a226800
2019-11-22 10:22:31 -08:00
Mikhail Naganov
b0b24baabf audio: Factor out IStream operations into a helper class
am: 422afc131a

Change-Id: Ia1fc19b3423cd2c730e1af6dba35d5206e4decc9
2019-11-22 10:22:27 -08:00
Mikhail Naganov
740cb65b21 audio: Cleanup VTS tests
am: 13b99b4cf4

Change-Id: I0f3b08ec88dab2d808f789f76f0f4d85feff19e4
2019-11-22 10:22:21 -08:00
Mikhail Naganov
8c6d6912ba Audio VTS: Fix MMAP tests
am: a4b693f5da

Change-Id: I6e31fa2def2effa006aaa50fec8c55a6be98caff
2019-11-22 10:22:14 -08:00
Mikhail Naganov
a78ef70952 Audio V6 wrapper: IDevice|IStream|IEffect.close releases HAL resource
am: d041930df9

Change-Id: Ic696caabc5c5dcbda9886581d30a137c17b1d7ff
2019-11-22 10:22:02 -08:00
Treehugger Robot
7663233f5c Merge changes from topic "upstream-close-fixes"
* changes:
  audio: Add check to IDevice.close for currently opened streams
  audio: Factor out IStream operations into a helper class
  audio: Cleanup VTS tests
  Audio VTS: Fix MMAP tests
  Audio V6 wrapper: IDevice|IStream|IEffect.close releases HAL resource
2019-11-22 18:10:58 +00:00
Ytai Ben-Tsvi
7d4c761f0c More memory test interfaces
am: 2db42995a5

Change-Id: Id7996f4c642749292843e5fcf6e1f1916b99d6a6
2019-11-22 10:10:50 -08:00
Steven Moreland
43d168751c vibrator extension: use checked_interface_cast
Since interface_cast doesn't currently check.

Bug: 136027762
Test: test-vintf-vibrator-ext-client
Change-Id: I4faeba339d8c54f6618e871a46d811943a398e0a
2019-11-21 15:58:35 -08:00
Ytai Ben-Tsvi
2db42995a5 More memory test interfaces
Merged-In: I21bb7c28aa774801cad94cd530ccb6b5c3b621e0
Change-Id: I21bb7c28aa774801cad94cd530ccb6b5c3b621e0
Bug: 143566068
2019-11-21 15:32:17 -08:00
Shawn Willden
7f7e9608dc Merge changes from topic "add-km-41"
am: f66777ad50

Change-Id: I936540f9f9956a01c8c03fc1db6c54ffe81f3489
2019-11-21 14:53:57 -08:00
Shawn Willden
67eb28f18c Add Keymaster 4.1 hashes
am: 0e363cda29

Change-Id: I3ce53b9286af305ffe7217397dd0e83caea861a0
2019-11-21 14:53:53 -08:00
Treehugger Robot
f66777ad50 Merge changes from topic "add-km-41"
* changes:
  Add Keymaster 4.1
  Add Keymaster 4.1 hashes
2019-11-21 22:41:50 +00:00
Mikhail Naganov
ed261bbfb1 audio: Add check to IDevice.close for currently opened streams
IDevice.close must not proceed if there are streams
that are currently opened on this device.

Bug: 114451103
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I61d81bc0333098c341d5d551bf59331e49fcf682
2019-11-21 12:32:09 -08:00
Mikhail Naganov
422afc131a audio: Factor out IStream operations into a helper class
Bug: 114451103
Test: atest VtsHalAudioV5_0TargetTest
      atest VtsHalAudioV6_0TargetTest

Change-Id: I7c1b16df2b52fd5279ff1f431bfc7269fb9cd8f6
2019-11-21 11:01:28 -08:00
Mikhail Naganov
13b99b4cf4 audio: Cleanup VTS tests
Remove getSupported*AudioConfig methods as they were always
returning empty vector, and for V6 test parameter generation
has been changed.

Test: atest VtsHalAudioV5_0TargetTest
Change-Id: Ib6f53c52b3ee2769cb02730d02decd97390fe091
2019-11-21 11:01:18 -08:00
Mikhail Naganov
a4b693f5da Audio VTS: Fix MMAP tests
Ensure stream test runs for output MMAP profiles.

Enhance checks for MMAP buffer size.

Bug: 144575694
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I93e66b12c93c466d661e65c4dbbb5deb32772848
Merged-In: I93e66b12c93c466d661e65c4dbbb5deb32772848
2019-11-21 10:57:19 -08:00
Mikhail Naganov
d041930df9 Audio V6 wrapper: IDevice|IStream|IEffect.close releases HAL resource
Fixed behavior of IStream|IEffect.close to release the underlying
HAL resource synchronously. This is to avoid adding artificial
delays in VTS that become totally unpractical in V6.

Added clarification about expected client behavior for
IStream|IEffect.close w.r.t. audio data transfer.

Added IDevice.close method which releases HAL device resource.

Updated VTS tests to remove delays in V6.

Bug: 114451103
Bug: 141989952
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I439f0f923c091af2ab234d15ca847cfade341f25
Merged-In: I439f0f923c091af2ab234d15ca847cfade341f25
2019-11-21 10:56:25 -08:00
Lev Proleev
3683c785f2 Add QUANT8_ASYMM_SIGNED support to SELECT op
Also fix repo hook complaining about comment formatting.

Bug: 143935354
Test: NNTest_static and VTS_1_3  with --gtest_filter="*QuantizationCouplingTest*select*"
Change-Id: I1b0d1e987ebccc6700dd172b4222f9996105513d
Merged-In: I1b0d1e987ebccc6700dd172b4222f9996105513d
(cherry picked from commit 04bf939c7a)
2019-11-21 12:06:36 +00:00
Lev Proleev
9226c1e910 Add quantization coupling test
Quantization coupling test is ran only on models that contain only one
operator and at least one of its inputs has a type of
TENSOR_QUANT8_ASYMM. The test verifies that a model with all the
operands converted to TENSOR_QUANT8_ASYMM_SIGNED will produce the same
result (OK/SKIPPED/FAILED).

Bug: 137828994
Test: VtsHalNeuralNetworksV1_3TargetTest --gtest_filter="*QuantizationCouplingTest*"
Change-Id: I5a2e09b2b1bd790e7e37dde133554e516155a34d
Merged-In: I5a2e09b2b1bd790e7e37dde133554e516155a34d
(cherry picked from commit c88f4c60a8)
2019-11-21 12:06:34 +00:00
Lev Proleev
0d4ba3f33a Combine test parameters into TestConfig structure
Test: VtsHalNeuralnetworksV1_2TargetTest --gtest_filter="GeneratedTests*"
Change-Id: I928aaa42e4745b4a8e0e461046e9632b052d0135
Merged-In: I928aaa42e4745b4a8e0e461046e9632b052d0135
(cherry picked from commit 66f598e10d)
2019-11-21 12:06:31 +00:00
Lev Proleev
3b60d80ff6 Add NNAPI 1.3 OperationType
* Add 1.3 OperationType.
* Remove "using V1_2::OperationType" from 1.3 VTS tests.
* Update current.txt

Test: mma
Change-Id: Ieaede9b7a6cecb16dbcc753f347f7ff04c009f20
Merged-In: Ieaede9b7a6cecb16dbcc753f347f7ff04c009f20
(cherry picked from commit 8774f10b76)
2019-11-21 12:06:27 +00:00
Harpreet \"Eli\" Sangha
f4de5b065f vibrator: Add Composition APIs
Bug: 139762802
Test: Manual Invocation via 'idlcli'
Change-Id: Ibc938d08f186039681d523784b90f4172a52af51
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-11-21 16:12:13 +09:00
nelsonli
d5aef05f73 [vts-core] Fix presubmit error in RadioConfigHidlEnvironment
am: 942de9e663

Change-Id: I00e9ce8887e52b79438c1affd168d53c8c9caedd
2019-11-20 19:10:52 -08:00
nelsonli
942de9e663 [vts-core] Fix presubmit error in RadioConfigHidlEnvironment
Remove the un-included class.
Also add missing include of log library.

Test: $atest VtsHalRadioConfigV1_2TargetTest
Change-Id: Ia7475f6fa2df9c35a4822a6434a783d775f3f9be
2019-11-21 10:55:25 +08:00
Lloyd Pique
c93cb2e4b4 Merge "audio: Remove redundant PrintTo definitions"
am: 7582ba18ee

Change-Id: I0a56044e6e532dd5608f8908963904a7c1b1fc1d
2019-11-20 14:55:19 -08:00
Lloyd Pique
7582ba18ee Merge "audio: Remove redundant PrintTo definitions" 2019-11-20 22:46:34 +00:00
Steven Moreland
f65c312af9 Merge "TEST_MAPPING: vts_treble_vintf_*_test"
am: 432717e309

Change-Id: Iee582dd25dff453a97077ec3126c33c5d1196637
2019-11-20 13:35:26 -08:00
Treehugger Robot
432717e309 Merge "TEST_MAPPING: vts_treble_vintf_*_test" 2019-11-20 21:18:19 +00:00
Shawn Willden
0e363cda29 Add Keymaster 4.1 hashes
Merging hashes separately to address merge conflict.

Change-Id: I929ddc0b9a02ffac45be67aa04adda2a32f6a85c
Merged-in: If0705662121c91f7f4a5753bba9e2f9a07890686
Test: N/A
2019-11-20 12:14:36 -07:00