mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
fba21730f8b4dd7c6919aa3267b3fbdffdeda8a4
The rest of the API (*::analyseStatus) returns NOT_SUPPORTED when the legacy API returns -ENOSYS. setParameter legacy -> treble shim did not follow this conversion due to the legacy API stating that for get_paramers, -ENOSYS should be returned if "the implementation does not accept a parameter change while the output is active but the parameter is acceptable otherwise", aka INVALID_STATE. Thus setParameter shim used to return - OK for OK - INVALID_STATE for -ENOSYS - INVALID_ARGUMENTS for everything else This leads to several problems: - an implementation of the legacy API can not report NOT_SUPPORTED - it is inconsistent with the rest of the status_t conversion methods - shim methods implemented over getParameter can not distinguish between different failures as required by the .hal documentation Most importantly, on the system side, the Result is transformed to a status_t again but without any special logic for methods wrapping getParameter in the shim. This can not be changed as the system can not know which methods are implemented with a legacy wrapper under the Treble API boundary. Thus setParam now converts status_t to Result in the same way as all the other shim methods. This patch is the second half of I41204c0807d2bd4675e941771cbc9a43d7d14855 that was reverted due to a merge conflict. Bug: 72873273 Bug: 69811500 Bug: 69010523 Test: playback and record for media and voice call Original-Change-Id: I41204c0807d2bd4675e941771cbc9a43d7d14855 Change-Id: I41328afce56ce31d4a26159ca2d4b16d14cce05b Signed-off-by: Kevin Rocard <krocard@google.com>
Merge "Convert contexthub hal test to use VtsHalHidlTargetTestEnvBase" am:
bd98b61b2c am: 5cc68bc013
Merge "Convert gatekeeper hal test to use VtsHalHidlTargetTestEnvBase" am:
c730bcf0af am: a96bb1d1c0
Merge "Convert boot, memtrack and power hal to use service name aware testing." am:
b9515d9d3f am: a713584847
Merge "Ignore meta sensor events when checking values" into oreo-vts-dev am:
d09fdd6ca1 am: bfc5b817e7
Description
No description provided
Languages
C++
56.3%
AIDL
41.2%
C
1.5%
Rust
0.4%
Java
0.4%
Other
0.1%