Commit graph

46237 commits

Author SHA1 Message Date
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
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
Anthony Stange
4ad422e74d Merge "Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType" into android13-tests-dev am: 2550e7a719
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486876

Change-Id: Ie628fc877fd63dbe3b8c96d335416b2c741f1c5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 15:02:43 +00:00
Anthony Stange
2550e7a719 Merge "Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType" into android13-tests-dev 2023-03-17 14:33:01 +00:00
Jack Yu
ba41b92e54 Used LTE bands for network scan am: 87abf6a366
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2493495

Change-Id: I437d499c79368cbc6a35c9a730bbcc94adde8060
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 03:16:19 +00:00
Vlad Popa
4d7aa9279b CSD: rename get/setOutputRs2 to include upper bound
RS2 represents an interval of power levels. This is why it is clearer to
specify upper bound in the naming to make it clear that we refer to the
upper limit which when exceeded will trigger a momentary exposure.

Test: atest VtsHalAudioCoreTargetTest
Bug: 273961110
Change-Id: If4e065deeedb32c3e5e81caf4cd6924fb5815dc0
Merged-In: If4e065deeedb32c3e5e81caf4cd6924fb5815dc0
2023-03-17 02:57:47 +01:00
Jack Yu
87abf6a366 Used LTE bands for network scan
Test with LTE bands, which are supported by every device
in the world.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Change-Id: Ibc71a69b1a9aeec506a35fac9f64ecad80371155
2023-03-17 00:05:34 +00:00
Seth Moore
47194fa089 Add old DeviceInfo version documentation
Since comments are stripped from the stable AIDL snapshots, the CDDL
describing the DeviceInfo contents is lost for the older versions. Add
the comments from older DeviceInfo versions as a reference for
maintainers of older HAL implementations.

Test: n/a
Change-Id: I7dd3d285b3d8422a6df4228ad0cf5797e78609c1
2023-03-16 16:24:57 -07:00
Dezhi Huang
b5425cb909 Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType
Function assertTypeMatchStringType does not match the sensor type
HINGE_ANGLE that only exists on folding screen phones. When testing the
VtsAidlHalSensorsTargetTest on a folding screen mobile phone,
it will fail.
So we need add CHECK_TYPE_STRING_FOR_SENSOR_TYPE(HINGE_ANGLE) to
the function assertTypeMatchStringType.

Bug: 270831199
Change-Id: Ib82a1168ff90d851eee6ce025464b11bcda7d5ca
2023-03-16 01:55:31 +00:00
AOYAGI Takako
64412bb9cd Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9 am: c0fd000566 am: 16b926e728 am: e760f283cc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695

Change-Id: I48186f5bee46d4bb9486f42c0ce410450c51cc08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 00:47:32 +00:00
AOYAGI Takako
e760f283cc Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9 am: c0fd000566 am: 16b926e728
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695

Change-Id: I9d89b36e50daf41894930baeb7bc59f5d45d27a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 00:07:28 +00:00
AOYAGI Takako
16b926e728 Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9 am: c0fd000566
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695

Change-Id: I5074deea886829be8ba8988377490f7d2ad2449b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 23:32:36 +00:00
AOYAGI Takako
c0fd000566 Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695

Change-Id: I105d3e8472f27f2d49a6ab675d173af739fca039
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 22:54:22 +00:00
AOYAGI Takako
45a15ed8b9 Fix for VTS test CleanupConnectionsOnInitialize
Sensor event never occur on DUT that has no sensor.
So, skip this test case on DUT that has no sensor.

Test: run vts -m VtsHalSensorsV2_0TargetTest

Bug: 273383821
Change-Id: I657b74ca3c67c105e40e58a7e4c700370a9db3e3
Signed-off-by: AOYAGI Takako <aoyagi.takako@jp.panasonic.com>
2023-03-15 21:50:31 +00:00
Steven Moreland
184f64bcee rkp: add keymint v2 hash into rkp v2
When we split the rkp interface, we only added one hash to rkp v2, but
on Android S devices, this interface was in keymint v2, and so it used
the keymint v2 hash.

In order for that old implementation to be recognized, we need to add the hash in specifically.

Note: v1 was missed in b/264549860, but this was v2.

Fixes: 271513408
Test: vts_treble_vintf_vendor_test
Change-Id: I58c7c41633000df933261a147edd3477afd09a36
2023-03-15 19:48:45 +00:00
David Zeuthen
df1ec09244 [automerger skipped] identity: VTS: allow for multiple interpretations of AuthKey validity. am: 5993719991 am: c6ab70d754 -s ours am: 04935a3134 -s ours
am skip reason: Merged-In Iedb9caad933b0df2b190915f5cc7177e507f15b5 with SHA-1 a6fc69d339 is already in history

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

Change-Id: I07499986bb76c3a746daa8d338d5575aacc78009
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 18:26:13 +00:00
David Zeuthen
04935a3134 [automerger skipped] identity: VTS: allow for multiple interpretations of AuthKey validity. am: 5993719991 am: c6ab70d754 -s ours
am skip reason: Merged-In Iedb9caad933b0df2b190915f5cc7177e507f15b5 with SHA-1 a6fc69d339 is already in history

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

Change-Id: I102eb9702ba55f190cd59c46afabd3f8f9eac738
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 18:04:33 +00:00
David Zeuthen
c6ab70d754 identity: VTS: allow for multiple interpretations of AuthKey validity. am: 5993719991
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2489995

Change-Id: I89b208ea35edc6a487d38ced395ae62bcc549019
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 17:30:25 +00:00
Mikhail Naganov
776e65e35f Update visibility of libaudioserviceexampleimpl
In order for vendors to be able to use this library
it needs to have public visibility.

Bug: 205884982
Test: m
Change-Id: Idd47c942ee1e97372047ec1b44bcd996d454e3e2
2023-03-15 09:29:16 -07:00
David Zeuthen
5993719991 identity: VTS: allow for multiple interpretations of AuthKey validity.
Bug: 271948315
Test: atest VtsHalIdentityTargetTest
(cherry picked from https://android-review.googlesource.com/q/commit:719920700e0e8c0849ef25eeaad8de2bf2442b6e)
Merged-In: Iedb9caad933b0df2b190915f5cc7177e507f15b5

Change-Id: I6599499e08db91729fe6898dbfa5ecb77450d11e
2023-03-15 14:01:50 +00:00
Treehugger Robot
5e289765fa Merge "Add new reason code and status code for session conflict." 2023-03-15 02:03:59 +00:00
Treehugger Robot
ebd7b7afb8 Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518 am: 368ca264f2 am: fee45b6dbb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: If81bfd72c984aed3ff5bdd281995413b4825c747
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 01:00:54 +00:00
Treehugger Robot
fee45b6dbb Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518 am: 368ca264f2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: I384cfc0e1dc70275f87e10997a29b14225690105
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:38:23 +00:00
Zhang Yuan
846e734c1d [automerger skipped] Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed. am: 399c257ece -s ours
am skip reason: Merged-In I3ac7407fdee82348411db99d340613e62f36a277 with SHA-1 5bf6d5777a is already in history

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

Change-Id: Ia19e7da2beaa5255da368101f957de3f81d16870
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:21:40 +00:00
Treehugger Robot
368ca264f2 Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: If47be0aaa310c6e3bbcddeffcc1c2a201654a0f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:01:42 +00:00
Treehugger Robot
333df15518 Merge "Add ATSC support in the vts" into android12-tests-dev 2023-03-14 23:24:36 +00:00
Xin Li
82e0eca1c4 Merge "Merge Android 13 QPR2" 2023-03-14 21:40:25 +00:00
Treehugger Robot
f84593a459 Merge "Fix RKP support assumptions for keymint VTS" 2023-03-14 21:18:37 +00:00
ziyiw
617c2baaaa Add new reason code and status code for session conflict.
Also assigned a new number to the UWB regulation off status/reason code.

Test: compile
Bug: 272361935
Merged-In: I4cbf2443d7e3ec914ee465d9128fef5225a74712
Change-Id: Ib219ea213be050944a0bbd601f79ccbbba18f299
2023-03-14 19:58:03 +00:00
Wei
d4dcef21e7 Add ATSC support in the vts
ATSC configuration isn't supported in current config reader.
Add it in this CL.

Bug: 271933206
Test: manual

Change-Id: I7a1f5356c33d6576d6ae6c71fd4af171b5ad30ac
2023-03-14 19:51:22 +00:00
stanley-ct.chen
ce666fc17f Fix google vts dead lock am: 33a593ab59 am: 18738f2a5c am: f7bd18c7c6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I5082637054be9a223f638bdeb87ca9f37a54d893
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 19:26:33 +00:00
Zhang Yuan
399c257ece Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed.
For those devices which does not support GSM, returning is not
supported or invalid arguments are the expected behavior.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Merged-In: I3ac7407fdee82348411db99d340613e62f36a277
Change-Id: I3ac7407fdee82348411db99d340613e62f36a277
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
(cherry picked from commit 5bf6d5777a)
2023-03-14 19:08:46 +00:00
Jack Yu
86bc150058 Merge "Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed." 2023-03-14 19:08:17 +00:00
Shunkai Yao
54cec778ee Merge "Add some Effect type UUID and offload indicater in common parameter" 2023-03-14 19:01:56 +00:00
stanley-ct.chen
f7bd18c7c6 Fix google vts dead lock am: 33a593ab59 am: 18738f2a5c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I1518cdc4eaa836569ab470edb73ceaa408d8d502
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 19:01:31 +00:00
stanley-ct.chen
18738f2a5c Fix google vts dead lock am: 33a593ab59
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I5b81aa26e0e5823309345e09a2238b09d3fa767c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 18:42:08 +00:00
Devin Moore
7baf2ac4e3 Merge "[Sensor][Bugfix]: Remove redundant assignment operations" 2023-03-14 16:58:31 +00:00
Shunkai Yao
d30ff8fb80 Add some Effect type UUID and offload indicater in common parameter
Bug: 271500140
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I61ebf268600564cb5abddc90979070b675a85541
2023-03-14 16:07:25 +00:00
Seth Moore
a12ac74603 Fix RKP support assumptions for keymint VTS
The support level for strongbox is different from the tee
implementation. Additionally, we were incorrectly checking the keymint
aidl version. KeyMint 1.0 supported ATTEST_KEY, so it's unclear why we
were ever checking for KeyMint 2.0.

Test: VtsAidlKeyMintTargetTest
Bug: 263844771
Change-Id: I750367902fec90204d71c1e158404b2421f9ad87
2023-03-14 15:48:08 +00:00
Andrew Scull
e5a5610018 Merge "Validate DICE chain based on context" 2023-03-14 15:15:06 +00:00
Xin Li
63a85860d0 Merge Android 13 QPR2
Bug: 273316506
Merged-In: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Change-Id: Idb49d8b58e52535cd8c021be7ff2608c1c846780
2023-03-13 23:11:17 -07:00
stanley-ct.chen
33a593ab59 Fix google vts dead lock
[Description]
Fix google vts dead lock

Bug: 271400402
Test:
1. AC on/off PASS
2. UHDTV Scan PASS
3. UHDTV Switch PASS

Change-Id: Ic198224309636c83d533a24bb15519e67931b6d1
2023-03-14 11:38:29 +08:00
zhuhaiqing
610770294d [Sensor][Bugfix]: Remove redundant assignment operations
Remove redundant assignment operations for limitedAxesImuUncal.yBias

Change-Id: I3318f5e71539db7ebd24552a611df6e9567c68d9
Signed-off-by: zhuhaiqing <zhuhaiqing@xiaomi.com>
2023-03-14 02:26:29 +00:00
Zhang Yuan
5bf6d5777a Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed.
For those devices which does not support GSM, returning is not
supported or invalid arguments are the expected behavior.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Change-Id: I3ac7407fdee82348411db99d340613e62f36a277
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2023-03-13 19:01:10 -07:00
Tri Vo
c26a57f974 Merge "Remove KM dependency on RemoteProvisioner" am: 230ee1c79c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486035

Change-Id: Ib835764a9b5aae413d830766bde27ce3ddbd3486
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-13 23:46:56 +00:00
Tri Vo
230ee1c79c Merge "Remove KM dependency on RemoteProvisioner" 2023-03-13 23:31:14 +00:00