summaryrefslogtreecommitdiff
path: root/sensors/aidl/default/Sensor.cpp
diff options
context:
space:
mode:
authorMikhail Naganov <mnaganov@google.com>2022-06-28 01:46:21 +0000
committerMikhail Naganov <mnaganov@google.com>2022-07-19 19:55:37 +0000
commit1e703f182e2fcbb9123bf661d81d22a04d0e1f8d (patch)
tree77be4578e89f5f96444431d7a9b3a7966670a13d /sensors/aidl/default/Sensor.cpp
parent73e015a7617ddad8dcf98301be07be5ed4b8d865 (diff)
audio VTS: Refactor test parameter generation for I/O streams
Two changes that are necessary to test offloaded output: 1. Pass all mix port flags specified in the config to HAL when opening an output stream. Previously the generator was omitting the 'NON_BLOCKING' flag, however it is necessary for offloaded output to work. This also now passes the 'GAPLESS_OFFLOAD' flag to the stream opening call site. 2. Provide the DeviceAddress of the attached source/sink device to tests that use mix ports. Some tests were looking up the device address anyway. Also, HAL implementations seem to prefer to have the actual output device instead of 'DEFAULT' when opening offload streams. Bug: 219767875 Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Test: atest HalAudioV7_0GeneratorTest Change-Id: I0482376ecc7d6964f45f508a80716ffab18044b4 Merged-In: I0482376ecc7d6964f45f508a80716ffab18044b4 (cherry picked from commit 713d2c55908aa6bd22481163509c4543a9c6d1bf)
Diffstat (limited to 'sensors/aidl/default/Sensor.cpp')
0 files changed, 0 insertions, 0 deletions