mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
43a85cfb2b7931a8a7f4affd1324e448a31a848d
Since in the C and HIDL APIs the method for opening a stream receives the device to connect to, some legacy HAL implementations took an advantage of that. In AIDL APIs device port connection process is more dynamic and independent of the stream creation. To simplify porting of legacy implementations to AIDL, a helper class StreamSwitcher is added. It emulates the legacy behavior by allowing to postpone the stream implementation creation until the connected device is known. Until that moment, it exposes to the client a stub implementation of the stream interface. Bug: 264712385 Bug: 286914845 Test: atest VtsHalAudioCoreTargetTest Change-Id: Ie8ae0338fd22f705e00a34e56a7fa235eda5ed9e
Description
No description provided
Languages
C++
56.3%
AIDL
41.2%
C
1.5%
Rust
0.4%
Java
0.4%
Other
0.1%