Commit graph

46484 commits

Author SHA1 Message Date
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
Tommy Chiu
fde3ad1db5 Add checks for different size of challenge
RKP allows 0 ~ 64 byte challenge to be provided.
Test it by several different size inputs.

Bug: 272392463
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I488c75745dc68778ff6d862506a5beeec82f7ac1
2023-03-28 00:57:43 +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
Jack Wu
2d6557c0f7 health: fix vts setChargingPolicy failing
Bug: 274308314
Test: m android.hardware.health-update-api
Change-Id: I0f1a41d86d6998f061a29a51b9d1cf43a47949c2
Signed-off-by: Jack Wu <wjack@google.com>
2023-03-23 12:01:22 +00:00
Treehugger Robot
4532252323 Merge "Specify @throws for secure_element AIDL reset() method" 2023-03-23 09:39:30 +00:00
Ayushi Khopkar
9367a9e5d7 Updated fuzz_config in Android.bp file
Added new fields in fuzz_config like - hotlists,
description, vector, service_privilege, users, fuzzed_code_usage, etc.

Bug: 271384401
Test: Build audiocontrolV1.0_fuzzer

Change-Id: I8b0c08ec26e9c4f599c309ec49bb13df017e1f96
2023-03-23 14:33:31 +05:30
Ayushi Khopkar
3d396973ff Updated fuzz_config in Android.bp file
Added new fields in fuzz_config like - hotlists,
description, vector, service_privilege, users, fuzzed_code_usage, etc.

Bug: 271384401
Test: Build bluetoothV1.0_fuzzer

Change-Id: I71936ab4b16dd5ade636d3da9b1eafa6a6fea6b0
2023-03-23 14:31:05 +05:30
Ayushi Khopkar
5088c6cdc3 Updated fuzz_config in Android.bp file
Added new fields in fuzz_config like - hotlists,
description, vector, service_privilege, users, fuzzed_code_usage, etc.

Bug: 271384401
Test: Build vehicleManager_fuzzer

Change-Id: I0d648ae43328ca8860daa8cf39e8e2d10868952a
2023-03-23 14:26:25 +05:30
Ayushi Khopkar
133c500469 Updated fuzz_config in Android.bp file
Added new fields in fuzz_config like - hotlists,
description, vector, service_privilege, users, fuzzed_code_usage, etc.

Bug: 271384401
Test: Build automotiveSvV1.0_fuzzer

Change-Id: I2ab534b469956fd0c274b098cceb33e011178b10
2023-03-23 14:24:15 +05:30
Ayushi Khopkar
f19832876a Updated fuzz_config in Android.bp file
Added new fields in fuzz_config like - hotlists,
description, vector, service_privilege, users, fuzzed_code_usage, etc.

Bug: 271384401
Test: Build automotiveCanV1.0_fuzzer

Change-Id: I305cdd1b0a990bd72788c7562197e190a4256f38
2023-03-23 14:19:53 +05:30
Jack Yu
e9d5efb5b7 secure_element/aidl: add state checking in TearDown()
For some secure elements, reset() may takes more than 2.5 seconds.
- Extend timeout duration
- In TearDown(), wait until reset() is completed.

Bug: 273872072
Test: atest VtsHalSecureElementTargetTest
Change-Id: I345e1ac28e87423cfcbecd07aa049034fa28c40f
2023-03-23 07:22:21 +00:00
Jack Yu
27ebbec30b secure_element/aidl: update test case transmit
When no logical or basic channel is opened, transmit() resturns an error
code CHANNEL_NOT_AVAILABLE with an empty response.

Bug: 270091254
Test: atest VtsHalSecureElementTargetTest
Change-Id: I7b302ec321089f0b8f1d9d67bb12f9bdddaa4ee1
2023-03-23 15:19:56 +08:00
Steven Moreland
8010fcdc17 remove unused vts-core-tradefed harness
Bug: 272210842 # this test is already failing
Bug: 274790216
Test: build
Change-Id: I0c3474d7dc175c49b1a29412106e3db9417ccfa3
2023-03-22 23:01:10 +00:00
jiabin
fdee322c96 AHAL: fix StreamUsb crash.
1. By default, the DriverUsb should be standby. When there is data
   transfer request, it will exit standby.
2. Initialize alsa device profile before reading device info.
3. Open the alsa device proxy after the preparation succeed.

Bug: 266216550
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I1f0425036df176c52220320135079e7c98daa2d0
2023-03-22 22:16:13 +00:00
Devin Moore
212a6da42c Specify @throws for secure_element AIDL reset() method
This was expected to return an error in the HIDL version, so we
explicitly say which it should return on failure.

Brought up in ANAPIC review in ag/21108335

Test: none
Bug: none
Change-Id: I6f183a490f91aca5e08b5ae83017e707b63268ea
2023-03-22 19:52:23 +00:00
Jiabin Huang
b3602ca092 Merge "AHAL: fix USB HAL issues with reporting device capabilities." 2023-03-22 16:18:49 +00:00
Devin Moore
19dfc6525c Merge "Update vibrator example extension aidl_interface with versions_with_info" 2023-03-22 15:35:28 +00:00
jiabin
118c261010 AHAL: fix USB HAL issues with reporting device capabilities.
1. The card and device must be specified before reading device info.
2. Map PcmType::FIXED_Q_8_24 to PCM_FORMAT_S24_LE.
   Map PcmType::INT_24_BIT to PCM_FORMAT_S24_3LE.

Bug: 266216550
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ib48538d01bc980524e2c4c5b221f6d7e479beba6
2023-03-21 23:07:40 +00:00
Devin Moore
caca1dbc80 Update vibrator example extension aidl_interface with versions_with_info
This info is needed to know when the imports change between versions.
Set a good example.

Test: m
Bug: 273585373
Change-Id: I3f34711e99b09b611d68af522e2103a7cf768d63
2023-03-21 16:08:08 +00:00
Treehugger Robot
35d4efc9e9 Merge "Update common.fmq aidl_interface with versions_with_info" 2023-03-21 01:22:34 +00:00
Devin Moore
777a0bc5f7 Update common.fmq aidl_interface with versions_with_info
This info is needed to know when the imports change between versions.

Test: m
Bug: 273585373
Change-Id: Iec383ec1cb46a65a8733760219863838d4daf30a
2023-03-20 23:47:49 +00:00
Treehugger Robot
aab958fef0 Merge "Revert "graphics: improve preloading for IMapper default impl"" 2023-03-20 18:09:12 +00:00
Seth Moore
58686e5882 Merge "Note the relationship of patchlevels with keymint" 2023-03-20 17:32:01 +00:00
Chia-I Wu
7ca92515be Revert "graphics: improve preloading for IMapper default impl"
This reverts commit 6d189b71a2.

Reason for revert: b/273884219, beagle_x15

Change-Id: I9706fc46f9aedbeb4bbcff7ebcb45939bcd20680
2023-03-20 16:36:56 +00:00
sangweilin
e1e361ed43 catch mutex when notify sampling rate changed, otherwise signal may be lost
Change-Id: Ib52f26e731808ecbe5fd2a53fcd8a47ab3882902
Signed-off-by: sangweilin <sangweilin@xiaomi.com>
2023-03-19 06:48:32 +00:00
Shunkai Yao
b1b8b68316 Merge "Update EffectUUID initialization" 2023-03-18 23:36:42 +00:00
Seth Moore
192c575ffb Note the relationship of patchlevels with keymint
Some of the DeviceInfo must match existing tags in KeyMint, but this
was not documented.

Test: n/a
Change-Id: I7733e2a4b0c08b0b89ece41390c0ce0711459d82
2023-03-17 15:36:11 -07:00
Seth Moore
d0c02789ad Merge "Add old DeviceInfo version documentation" 2023-03-17 20:48:35 +00:00
Vlad Popa
429e51f4e7 Merge "CSD: rename get/setOutputRs2 to include upper bound" 2023-03-17 19:12:45 +00:00
Shunkai Yao
f8be1acde7 Update EffectUUID initialization
Avoid dynamic initialization global UUID variables

Bug: 271500140
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I7574c1fe1ba0aaff1d9d29a9eed10de1aef33806
2023-03-17 18:16:22 +00:00
Mikhail Naganov
1120ee5603 Merge "Update visibility of libaudioserviceexampleimpl" 2023-03-17 16:55:05 +00:00