Commit graph

23464 commits

Author SHA1 Message Date
Steven Moreland
67f5d0f838 Update VNDK version for common graphics HALs.
We are adding things to them, and in order for core libraries like libui
to use them, the newer versions need to be in the VNDK.

Bug: 170435409
Test: build
Change-Id: I4094240656f357b5ae52194befd0e10627b9fe23
Merged-In: I4094240656f357b5ae52194befd0e10627b9fe23
2020-10-19 21:04:14 +00:00
Grzegorz Kolodziejczyk
b5f2d23e26 Introduce LE Audio software provider for bluetooth audio 2.1
Patch introduces LE Audio software encoding provider for bluetooth audio 2.1.

Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Sponsor: jpawlowski@
Change-Id: If668593be7a46c9abcc45d21c5bdb9b493864cc1
2020-10-09 17:54:44 +00:00
Treehugger Robot
cc6279316f Merge "doc: DEVICE_*_MATRIX_FILE specifies absolute paths" 2020-10-08 22:33:11 +00:00
Steven Moreland
3aa4754785 doc: DEVICE_*_MATRIX_FILE specifies absolute paths
The fact that these variables are 'FILE' instead of 'FILES' is due to
historical changes, but updating comment to reflect this to avoid
confusion.

Bug: N/A
Test: N/A
Change-Id: I92b685eceaab99c7786384c08076dcf3bd087326
2020-10-08 17:16:32 +00:00
Blair Prescott
230e96521d wifi: Fix VTS error for non-p2p devices
Fix VtsHalWifiSupplicantP2pV1_0TargetTest to skip tests
in such a way that VTS reports the module as complete on
devices that don't support Wifi Direct.

Bug: 170326147
Test: run vts -m VtsHalWifiSupplicantP2pV1_0TargetTest
Change-Id: Ia418c4bb72f4772422d724636453395c4ba9fb2d
2020-10-07 19:54:39 +00:00
Michael Butler
f77f02bf50 Merge "Create conversions to/from NNAPI canonical types" 2020-10-06 21:22:49 +00:00
Treehugger Robot
c576a3ccba Merge "Remove vts10 reference vts_target_tests_defaults" 2020-10-05 23:34:35 +00:00
Treehugger Robot
3d2cde64ee Merge "wifi: Deprecate older versions of wifi HAL" 2020-10-05 20:30:20 +00:00
Michael Butler
b98aa6d6bf Create conversions to/from NNAPI canonical types
This CL creates the following primary sets of functions:
* V1_X::utils::convert(<canonical_type>) -- Converts a canonical type
  to the corresponding HAL version type.
* nn::convert(<V1_X_HAL_type>) -- Converts a HAL version type to the
  corresponding canonical type.
* neuralnetworks::utils::hasNoPointerData -- Indicates if the object
  contains no pointer-based data that could be relocated to shared
  memory.
* neuralnetworks::utils::flushDataFromPointerToShared -- Relocate
  pointer-based data to shared memory.
* neuralnetworks::utils::unflushDataFromSharedToPointer -- Undoes
  `flushDataFromPointerToShared` on a Request object. More
  specifically, `unflushDataFromSharedToPointer` copies the output
  shared memory data from the transformed Request object back to the
  output pointer-based memory in the original Request object.

It also introduces some other minor utility code, including
makeQuantized8PerformanceConsistentWithP, countNumberOfConsumers,
validate, valid, and validatedConvertToCanonical.

Bug: 160667419
Test: mma
Change-Id: I0732e658c1f4ed40cd122f1ca8581fb40b056757
Merged-In: I0732e658c1f4ed40cd122f1ca8581fb40b056757
(cherry picked from commit a685c3dbf4)
2020-10-05 12:47:57 -07:00
Treehugger Robot
d8a767a847 Merge "Skip GnssMeasurement VTS for Android Automotive OS." 2020-10-05 18:38:50 +00:00
Dan Shi
f27b504a10 Remove vts10 reference vts_target_tests_defaults
The module is obsoleted.

Bug: 169581727
Test: build
Change-Id: I55853a2cde4c042c489b0e6ac8bcab93fc47be73
2020-10-05 10:48:24 -07:00
Roshan Pius
5a3efa4878 wifi: Deprecate older versions of wifi HAL
Various wifi protocol MAC randomizations are mandatory in Android 11.
So, deprecate older versions of wifi HAL which don't support the
corresponding API's.

Bug: 169201652
Test: Compiles
Merged-In: I20f5b3665650c86fc0f976c544194f87157e6b90
Change-Id: I20f5b3665650c86fc0f976c544194f87157e6b90
2020-10-05 09:11:13 -07:00
Joseph Jang
4433d35af9 Merge "fastboot: add a new oem command for post wipe userdata" 2020-10-05 02:34:52 +00:00
Steven Moreland
730aef9a78 Merge "hidl_test_java interfaces: use generic interfaces" 2020-10-02 16:32:25 +00:00
Steven Moreland
c0236f06e7 hidl_test_java interfaces: use generic interfaces
In places where we are passing interfaces, pass around
android.hidl.base.IBase to give flexibility to the test implementation,
specifically in order to avoid passing local binders to Java process,
which is a disabled feature.

Bug: 169369810
Test: atest hidl_test hidl_test_java
Change-Id: I7721a6ec7e72b96915a0dc66aa8e75c327032d1f
2020-10-01 23:20:44 +00:00
Tyler Trephan
0d9206aa57 Skip GnssMeasurement VTS for Android Automotive OS.
According to the Q CDD, an Android Automotive OS device is not required
to support GnssMeasurements.

Bug: 161549048
Test: atest VtsHalGnssV1_0TargetTest VtsHalGnssV2_0TargetTest VtsHalGnssV2_1TargetTest
Change-Id: Idcd59f36ca2ea28925f6766a7abcdf7b6ad0f0ff
2020-10-01 00:11:32 +00:00
josephjang
72c410d261 fastboot: add a new oem command for post wipe userdata
When user input 'fastboot erase userdata' in fastbootd, may need an
oem specific API doOemSpecificErase() to wipe other userdata in device.
If oem doesn't need this specific API, oem could return NOT_SUPPORTED
to fastbootd.

Bug: 169173873
Change-Id: Ie12ede31ef071a3c15265777b55746536a861292
2020-09-30 02:55:06 +00:00
Steven Moreland
46e2487ac0 msgq test service in VTS
auto_gen_config: this is a helper binary, so we avoid actually running a
test by not creating a test configuration

test_suites: vts, so that this is built and packaged with VTS

Bug: 168806888
Test: fmq_test
Change-Id: I640b848297667594153c207f8a4fcad989585d98
2020-09-30 00:47:32 +00:00
Steven Moreland
96e0709f21 msgq service device -> general-tests
We don't need this built per-device.

Bug: 168807095
Test: fmq_test
Change-Id: Ia5c4e8fa97ea364ccc3beae3ce6fe0980d12be25
2020-09-30 00:47:15 +00:00
nchalko
897f0d48bb Remove outdated warning now that the v1.0 had shipped
Change-Id: I28f8f137db92b390c8ec27680a5c305e3cef43ba
Test: n/a
2020-09-29 18:29:16 +00:00
Xusong Wang
7f40613792 Suppress gtest error for tests without any instance
NNAPI VTS is parameterized by discovered devices. When there is no
device available, the compilation caching and memory domain tests will
not be instantiated, and will cause a gtest error. This patch suppresses
the error by GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST macro.

Bug: 168152007
Test: 1.2/1.3 VTS without NNAPI driver
Change-Id: I715ae6f45df66e4a03c12b5d3f38bcc028a9ed7c
Merged-In: I715ae6f45df66e4a03c12b5d3f38bcc028a9ed7c
(cherry picked from commit af9ac3b8a0)
2020-09-28 15:39:01 -07:00
Treehugger Robot
ca31517201 Merge "Mark GraphicsMapperHidlTest as allowing not being instantiated" 2020-09-28 21:47:07 +00:00
Treehugger Robot
ac116b1f7b Merge "Rename vts-core to vts" 2020-09-28 20:03:10 +00:00
Roshan Pius
b9ddf021d3 supplicant(vts): Stop adding empty instance for vendor HAL
We don't need to test supplicant in the presence of vendor HAL & without
it. For a given device, this behavior is fixed.

Bug: 161951052
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Merged-In: I71097c3afef1765ca514abf2c350c423e3999020
Change-Id: I71097c3afef1765ca514abf2c350c423e3999020
(cherry picked from commit 984b6e0607)
2020-09-28 16:42:47 +00:00
Dan Shi
f2b950f470 Rename vts-core to vts
Bug: 151896491
Test: none
Change-Id: If74547c56b46ebc7fd728c1bf52fe9dedac65ffa
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-09-26 04:11:28 +00:00
Chris Forbes
3c9a3a0cd1 Mark GraphicsMapperHidlTest as allowing not being instantiated
Only the variant(s) actually implemented by the device will be
instantiated.

This is consistent with tests for other versioned or optional HALs.

Bug: b/167222309
Test: atest VtsHalGraphicsMapperV2_0TargetTest:GoogleTestVerification#UninstantiatedParameterizedTestSuite<GraphicsMapperHidlTest> -- --abi arm64-v8a
Change-Id: I4f1bfbad47bdbf75578ec48a3a56fb5351e7729a
2020-09-25 21:07:53 -07:00
Steven Moreland
a9f240232d Merge "tests.baz@1.0: changes for symmetric tests" 2020-09-25 20:16:29 +00:00
Treehugger Robot
80c84717d8 Merge "Clarify Health 2.1 design capacity type ranges" 2020-09-25 17:32:03 +00:00
Treehugger Robot
2be786937c Merge "Allow batteryFullChargeDesignCapacityUah to be 0" 2020-09-25 17:24:54 +00:00
Treehugger Robot
77c3b52888 Merge "vts: Use global hostapd_ since teardown will call terminate function" 2020-09-25 05:01:41 +00:00
Steven Moreland
ffb6a481c7 tests.baz@1.0: changes for symmetric tests
Changes to make hidl_test_java symmetric (this implementation mirrors
one in system/tools/hidl).

Bug: 168152294
Test: atest hidl_test_java
Change-Id: I29a468d1804ba494bfe5ca59d68b3ab2581eb9b4
2020-09-25 00:41:32 +00:00
Stephane Lee
086a33b39d Clarify Health 2.1 design capacity type ranges
Bug: 166841711
Test: Compile
Change-Id: Iee623638dfb606df55a6e13bd58e58ae2e8dd305
2020-09-24 12:20:18 -07:00
Stephane Lee
6bed2f3207 Allow batteryFullChargeDesignCapacityUah to be 0
Bug: 166841711
Test: Run VtsHalHealthV2_1TargetTest with a battery design capacity of 0
Change-Id: I48bea0e2a8e4f8eeba8874e44a9bf6aa00bfd637
2020-09-24 12:19:52 -07:00
Yifan Hong
4e2d45ba53 Merge "Allow batteryChargeTimeToFullNowSeconds to be -1" 2020-09-24 17:30:37 +00:00
lesl
b688ea7e73 vts: Use global hostapd_ since teardown will call terminate function
aosp/1427815 add invoke terminate function in teardown function.
It will cause Create Test case fail since Create killed global hostapd_
service to re-generate the local one.
Use global hostapd_ to replace local variable to make teardown function
work normally.

Bug: 169248773
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: I6300a626db76e68873bbc34c489a9a8ee2d55e7a
2020-09-24 08:17:34 +00:00
Stephane Lee
c2dc510a0a Allow batteryChargeTimeToFullNowSeconds to be -1
Test: Run the test under an implementation that doesn't support
  batteryChargeTimeToFullNowSeconds
Bug: 166841711
Change-Id: I18fb11bb0a2233a9a89183a5f9ecf597e7719172
2020-09-23 14:27:53 -07:00
Devin Moore
51dc008bd3 Merge changes from topic "revert-1433252-revert-1431616-thirtytwo-QKCUUIXLZL-QJYJJALHBY"
* changes:
  Reland "Add template parameters to MQDescriptor"
  Reland "Change HIDL fmq tests to use int32_t for payload"
2020-09-22 20:06:31 +00:00
Devin Moore
dd61a8901d Reland "Add template parameters to MQDescriptor"
b26628ac32

Bug: 142326204

Change-Id: I78d08f84231ca19905f51b0520ede1b71df34365
2020-09-22 17:33:14 +00:00
Devin Moore
7a26802481 Reland "Change HIDL fmq tests to use int32_t for payload"
9719e2d984

Bug: 142326204

Change-Id: I0914f7612bcd227f9a4cabbe2818de7d9999a3d3
2020-09-22 17:32:22 +00:00
Treehugger Robot
2b3810aa3a Merge "remove 4.14 kernels for Android S" 2020-09-21 22:33:56 +00:00
Steve Muckle
5eb1a2c121 remove 4.14 kernels for Android S
Android S will not support 4.14 on launch devices.

Bug: 168921549
Change-Id: Ia3c3d1481919a9534c84ad41f307742d0d29587e
2020-09-21 13:38:14 -07:00
Yifan Hong
4b7cc14a88 Merge "Add TV CEC to Q+ compatibility matrices." 2020-09-21 20:28:30 +00:00
Diego Wilson
4737502679 Merge changes from topic "revert-1431616-thirtytwo-QKCUUIXLZL"
* changes:
  Revert "Change HIDL fmq tests to use int32_t for payload"
  Revert "Add template parameters to MQDescriptor"
2020-09-21 19:44:34 +00:00
Diego Wilson
9719e2d984 Revert "Change HIDL fmq tests to use int32_t for payload"
Revert "Change payload type to int32_t for fmq device tests"

Revert submission 1431616-thirtytwo

Reason for revert: This topic broke the aosp_x86-userdebug target. Details at http://b/169077648

Reverted Changes:
If736389eb:Add template parameters to MQDescriptor
Ice9c28c3d:Change HIDL fmq tests to use int32_t for payload
Ia18d8459b:Add template arguments to MQDescriptor for AIDL
I95586cc83:Change payload type to int32_t for fmq device test...

Change-Id: Iaf37a5dca7a915f098e49ecb076c0932eb60e0c3
2020-09-21 19:36:49 +00:00
Diego Wilson
b26628ac32 Revert "Add template parameters to MQDescriptor"
Revert "Change payload type to int32_t for fmq device tests"

Revert submission 1431616-thirtytwo

Reason for revert: This topic broke the aosp_x86-userdebug target. Details at http://b/169077648

Reverted Changes:
If736389eb:Add template parameters to MQDescriptor
Ice9c28c3d:Change HIDL fmq tests to use int32_t for payload
Ia18d8459b:Add template arguments to MQDescriptor for AIDL
I95586cc83:Change payload type to int32_t for fmq device test...

Change-Id: Ib7c409b164c76517d642a415cdfc2406e4f2f351
2020-09-21 19:36:49 +00:00
Devin Moore
ab05f6310d Merge changes from topic "thirtytwo"
* changes:
  Add template parameters to MQDescriptor
  Change HIDL fmq tests to use int32_t for payload
2020-09-21 16:18:51 +00:00
Bill Yi
7a7e6e5ace Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" 2020-09-18 18:47:48 +00:00
Devin Moore
340f895d30 Add template parameters to MQDescriptor
First parameter is used to determine the type of the payload, and the
second parameter is used to determine the type of queue.
Added two types to be use in that second parameter.
SynchronizedReadWrite and UnsynchronizedWrite.

Test: atest fmq_unit_tests fmq_test
Bug: 142326204

Change-Id: If736389ebecd02b87879850714606523e5145579
2020-09-18 10:55:15 -07:00
Devin Moore
0a10d6918c Change HIDL fmq tests to use int32_t for payload
This is in preperation for more AIDL fmq testing. The types need to be
the same and AIDL does not support unit16_t.

Test: atest fmq_test fmq_unit_tests
Bug: 142326204
Change-Id: Ice9c28c3d0df064ea43c31950b3438d2e0d19063
2020-09-18 09:29:01 -07:00
Treehugger Robot
d56db87577 Merge "camera vts: fix CameraHidlTest::isSecureOnly for HAL1 Device" 2020-09-18 15:19:25 +00:00