Commit Graph

47299 Commits

Author SHA1 Message Date
David Drysdale
18283b6ca8 Merge "Fix attestation error checks" am: 82f86a1d4b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2648423

Change-Id: I47b830c602f7bd70060cf03b29953c25c3a015da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-05 06:04:36 +00:00
David Drysdale
82f86a1d4b Merge "Fix attestation error checks" 2023-07-05 05:20:29 +00:00
David Drysdale
f2c3944f9f Skip ATTEST_KEY using variant on waivered devices am: c3de1caf43
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2583373

Change-Id: I91fc6f00bb56d59e469c0e5ad6da24db34a2a009
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-04 14:40:43 +00:00
David Drysdale
c3de1caf43 Skip ATTEST_KEY using variant on waivered devices
Bug: 281452355
Bug: 289451966
Test: VtsAidlKeyMintTargetTest
Change-Id: Id448edae88569518deb2db4ab7bf50d16f33709a
2023-07-04 13:23:04 +01:00
David Drysdale
810fbcffed Fix attestation error checks
Avoid the ADD_FAILURE at the end if attestion ID failure uses an allowed
return code.

Test: VtsAidlKeyMintTargetTest
Bug: 286733800
Change-Id: I0dcac312ac4516a078b2742721e3a19074da52b1
2023-07-04 13:14:12 +01:00
Treehugger Robot
cfb439b4eb Merge "Revert "Fix VTS Fuzz issue"" am: e959d0923d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2646737

Change-Id: Idd441a5c81263af02570bd36cb369482ee77d920
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-03 13:28:45 +00:00
Treehugger Robot
e959d0923d Merge "Revert "Fix VTS Fuzz issue"" 2023-07-03 12:43:04 +00:00
Guillaume Bailey
a2b4a18ab7 Revert "Fix VTS Fuzz issue"
This reverts commit 1adfae9364.

Reason for revert: Causes Sabrina/Boreal bt stacks to timeout on startup
Bug: 247053367

Change-Id: Ibef97f054510c826920bb30725fed168c755cc14
2023-07-03 12:10:36 +00:00
Zhanglong Xia
7e9e8e975c add Spinel SPI interface support am: 7ae6d6f4ff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2648140

Change-Id: Ia2c45e6fa5ab5c50f888317b3f526649347607eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-03 09:58:51 +00:00
Zhanglong Xia
7ae6d6f4ff add Spinel SPI interface support
This commit enables the Thread Network HAL to support the Spinel
SPI interface.

Bug: 277286756
Test: Build and run otbr-agent on the emulator.
Change-Id: I6726eead5686f0afb33e5e2035ebc9021eca5afa
2023-07-03 11:59:17 +08:00
Zhanglong Xia
fb6fbba8b2 Merge changes from topic "cherrypicker-L18700000961261875:N88400001378560897" am: 59b018679b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2627570

Change-Id: Ib6134583b32467ec86c7d30da0ff641f57dc1040
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-01 00:37:33 +00:00
Zhanglong Xia
0e9126e492 Add Thread network HAL am: 24e527475f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2625530

Change-Id: I057254018422b521589abdd6ef08d15ff2139979
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-01 00:37:24 +00:00
Zhanglong Xia
59b018679b Merge changes from topic "cherrypicker-L18700000961261875:N88400001378560897"
* changes:
  add fuzz test and fix the Thread network HAL compile errors
  Add Thread network HAL
2023-07-01 00:12:41 +00:00
Mikhail Naganov
d8e545d9d8 audio: Add DriverInterface::start method am: 49712b56d8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2647304

Change-Id: I4246509623a4c4fe3a4f9847673e3a3a98fc44ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 23:08:07 +00:00
Mikhail Naganov
49712b56d8 audio: Add DriverInterface::start method
This method is used to bring out the hardware from standby.
It replaces the ad hoc 'exitStandby' method in StreamUsb.

Streamlined StreamUsb code to avoid locking during transfers.

Updated StreamRemoteSubmix to use 'start'.

Added extra checks to StreamStub to ensure that 'init/shutdown'
and 'standby/start' methods are called as expected. This allows
removing extra checks from non-stub stream implementations.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3615a7ca99cb4f1e149dcbfbc912f2ed58fb033f
2023-06-30 13:41:55 -07:00
Treehugger Robot
cc562a7e03 Merge "Audio : Add remote submix stream implementation" am: 12e6f0c42e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2560751

Change-Id: Ia4e222b53997ea34f9e86dc55937b0c4edb481fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 16:40:43 +00:00
Treehugger Robot
12e6f0c42e Merge "Audio : Add remote submix stream implementation" 2023-06-30 16:11:17 +00:00
Treehugger Robot
7ab910076a Merge "vts: Don't excercise data path for offloaded/bypass effects" am: a2d5a26476
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2626523

Change-Id: I909db18ad0f9fdd025beb74e9357b7f4cc038348
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 13:52:26 +00:00
Treehugger Robot
a2d5a26476 Merge "vts: Don't excercise data path for offloaded/bypass effects" 2023-06-30 12:55:47 +00:00
Shraddha Basantwani
6bb696370b Audio : Add remote submix stream implementation
Bug: 286914845
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ia477458193ade9068eaf56e953ab670fee53cc7d
2023-06-30 09:05:50 +00:00
Shunkai Yao
1831d7794b Merge "Support passing entire effect_param_t as vendor extension" am: afb60c5bb1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2640842

Change-Id: I6681cb824fa5323d2df4e9aef5d3857f052a673c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 01:21:07 +00:00
mike liao
f4ce030a12 Add fix vts fail when configureMonitorEvent am: b79cbf50f1 am: d8baeb3916 am: 1b000d1343 am: 62334235e8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2640754

Change-Id: I8099c5e4d93fd2659d7cd29dcb0c6abbc9b1ffed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 01:20:25 +00:00
Shunkai Yao
afb60c5bb1 Merge "Support passing entire effect_param_t as vendor extension" 2023-06-30 01:06:35 +00:00
mike liao
62334235e8 Add fix vts fail when configureMonitorEvent am: b79cbf50f1 am: d8baeb3916 am: 1b000d1343
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2640754

Change-Id: Id7ec0c1fae71d7e6f4cf6676222f24f723bcc9e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 00:33:22 +00:00
mike liao
1b000d1343 Add fix vts fail when configureMonitorEvent am: b79cbf50f1 am: d8baeb3916
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2640754

Change-Id: I97914a24ec13a8c8278877907bd6f68012a0deb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 00:05:48 +00:00
mike liao
d8baeb3916 Add fix vts fail when configureMonitorEvent am: b79cbf50f1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2640754

Change-Id: I48d3c2ecee071096c1b94c94293bb9b1cc39f839
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 23:22:37 +00:00
Jin Chen
021d87aa1c Merge "[uwb](hal) Add radar support" am: a0920e2e62
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2644416

Change-Id: Ie1300cd74d9d074237a2a58721f399a21cb29c3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 20:23:05 +00:00
Jesus Sanchez-Palencia
f3068ac977 Merge changes from topic "lights-aidl-rust-derive" am: 5cf8e8e2ea
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2639431

Change-Id: Ifcb8b4011f161069776d400d490e254725b05c86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 20:22:18 +00:00
Jin Chen
a0920e2e62 Merge "[uwb](hal) Add radar support" 2023-06-29 20:20:45 +00:00
Jesus Sanchez-Palencia
5cf8e8e2ea Merge changes from topic "lights-aidl-rust-derive"
* changes:
  lights: Add state to the example service
  lights aidl: Add required @Rust derive statements
2023-06-29 19:33:07 +00:00
Jesus Sanchez-Palencia
b03180a84c Merge "lights: Re-write example service in Rust" am: c5521aef12
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2628631

Change-Id: I2e2efae36e4cbce02ff456be3696f30f415b6e89
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 18:28:29 +00:00
Treehugger Robot
5250f6dc10 Merge "Validating key characteristics of generated/imported keys." am: 2e46e91864
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2566036

Change-Id: Ic7f5e947952bf07a18257604a29a1b48cb41ee09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 18:26:20 +00:00
Shunkai Yao
beef909697 Support passing entire effect_param_t as vendor extension
Replace the UUID toString with hex version

Bug: 271500140
Test: Enable AIDL
Test: atest libAudioHalEffectParamTest
Change-Id: I79a5db25dc45774821a9a9a6bcda77c04e9da90d
2023-06-29 18:18:20 +00:00
Jesus Sanchez-Palencia
c5521aef12 Merge "lights: Re-write example service in Rust" 2023-06-29 18:16:50 +00:00
Jesus Sanchez-Palencia
c0544589b8 lights: Add state to the example service
Add a Light struct to the example service so it can hold a HwLight and
its associated HwLightState. Also added a HashMap of ids -> Light to the
LightService and updated the HAL methods implementation to make the
service stateful.

Now instantiating a LightService requires that a list of HwLights is
provided, so a default implementation was provided as a convenience. The
android.hardware.light rust API version had to be bumped since we rely
on new derive statements added to the AIDL files.

Tested: built VtsHalLightTargetTest and ran in Cuttlefish
Bug: 286106270
Change-Id: Id2b17a6a2290295c7b0b5405ac9815eaa28303c6
2023-06-29 10:54:30 -07:00
Jesus Sanchez-Palencia
ea05baf338 lights aidl: Add required @Rust derive statements
The new LightsService example is written in Rust and is being expanded
to include a state as part of the service. This required that HwLight
and HwLightState derived from the Copy and Clone traits, so here we are
updating the AIDL Rust bindings.

This is not an API change, so in order to avoid having to bump the AIDL
API version for this HAL we used the hash_gen.sh script as below:

$ m android.hardware.light-update-api
$ m android.hardware.light-freeze-api

$ vim light/aidl/Android.bp # removed frozen_api argument and the newly
created version 3 block

$ cp -r aidl_api/android.hardware.light/3/* aidl_api/android.hardware.light/2/
$ rm -rf aidl_api/android.hardware.light/3/

$ ./system/tools/aidl/build/hash_gen.sh  \
      hardware/interfaces/light/aidl/aidl_api/android.hardware.light/2/  \
      1  \
      hardware/interfaces/light/aidl/aidl_api/android.hardware.light/2/.hash

Tested: Verified that the build is passing and used with the next CL.
Bug: 286106270
Change-Id: I1400ec1db1e75595176a5656d6688df9457153d4
2023-06-29 10:53:23 -07:00
Treehugger Robot
2e46e91864 Merge "Validating key characteristics of generated/imported keys." 2023-06-29 17:34:26 +00:00
Jesus Sanchez-Palencia
531b5ba10b lights: Re-write example service in Rust
Add a re-implementation of the Lights HAL example service in Rust. This
was originally written as the start of a Cuttlefish specific
implementation of this service, but it's simple / small enough that
replacing the current Android C++ one with it shouldn't bring in any
trouble while providing yet another Rust service example to the tree.

Tested: built VtsHalLightTargetTest and ran in Cuttlefish
Bug: 286106270
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a796fb113c405838424e61fd0b4cd6e0ef86c5a7)

Change-Id: I01eaf9ce7c6086e1429f52ff4f7f92cebc5360b6
2023-06-29 10:16:04 -07:00
Eran Messeri
e7a36fadae Merge "Update default KeyMint version to 3" am: 4a7c3810fc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2633329

Change-Id: I14f68456f67813ac799a202105a3931efff426aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 17:15:04 +00:00
Eran Messeri
4a7c3810fc Merge "Update default KeyMint version to 3" 2023-06-29 16:37:48 +00:00
Myles Watson
288283d9c5 Merge "Fix bluetooth AIDL restart fail when open HCI Fail" am: 0e55fec5c3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2643490

Change-Id: Icd489ad746a5270d4850faf8f1fabb3664c0a1f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 14:37:38 +00:00
Myles Watson
0e55fec5c3 Merge "Fix bluetooth AIDL restart fail when open HCI Fail" 2023-06-29 13:55:26 +00:00
Jesus Sanchez-Palencia
2a12f7e9a4 Merge "lights: Add Rust backend to the lights AIDL" am: 3004ccf550
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2628630

Change-Id: I5b55ab5b105e13980ce40f744c6dfaaa5546f45a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 23:29:21 +00:00
Jesus Sanchez-Palencia
3004ccf550 Merge "lights: Add Rust backend to the lights AIDL" 2023-06-28 22:38:47 +00:00
Jin Chen
cb3c1de918 [uwb](hal) Add radar support
* Adding radar session type, capabilities, oids, and app configs based
  on the Android UWB radar UCI spec v1.0.

Test: Compile
Bug: 237097302
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:db326d178686dd981dbb81804534b51502392ae2)
Merged-In: Ia0b901859b38127db8532118f2427338fdf502a8
Change-Id: Ia0b901859b38127db8532118f2427338fdf502a8
2023-06-28 21:11:53 +00:00
yanggang.yang
6ebe251322 Fix bluetooth AIDL restart fail when open HCI Fail
[Description]
If aidl open HCI fail at the first time, the aidl state
can not change to enable for the next time to initialize.

[Root Cause]
Bluetooth AIDL State is always equal to INITIALIZING after
open hci fail at the first time.

[Solution]
When open HCI fail at the first time, initialize the mstate to ready

Bug: 285517442
Test: pass

Change-Id: I19756d6602ba931242d0f95942db55c505a210bb
2023-06-28 09:13:57 +00:00
Jaideep Sharma
cba428627a vts: Don't excercise data path for offloaded/bypass effects
Incase of offload effects or effects running in bypass mode
data is not handled by effect module, in those cases skip the
testcases to excercise data path.

Bug: 287590880
Test: run vts -m VtsHalAudioEffectTargetTest

Change-Id: I76155f8997b415bc96242f995ccc2e33c8989dc5
2023-06-28 04:47:30 +00:00
Mikhail Naganov
7e18503e54 audio: Allow Module subclasses to customize stream creation am: 9d16a6ac10
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2639437

Change-Id: Iaf04f4a8639f78dd4d9e56ceb98060f48284354d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-27 18:29:55 +00:00
Mikhail Naganov
3872e306cf audio: Refactor streams implementation am: d5554cfae2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2639436

Change-Id: I57e2f9402e67565a6373e1349b177189f09a8c2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-27 18:29:53 +00:00
Mikhail Naganov
c135ebc172 audio: Propagate errors from Driver::setConnectedDevices am: 75b59dfb4e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2639435

Change-Id: Ibdda55b4078bc77351ccc48a97f3ceab007d21b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-27 18:29:51 +00:00