Commit graph

15956 commits

Author SHA1 Message Date
Treehugger Robot
1f004177c6 Merge "Audio VTS: Wait after stream close" 2019-10-22 23:50:21 +00:00
Yifan Hong
17fad82187 Merge "[REFACTOR] health 2.0: BatteryMonitor::update split into 3 funcs" 2019-10-22 22:47:40 +00:00
Mikhail Naganov
5aa2002a38 Audio VTS: Wait after stream close
Due to asynchronous nature of the destruction of server-side objects
it is required to flush IPC messages to the server and wait to avoid
flakiness due to an attempt to open the stream while it's still not
closed on the server side.

Test: atest VtsHalAudioV5_0TargetTest
Bug: 118655804
Change-Id: Ibd6bb2e20ffe95b83228982c2f2e9232d280e5ff
2019-10-22 14:08:01 -07:00
Treehugger Robot
aae0b8d093 Merge "vibrator: Add 1.4 Tests to 'vts-core'" 2019-10-21 23:10:15 +00:00
Treehugger Robot
9a41dd7f5a Merge changes from topic "libhealthloop"
* changes:
  [REFACTOR] health 2.0: healthd_common -> libhealthloop
  health 2.0: Move healthd_common.cpp
2019-10-21 20:01:48 +00:00
Treehugger Robot
0d5782e99e Merge "[hardware][interfaces][automotive] fix -Wreorder-init-list" 2019-10-21 18:13:46 +00:00
Treehugger Robot
3ff034b3e1 Merge changes from topic "vibrator-hal-1.4-vts"
* changes:
  vibrator: Limit Length of Async Callback Tests
  vibrator: Async Callback API VTS Tests
2019-10-18 21:19:20 +00:00
Treehugger Robot
7e6b36a327 Merge "vibrator: Async Callback API Example" 2019-10-18 19:27:28 +00:00
Nick Desaulniers
9ba020bb9b [hardware][interfaces][automotive] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Merged-In: I17d1d262d71eefa0aa5b89da7acc659bc2f97bbd
Change-Id: I4e18c0f68606c3e8d965aab194f2a5fd5000c59a
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-18 09:56:57 -07:00
Treehugger Robot
475414d8ef Merge "[vts-core] add VtsHalBiometricsFingerprintV2_1TargetTest to vts-core" 2019-10-18 01:32:01 +00:00
Treehugger Robot
11c4534f3f Merge "Convert VtsHalThermalV*TargetTest to be parameterized test" 2019-10-18 00:37:30 +00:00
Treehugger Robot
b046c4eb2d Merge changes from topic "NNAPI v1.3-aosp"
* changes:
  Increase neuralnetworks compatibility to 1.3
  Modify NNAPI VTS tests to run on version 1.3
  Copy VTS tests from v1.2 to v1.3
  Create NNAPI HAL v1.3 and add TENSOR_QUANT8_ASYMM_SIGNED OperandType
2019-10-17 22:47:15 +00:00
David Anderson
80c288d7b3 Merge "Fix requests for IBootControl 1.0 when using the 1.1 HAL." 2019-10-17 21:45:05 +00:00
David Anderson
c07c90699a Fix requests for IBootControl 1.0 when using the 1.1 HAL.
Bug: 138861550
Test: cuttlefish boots
Change-Id: I10587a70dca716366a5cf48c8bc8c1bc4fb9f93a
Merged-In: I10587a70dca716366a5cf48c8bc8c1bc4fb9f93a
2019-10-17 20:46:07 +00:00
shubang
7ab999d0a3 Fix minor issues in dmux default impl
Test: mannual
Change-Id: If74df110cd9eda2dadb87a8d659d83233ad75d88
(cherry picked from commit 9a1e5aa93a)
Merged-In: If74df110cd9eda2dadb87a8d659d83233ad75d88
2019-10-17 18:24:09 +00:00
Michael Butler
860f7d1dcf Increase neuralnetworks compatibility to 1.3
Bug: 139120468
Test: mma
Change-Id: I66247588f8e42ebd85cc95b844f2d352adc81462
Merged-In: I66247588f8e42ebd85cc95b844f2d352adc81462
(cherry picked from commit 7259f3ab24)
2019-10-17 18:34:51 +01:00
Lev Proleev
26d1bc8a4e Modify NNAPI VTS tests to run on version 1.3
Bug: 139120468
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I4654dc75c17f8801103015dc1da91663dfa28d52
Merged-In: I4654dc75c17f8801103015dc1da91663dfa28d52
(cherry picked from commit b49dadfb64)
2019-10-17 18:34:51 +01:00
Lev Proleev
13fdfcd44f Copy VTS tests from v1.2 to v1.3
So that it's easier to see what actually has changed in VTS tests for
version 1.3

Bug: 139120468
Test: m
Change-Id: I09797f5f3898501a008186a22dd411b00e9e2c67
Merged-In: I09797f5f3898501a008186a22dd411b00e9e2c67
(cherry picked from commit 3b13b55ac1)
2019-10-17 18:34:51 +01:00
Lev Proleev
ce8c632a09 Create NNAPI HAL v1.3 and add TENSOR_QUANT8_ASYMM_SIGNED OperandType
Bug: 137828494
Bug: 139120468
Bug: 136735770
Test: mma
Change-Id: I28f74e4b364fec1d7431a96cf5687256b3106069
Merged-In: I28f74e4b364fec1d7431a96cf5687256b3106069
(cherry picked from commit 5a7b67ab8f)
2019-10-17 18:34:51 +01:00
nelsonli
6fe484ca11 [vts-core] add VtsHalBiometricsFingerprintV2_1TargetTest to vts-core
Convert VtsHalBiometricsFingerprintV2_1TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $ atest VtsHalBiometricsFingerprintV2_1TargetTest
Change-Id: I076d3de4398e071370f3386817b8248a13eb9352
2019-10-18 01:30:09 +08:00
Treehugger Robot
f49cfb4462 Merge "audio: Skip tests if audio HAL service lacks "primary" device" 2019-10-17 10:11:42 +00:00
Mikhail Naganov
0b457ad126 audio: Skip tests if audio HAL service lacks "primary" device
Non-default audio service (e.g. MSD) is allowed not to have
a "primary" device. In this case tests that require it can be
skipped.

Manage static objects of a test suite in a canonical gtest way
using SetUp/TearDownTestSuite.

Bug: 139321356
Bug: 141433379
Test: vts-tradefed run commandAndExit vts -m VtsHalAudioV5_0Target
      on a device with "msd" audio HAL module

Change-Id: I08a11b2caa9a913e812f1c203007070e4e68c44e
2019-10-16 17:26:45 -07:00
Dan Shi
030bef33a5 Convert VtsHalThermalV*TargetTest to be parameterized test
Bug: 142397658
Test: atest
Change-Id: I5846cab420671e7c3d2bfe80034a7b612ec2e47b
2019-10-16 14:45:16 -07:00
Dan Shi
21eb2f5359 Merge "Convert VtsHalGnssV1_0TargetTest to be parameterized test" 2019-10-16 18:54:33 +00:00
Harpreet \"Eli\" Sangha
8e08e377eb vibrator: Add 1.4 Tests to 'vts-core'
Test: Build
Change-Id: I288417d30158bdf8109bf58da7415681ce66c19c
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-10-17 03:52:23 +09:00
Harpreet \"Eli\" Sangha
8cb24487a0 vibrator: Limit Length of Async Callback Tests
Don't wait for callbacks for long effects, as determined by a
command-line option.

Bug: 136220871
Test: VTS Tests
Change-Id: Ibaf3072a38b32b159d7b48a40860a25928c5d6f1
Merged-In: Ibaf3072a38b32b159d7b48a40860a25928c5d6f1
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-10-17 03:48:59 +09:00
Harpreet \"Eli\" Sangha
00811c57d4 vibrator: Async Callback API VTS Tests
Bug: 136220871
Test: VTS Tests
Change-Id: Icd8f794df76542c9f74e3ea762117da703db47d4
Merged-In: Icd8f794df76542c9f74e3ea762117da703db47d4
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-10-17 03:48:59 +09:00
Treehugger Robot
80694d55ca Merge "health VTS: Status::UNKNOWN is OK if not present" 2019-10-16 10:27:47 +00:00
Treehugger Robot
538d652636 Merge "[hardware][interfaces][renderscript] fix -Wreorder-init-list" 2019-10-16 05:48:45 +00:00
Treehugger Robot
d1785cb7f6 Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list" 2019-10-16 04:47:44 +00:00
Treehugger Robot
2217b5ccd3 Merge "[vts-core] add VtsHalAuthSecretV1_0TargetTest to vts-core" 2019-10-16 04:06:21 +00:00
Treehugger Robot
880ee3950a Merge "[hardware][interfaces][vehicle] fix -Wdangling-gsl in test" 2019-10-16 03:04:34 +00:00
Treehugger Robot
d405ef1c19 Merge "Audio: Ensure input stream gets closed on the audio HAL server side" 2019-10-16 00:19:46 +00:00
Treehugger Robot
128f565f0f Merge "Audio HAL: Add missing device to XSD" 2019-10-15 23:24:28 +00:00
Treehugger Robot
d2e8d0b515 Merge "[hardware][interfaces][gnss] fix -Wreorder-init-list" 2019-10-15 21:57:08 +00:00
Robin Lee
ac5a0d316b health VTS: Status::UNKNOWN is OK if not present
Documentation: https://source.android.com/devices/tech/power/batteryless

If a battery device is not detected, the following battery-related
defaults are used on Android 9 and higher:

* Present:              false
* Status:               unknown
* Remaining capacity:   0
* Health:               unknown
* AC charger online:    not modified

The previous version of the test failed devices if the vendor HAL
reported BatteryStatus::UNKNOWN. However, the tests were skipped if the
default HAL was the one being used, so this has not come up before for
other batteryless devices.

Bug: 142081126
Test: vts-tradefed run vts -m VtsHalHealthV2_0
Change-Id: I8ca758677478b47511e24990fee545fafa6c7f83
2019-10-15 20:44:07 +02:00
Treehugger Robot
b6fd785ec5 Merge "[hardware][interfaces][bluetooth] fix -Wreorder-init-list" 2019-10-15 17:21:40 +00:00
Dan Shi
47e47836e5 Convert VtsHalGnssV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalGnssV1_0TargetTest
atest VtsHalGnssV1_0Target

Change-Id: Ife6361f481409c3bac7ae518259bbc9837ccbdef
2019-10-15 09:25:51 -07:00
nelsonli
ff4de289f9 [vts-core] add VtsHalAuthSecretV1_0TargetTest to vts-core
Convert VtsHalAuthSecretV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atste VtsHalAuthSecretV1_0TargetTest
Change-Id: I6cf21977e1fef8b11bf0517540ef831a52a44937
2019-10-15 09:29:20 +00:00
Treehugger Robot
977e274043 Merge "[hardware][interfaces][camera] fix -Wreorder-init-list" 2019-10-15 00:00:45 +00:00
Yifan Hong
9521b9d458 [REFACTOR] health 2.0: BatteryMonitor::update split into 3 funcs
BatteryMonitor::update no longer calls healthd_board_battery_update
and callback for us.

Test: VTS health HAL 2.0 test
Change-Id: I05fbf60b7e2c38f82e019d2fec2b5f535defaeae
2019-10-14 15:24:21 -07:00
Yifan Hong
50c9e25251 [REFACTOR] health 2.0: healthd_common -> libhealthloop
This change converts the original healthd_common.cpp to a
C++ class, HealthLoop, that manages the infinite loop in health-related
modules (charger, health HAL, healthd, etc.). By doing so, the global
static variables (including FDs and healthd_mode_ops) are cleaned up.

This helps us implement health HAL 2.1.

In order to support legacy modules (namely, healthd, charger, health HAL
2.0, which all depends on android.hardware.health@2.0-impl), a
healthd_common_adapter.cpp file is added to
android.hardware.health@2.0-impl, so that the following functions
in healthd/healthd.h continues to be implemented using the global
healthd_mode_ops:
    - healthd_register_event
    - healthd_battery_update_internal

Test: boot up the device and run VTS test on health HAL.
Bug: 137670450
Bug: 142260281
Change-Id: Iadcfc1315155404a3600f0e1219b5bc370d96409
2019-10-14 15:24:21 -07:00
Yifan Hong
c04b0a3e20 health 2.0: Move healthd_common.cpp
... so that the next CL has less diff.

Test: see next CL.
Change-Id: I5be187ab859a0b26d615b5ba7af9a26a07880181
2019-10-14 15:24:21 -07:00
Amy Zhang
04587692b1 Merge changes from topic "pes"
* changes:
  Adding PES filter functionality to assemble PES data
  Adding filter status tracking logic into Demux default impl
2019-10-14 20:13:46 +00:00
Treehugger Robot
9e3a3a1f1c Merge "Add Vibrator 1.4 Hashes to current.txt" 2019-10-14 18:07:18 +00:00
Nick Desaulniers
f5b16f32f5 [hardware][interfaces][wifi] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: If22be04df7d2d0aae9ed50fada53d0ccd4edc9d1
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:06:08 -07:00
Nick Desaulniers
91e1687dcc [hardware][interfaces][renderscript] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: I9529dba0fe407f0d16f7aee10e3629f0175b8e3e
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:57 -07:00
Nick Desaulniers
477c7e87b3 [hardware][interfaces][gnss] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: Ifdccde48c47c0495467f438002caf91cfdbd8091
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:44 -07:00
Nick Desaulniers
e1e932ea20 [hardware][interfaces][camera] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: I387d30e993719014da50207c7114b0003b9450c5
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:30 -07:00
Nick Desaulniers
dc82c1573a [hardware][interfaces][vehicle] fix -Wdangling-gsl in test
Chaining the method calls in such a way otherwise returns a dangling
pointer to a temporary object.

Bug: 139945549
Test: mm
Change-Id: I0783fccbb6f11e7e37bd059445265227359649cf
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:18 -07:00