Commit Graph

46311 Commits

Author SHA1 Message Date
David Duarte
e432bdd45b uwb(hal): Implement UCI over serial in the default HAL
Bug: 229824143
Test: manual with cuttlefish
Change-Id: Ia29e618b8c9b53f295f66ff0b94965d4f571f8e4
2023-04-03 17:32:44 +00:00
Yifan Hong
d1129e076c Merge "All hals are marked optional in compatibility matrices (Q~T)" 2023-03-31 19:29:52 +00:00
Yifan Hong
79ed41b0e6 All hals are marked optional in compatibility matrices (Q~T)
Requirements are tested separatedly, in vts_treble_vintf_test.

New requirements are reflected in vts_treble_vintf_test. See change
If922f97cbf9fc.

Test: TH
Bug: 247575800

Change-Id: I6bc267dee4ca6145b9e7b40abde773ce5fc52e8c
2023-03-31 19:29:18 +00:00
Shunkai Yao
ddd489824d Merge changes from topic "fix-b-273252382-connect-external-device"
* changes:
  audio: Clarify profiles management for external devices
  audio: Add some utility methods, improve logging
2023-03-31 05:35:08 +00:00
Treehugger Robot
73c824414b Merge "Updated fuzz_config in Android.bp file" 2023-03-31 05:28:36 +00:00
Treehugger Robot
728011d97c Merge "Updated fuzz_config in Android.bp file" 2023-03-31 05:23:13 +00:00
Treehugger Robot
bf89d7ed4a Merge "Updated fuzz_config in Android.bp file" 2023-03-31 05:21:13 +00:00
Treehugger Robot
bbf290bb5d Merge "Updated fuzz_config in Android.bp file" 2023-03-31 05:11:52 +00:00
Mikhail Naganov
7b2d12b1f7 audio: Clarify profiles management for external devices
Clarify what should happen to mix port profiles after
connection of an external device. Add a test to verify
this behavior.

Also, add an XML file for the test runner for
VtsHalAudioCoreTargetTest.

Bug: 273252382
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3381dd29c5922bf31fa3a8ae6fa273597e8333a1
Merged-In: I3381dd29c5922bf31fa3a8ae6fa273597e8333a1
2023-03-30 20:32:00 -07:00
Mikhail Naganov
d5536d9ac6 audio: Add some utility methods, improve logging
Add 'isDefaultAudioFormat' to Utils.h.

Print the module type in 'setModuleDebug'.

Align 'suggestDeviceAddressTag' with framework code.

Bug: 273252382
Test: m
Change-Id: I0248d2e866522a63a745d4af6132b7d2b6a01564
Merged-In: I0248d2e866522a63a745d4af6132b7d2b6a01564
2023-03-30 20:32:00 -07:00
Andrew Scull
c71a8d0ef1 Merge "Use VSR to tell libhwtrust_cxx how to validate" 2023-03-30 09:36:31 +00:00
David Drysdale
a2f63439c7 Merge "Test specifying CERTIFICATE_NOT_{BEFORE,AFTER}" 2023-03-30 06:21:09 +00:00
Treehugger Robot
7c0d76357c Merge changes I53a67135,I235ca85f,If3180282
* changes:
  VTS: Add VSR requirement tests to VTS
  Fix clang-tidy errors
  VtsHalBluetooth: Use PDL to generate packets
2023-03-30 04:09:07 +00:00
Treehugger Robot
d14815472d Merge "DynamicsProcessing: Validate config params based on ranges advertised" 2023-03-30 04:03:07 +00:00
Jack He
2d2f3c272d VTS: Add VSR requirement tests to VTS
* Enforce that LMP version must be greater than or equal to HCI version
* Enforce that minimum advertising set is 16 when HCI version is 5.0 and
  above
* Enforce Link Layer Security, 2M Phy, Coded PHY requirements at BT 5
* Enforce minimum 8 resolving list entries at BT 5

Bug: 263257831
Test: vts
Change-Id: I53a6713563c0b9a5ba27eecf2a69caff0a57f30b
2023-03-29 18:24:55 -07:00
Andrew Scull
2b1e5d9fc8 Use VSR to tell libhwtrust_cxx how to validate
The DICE chain specification changes slightly between VSR versions so
the VSR is used to select the set of validation rules that should be
applied.

Test: TH
Change-Id: I3697279d9348705a0279736c61e8333720321214
2023-03-29 17:53:14 +00:00
Roshan Pius
a6fe62c3dc Merge "uwb[aidl]: Added LAST_STS_INDEX_USED config into CCC open ranging params" 2023-03-29 16:37:29 +00:00
Treehugger Robot
a0bb39cd9d Merge changes from topic "remove-ic-vsr-test"
* changes:
  identity: Add bug component ID.
  identity: Remove IdentityCredentialImplementedTest.
2023-03-29 14:50:37 +00:00
Andrew Scull
74a699c4d8 Merge "Deprecate CSR v1 and v2 in IRPC v3" 2023-03-29 14:18:51 +00:00
David Zeuthen
6533cb7061 identity: Add bug component ID.
Test: m
Bug: N/A
Change-Id: I993b40d7ff84e73fcf859720978a604b878d61f9
2023-03-29 09:45:01 -04:00
David Drysdale
ad785f53dc Test specifying CERTIFICATE_NOT_{BEFORE,AFTER}
Bug: 275363977
Test: VtsAidlKeyMintTargetTest
Change-Id: I69c0577a73eabda42c8ccffce5af0e5fa45e9320
2023-03-29 14:29:35 +01:00
Tommy Chiu
72abbbd36d Correct the expection of DeviceInfo size
Bug: 275645815
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I24187be5b7b34285aa53ddaa420b871826a3b825
2023-03-29 07:11:23 +00:00
Treehugger Robot
a4ccb03efd Merge "Add utils for checking range limits of effect config params" 2023-03-29 03:38:28 +00:00
Treehugger Robot
ee40587951 Merge "Throw away initial measurements before interval tests" into android13-tests-dev am: 86206d71ca
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2506037

Change-Id: If4e8ab003e754b4e9d0b4d507659049989941b51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29 02:15:57 +00:00
Treehugger Robot
86206d71ca Merge "Throw away initial measurements before interval tests" into android13-tests-dev 2023-03-29 01:48:26 +00:00
Devin Moore
2247059f55 Merge "Add a manifest fragment for occupant awareness" 2023-03-28 23:04:06 +00:00
David Zeuthen
4285aa8a5e identity: Remove IdentityCredentialImplementedTest.
Android 14 VSR no longer requires Identity Credential at feature
version 202301 or later. Remove the test which was added to verify
this.

Test: m
Bug: 249767070
Change-Id: Id767e7b9ee97a30741899afcec6895f57993642e
2023-03-28 17:22:33 -04:00
Roshan Pius
cca5eefb32 uwb[aidl]: Added LAST_STS_INDEX_USED config into CCC open ranging params
Add LAST_STS_INDEX_USED to CCC ranging

Bug: 268762844
Test: test CCC
Merged-In: I56514e7d7d0c927e6bf8e257547f7baeadd3770c
Change-Id: I56514e7d7d0c927e6bf8e257547f7baeadd3770c
2023-03-28 11:52:18 -07:00
Andrew Scull
95b3131370 Deprecate CSR v1 and v2 in IRPC v3
Deprecate the CSR format from v1 and v2 of the HAL, again. The older CSR
versions were allowed in order to ease migration from the
RemoteProvisioner app over to rkpd and that has now been completed.

Bug: 260920864
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I4d16eb64e4ffe602b4b252159202a4ddb56d63d7
2023-03-28 18:17:34 +00:00
Ram Mohan
afdf90b679 DynamicsProcessing: Validate config params based on ranges advertised
Bug: 272195502
Test: atest VtsHalDynamicsProcessingTargetTest

Change-Id: I05233c1e56cc35c4936f0a36e92aaf7a12dda49f
2023-03-28 21:08:51 +05:30
Ram Mohan
9c47719bf7 Add utils for checking range limits of effect config params
Bug: 272195502
Test: Build

Change-Id: I1ff5af7d25e9410c58f323b6d12dbe6764e40073
2023-03-28 20:28:04 +05:30
Jack He
dbceaca8e1 Fix clang-tidy errors
Bug: 263257831
Test: vts
Change-Id: I235ca85f9c1c84ab0a929572221020bfd568a2b0
2023-03-28 00:07:21 -07:00
Treehugger Robot
5e311b67f4 Merge "Audio : Fix ASAN crash in VTS test cases" 2023-03-28 05:55:23 +00:00
Treehugger Robot
1725fdded0 Merge "remove unused vts-core-tradefed harness" 2023-03-28 01:09:21 +00:00
Myles Watson
51b8baeb00 VtsHalBluetooth: Use PDL to generate packets
Bug: 266221125
Test: atest VtsHalBluetoothTargetTest
Change-Id: If3180282249027ffab45b7e84138a660266ce2b8
2023-03-27 17:31:53 -07:00
Shraddha Basantwani
b76f5abdcb Audio : Fix ASAN crash in VTS test cases
Effect Helper should not try to access min/max values of a tag
when it is not defined.

Bug: 271912230
Test: atest VtsHalAECTargetTest.cpp (with ASAN enabled)

Change-Id: Idf47a521fbd594c83ab0fc21f2750673652b3aee
2023-03-27 17:18:18 +05:30
Treehugger Robot
85eac30662 Merge "Updated fuzz_config in Android.bp file" 2023-03-27 05:25:39 +00:00
Treehugger Robot
eab4d44782 Merge "secure_element/aidl: add state checking in TearDown()" 2023-03-27 04:14:17 +00:00
Shunkai Yao
ff16dd1f7b Merge "AIDL effect: Effect factory add EffectProxy information in proxy" 2023-03-24 22:54:11 +00:00
Seth Moore
fc746fb1aa Merge "Do not require StrongBox to implement RKP" 2023-03-24 20:54:09 +00:00
Seth Moore
5a0320fbda Do not require StrongBox to implement RKP
Detect if there is an IRemotelyProvisionedComponent for strongbox, and
if so run the associated keymint tests. Else, allow strongbox to skip
the test as it's not required to implement the IRPC HAL.

Bug: 271948302
Test: VtsAidlKeyMintTargetTest
Change-Id: Ibf98e594e725d6ad14c0ff189ab9fbcc25b51f80
2023-03-24 12:29:31 -07:00
Chen Baoyu
2154b45320 Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan. am: a2881ffbd0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2496776

Change-Id: I59fa870664976566743a608e857cb91d7907efa4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 18:27:43 +00:00
Chen Baoyu
a2881ffbd0 Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan.
Bad safe_union access is raised by calling the GET method of
eutranBands(), because in default ctor of safe_union RadioAccessSpecifier::Bands
hidl_d is assigned with hidl_discriminator::geranBands, which conflicts
with hidl_discriminator::eutranBands, and leads to crash.

Should use the SET method of eutranBands(&) for assignment purpose.

Fix: 275077563
Bug: 271642958
Change-Id: Ie241e8968eb7f9a1297203be2ab4e0a1bf738dea
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2023-03-24 17:56:53 +00:00
Max Bires
6f135a7a19 Merge "Strictly enforce DeviceInfo entries." 2023-03-24 16:18:46 +00:00
Treehugger Robot
48e5787888 Merge "secure_element/aidl: update test case transmit" 2023-03-24 09:44:43 +00:00
Max Bires
60c53aeb7e Strictly enforce DeviceInfo entries.
Ensure that v3 HALs have exactly the expected number of entries present
when returning DeviceInfo inside of the Certificate Signing Request. Do
not allow for additional or fewer entries.

Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I8ea628335d5eed35ca2b65e22980e13fc9806738
2023-03-23 20:04:27 -07:00
Treehugger Robot
5d07cebba1 Merge "health: fix vts setChargingPolicy failing" 2023-03-24 02:50:13 +00:00
Xusong Wang
c2f025e250 Merge "Fix VTS generated test with reusable execution." 2023-03-24 00:47:17 +00:00
Yu-Han Yang
41c5b4efe3 Throw away initial measurements before interval tests
Bug: 264597734
Test: atest VtsHalGnssTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dbab0de442246a78c42acf5ca7c4f7c94fd82651)
Merged-In: I1064807adf3264f13c1ef6678df37cff350503c5
Change-Id: I1064807adf3264f13c1ef6678df37cff350503c5

NOTE FOR REVIEWERS - original patch and result patch are not identical.
PLEASE REVIEW CAREFULLY.
Diffs between the patches:
47,6 +447,7 @@
                                               const int numMeasurementEvents,
                                               const int timeoutSeconds,
                                               std::vector<int>& deltasMs) {
+    callback->gnss_data_cbq_.reset();  // throw away the initial measurements if any
     int64_t lastElapsedRealtimeMillis = 0;
     for (int i = 0; i < numMeasurementEvents; i++) {
         GnssData lastGnssData;

Original patch:
From dbab0de442 Mon Sep 17 00:00:00 2001
From: Yu-Han Yang <yuhany@google.com>
Date: Tue, 07 Feb 2023 19:01:56 +0000
Subject: [PATCH] Throw away initial measurements before interval tests

Bug: 264597734
Test: atest VtsHalGnssTargetTest
Change-Id: I1064807adf3264f13c1ef6678df37cff350503c5
---
2023-03-23 20:52:08 +00:00
Devin Moore
a301ca6711 Add a manifest fragment for occupant awareness
Test: atest VtsHalOccupantAwarenessV1_0TargetTest
Bug: 274164202

Change-Id: I781e956b0b654e30b28ae0a50d793389e97cb7e8
2023-03-23 16:28:59 +00:00