Commit graph

24742 commits

Author SHA1 Message Date
TreeHugger Robot
251697bd9b Merge "Merge ab/6749736 in stage." into stage-aosp-master 2020-10-13 03:31:34 +00:00
Steven Moreland
8e69ad680f Merge "camera 2.4: conditionally disable memory init" am: 6c6fd401a8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1449141

Change-Id: I0ca8708661ca5834fc311d14a29adb1a17509aa3
2020-10-12 17:22:07 +00:00
Steven Moreland
6c6fd401a8 Merge "camera 2.4: conditionally disable memory init" 2020-10-12 16:59:23 +00:00
Grzegorz Kolodziejczyk
a1663edb70 Introduce LE Audio software provider for bluetooth audio 2.1 am: b5f2d23e26
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1404810

Change-Id: I65a6147393994eafa71fbfcd152ef24586cb1bb5
2020-10-09 18:07:48 +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
Xin Li
50393137ed Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: I6756cad681e4cfa01868450214da0d7b2d5261e4
Change-Id: Ia529ecf4f48248d5af63673f359916486f71bc35
2020-10-08 23:22:52 -07:00
Treehugger Robot
4e7d50fe01 Merge "doc: DEVICE_*_MATRIX_FILE specifies absolute paths" am: cc6279316f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1455056

Change-Id: Idc8ef4e5fed0d6a328f4d905cb6af211302f6801
2020-10-08 22:35:36 +00:00
Treehugger Robot
cc6279316f Merge "doc: DEVICE_*_MATRIX_FILE specifies absolute paths" 2020-10-08 22:33:11 +00:00
Blair Prescott
bd7b0bceee wifi: Fix VTS error for non-p2p devices am: 230e96521d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: I24c7f0abc78d065d0fec4f0c158501295603a9dc
2020-10-08 22:16:21 +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
b175b10734 Merge "Create conversions to/from NNAPI canonical types" am: f77f02bf50
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1449138

Change-Id: Ic1a7e29d28a9c6ac3213a2fe95b5732206a0da85
2020-10-06 21:49:31 +00:00
Michael Butler
f77f02bf50 Merge "Create conversions to/from NNAPI canonical types" 2020-10-06 21:22:49 +00:00
Treehugger Robot
06640f702b Merge "Remove vts10 reference vts_target_tests_defaults" am: c576a3ccba
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1449815

Change-Id: I372939a9814fb5f93a2178f695d0c8253b291fd2
2020-10-05 23:46:34 +00:00
Steven Moreland
590f44eeed camera 2.4: conditionally disable memory init
This needs to be disabled on Pixel 3, but this is the only place w/
source code visible in AOSP. So, it is implemented as a mechanism.

Bug: 166675194
Test: atest android.hardware.camera2.cts.PerformanceTest
Change-Id: I0d91389432906a917696d27d27b4d6d96e64d09f
2020-10-05 23:45:34 +00:00
Treehugger Robot
c576a3ccba Merge "Remove vts10 reference vts_target_tests_defaults" 2020-10-05 23:34:35 +00:00
Treehugger Robot
60ce011e2f Merge "wifi: Deprecate older versions of wifi HAL" am: 3d2cde64ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1448439

Change-Id: I73569302fbf6af2bc53e438e8558caf5a704993f
2020-10-05 20:49:10 +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
d66b12008f Merge "Skip GnssMeasurement VTS for Android Automotive OS." am: d8a767a847
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1443915

Change-Id: Ic934f94ed2cb553ba473e3d2cd1074a140048328
2020-10-05 18:42:05 +00: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
a174737057 Merge "fastboot: add a new oem command for post wipe userdata" am: 4433d35af9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435112

Change-Id: Id0987ef9d4b6e5de171940e9ac28f5d8fa4bb881
2020-10-05 02:53:10 +00: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
10f1f66898 Merge "hidl_test_java interfaces: use generic interfaces" am: 730aef9a78
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1445778

Change-Id: Ic61e26ed271f748df3a5da83878b2e10fec734f1
2020-10-02 16:51:13 +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
Steven Moreland
3f20d8ba0f msgq test service in VTS am: 46e2487ac0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425309

Change-Id: I7714325db521dfa692190c48ce2c6a1cff4d368c
2020-10-01 20:06:47 +00:00
Steven Moreland
5569ed1441 msgq service device -> general-tests am: 96e0709f21
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425308

Change-Id: Ie9fe6db7129be1257970c751a3053aea5200a1d1
2020-10-01 17:41:25 +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
1366d334a1 Remove outdated warning now that the v1.0 had shipped am: 897f0d48bb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1441474

Change-Id: I1d8792c255800f3de76f5965d902314c0166b65e
2020-09-29 20:52:03 +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
Dan Shi
97225977fb Rename vts-core to vts
Bug: 151896491
Test: none
Change-Id: If74547c56b46ebc7fd728c1bf52fe9dedac65ffa
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-09-28 22:16:14 -07:00
Xusong Wang
d55adae254 Suppress gtest error for tests without any instance am: 7f40613792
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1441023

Change-Id: Ic6ea56f047cac78ae0ee56a29b54f17da411952a
2020-09-29 01:19:56 +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
527ce01e45 Merge "Mark GraphicsMapperHidlTest as allowing not being instantiated" am: ca31517201
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1439141

Change-Id: Ifa90d54ebe8ab99f36daba611a0d63f3f6fa8fdb
2020-09-28 22:03:07 +00:00
Treehugger Robot
ca31517201 Merge "Mark GraphicsMapperHidlTest as allowing not being instantiated" 2020-09-28 21:47:07 +00:00
Treehugger Robot
7c9ab94592 [automerger skipped] Merge "Rename vts-core to vts" am: ac116b1f7b -s ours
am skip reason: Change-Id I562b4dc50765e953800a814a8fd84a01c1b9352b with SHA-1 ba894f81db is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1439378

Change-Id: Ib64276f0c9e8c2885fdbda0f4a054fc75cbe366a
2020-09-28 20:13:15 +00:00
Treehugger Robot
ac116b1f7b Merge "Rename vts-core to vts" 2020-09-28 20:03:10 +00:00
Roshan Pius
8a4e68b788 supplicant(vts): Stop adding empty instance for vendor HAL am: b9ddf021d3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1438028

Change-Id: Ib7fad1045211bf9f24c7630140da04a960032bd9
2020-09-28 18:23:44 +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
295bf122fa Merge "tests.baz@1.0: changes for symmetric tests" am: a9f240232d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1438391

Change-Id: I55b4318b8b7a1f7e78d93aba48d18c8aca3766de
2020-09-25 20:33:44 +00:00
Steven Moreland
a9f240232d Merge "tests.baz@1.0: changes for symmetric tests" 2020-09-25 20:16:29 +00:00
Treehugger Robot
75c766946f Merge "Clarify Health 2.1 design capacity type ranges" am: 80c84717d8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1437295

Change-Id: I04dad4241e56a0053b910557fb320af2fe54e89e
2020-09-25 18:35:26 +00:00