Commit graph

15938 commits

Author SHA1 Message Date
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
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
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
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
Nick Desaulniers
0fd95b2473 [hardware][interfaces][bluetooth] 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: Ie34b4f3400439817bebd30ee0356e35a87c971e5
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:04:50 -07:00
Harpreet \"Eli\" Sangha
e0525f9572 Add Vibrator 1.4 Hashes to current.txt
Test: Build
Change-Id: I3cf9bcca7e6aab7125b7666c82ac493ee44eec8c
Merged-In: I3cf9bcca7e6aab7125b7666c82ac493ee44eec8c
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-10-15 02:09:58 +09:00
Dan Shi
0e1efc568c Merge "Add VtsHalLightV2_0TargetTest and VtsHalNeuralnetworksV1_* to vts-core" 2019-10-14 15:35:48 +00:00
Amy
80d8badd1c Adding PES filter functionality to assemble PES data
Test: manual
Bug: 135709325
Change-Id: I9bbbae88918004201e6d7d5389473b4fd3a0a969
Merged-In: I9bbbae88918004201e6d7d5389473b4fd3a0a969
(cherry picked from commit 1109e9fee2)
2019-10-12 00:09:17 +00:00
Amy
7e4ca874d0 Adding filter status tracking logic into Demux default impl
Test: manual
Bug: 135709325
Change-Id: I2d473c250dc4d87263d5e7004095d144da684223
Merged-In: I2d473c250dc4d87263d5e7004095d144da684223

(cherry picked from commit 7912502053)
2019-10-12 00:08:50 +00:00
Mikhail Naganov
d3f6a41150 Audio HAL: Add missing device to XSD
The XSD has to be kept manually synced to the HAL definition. When some
formats were introduced and the corresponding enum values were added in
the HAL .hal, the XSD was not updated.

Test: xmllint --noout --schema hardware/interfaces/audio/4.0/config/audio_policy_configuration.xsd  --xinclude out/target/product/*/vendor/etc/audio_policy_configuration.xml
Bug: 128967080
Change-Id: I8cf36c7717a0dd15fb4f6261f9bb61c88b27a959
2019-10-11 23:32:30 +00:00
Steven Moreland
ab017f20cf Merge "Remove libhwbinder/libhidltransport deps" 2019-10-11 20:19:21 +00:00
Mikhail Naganov
eb794151c6 Audio: Ensure input stream gets closed on the audio HAL server side
As IStream::close only releases internal resources of the stream,
deferring actual stream closing to IStream server object
destruction, which is delivered to the audio HAL server
asynchronously, there is a possibility for a race condition
when streams gets opened and closed in a tight loop as in the VTS
test.

Work around this problem by flushing RPC messages between
the client and the server, and inserting a delay before opening
a new stream.

Bug: 139329877
Test: VtsHalAudioV5_0TargetTest#AudioPrimaryHidlTest.GetMicrophonesTest
Change-Id: Id8744f6f21fd3bfa607f489364925eccbab17b5e
(cherry picked from commit 26f868bb02)
2019-10-11 19:32:57 +00:00
Treehugger Robot
21f3eeb2fe Merge "vibrator: Support Async Callback APIs" 2019-10-11 00:35:05 +00:00
Dan Shi
4856370e54 Add VtsHalLightV2_0TargetTest and VtsHalNeuralnetworksV1_* to vts-core
Bug: None
Test: None
Change-Id: I3fbbba0dc283bec2de025f0b743d97ded5874bf9
2019-10-10 13:45:43 -07:00
David Anderson
be192c7b44 Merge "Add a default implementation and tests of IBootControl 1.1." 2019-10-10 19:19:49 +00:00
Janis Danisevskis
cf5d7e83fd Fix UB in class NullOr
NullOr now stores the references a pointers internally. This fixes UB
where the internal reference was initalized by dereferencing nullptr.

Test: Compiles
Bug: 121390225
Change-Id: I2073e5aeac401309aa63b08e05db3c467fab6b69
2019-10-10 09:21:18 -07:00
Lev Proleev
c805505344 Merge "Revert "Increase neuralnetworks compatibility to 1.3"" 2019-10-10 14:06:42 +00:00
Lev Proleev
b8d9568f3d Merge changes from topic "NNAPI v1.3"
* changes:
  Revert "Create NNAPI HAL v1.3 and add TENSOR_QUANT8_ASYMM_SIGNED OperandType"
  Revert "Copy VTS tests from v1.2 to v1.3"
  Revert "Modify NNAPI VTS tests to run on version 1.3"
2019-10-10 14:06:42 +00:00
Lev Proleev
839ca3c428 Revert "Create NNAPI HAL v1.3 and add TENSOR_QUANT8_ASYMM_SIGNED OperandType"
This reverts commit bd2b4e78ac.

Reason for revert: the topic breaks git_qt-dev-plus-aosp

Change-Id: Ic72dcbb7ac4ef8e6ed597eb778289b39475f03f8
2019-10-10 14:01:05 +00:00
Lev Proleev
9613b4649b Revert "Copy VTS tests from v1.2 to v1.3"
This reverts commit d0e339e1da.

Reason for revert: the topic breaks git_qt-dev-plus-aosp

Change-Id: I68d31526cc7699b9a6c69a1ccc669fdb7605124e
2019-10-10 13:58:56 +00:00
Lev Proleev
a927c57a86 Revert "Increase neuralnetworks compatibility to 1.3"
This reverts commit 485abc99bc.

Reason for revert: the topic breaks git_qt-dev-plus-aosp

Change-Id: I5449cd84fe3085dd90a5f45c7fb4f13577b8b4f2
2019-10-10 13:54:42 +00:00