Fixes in power benchmarks
- Add support check before running PowerHalAidlBenchmarks for setBoost
and setMode, to avoid testing unsupported values and getting the HAL
in a bad state.
- Introduce loop breaks when a binder call fails, since SkipWithError
is not enough to end the loop early and might cause test timeout if
we try to interact with a HAL in a bad state.
- Move PauseTiming/ResumeTimings to wrap one-way call delays only, as
this API is expensive and should be used sparsely (and it's needed
there to avoid filling up the one-way binder queue).
- Make sure we close all sessions in createHintSession tests.
- Use ndk::enum_range in AIDL enums to cover all available boost and
mode values.
Fix: 351008375
Flag: EXEMPT test only
Change-Id: I6b277d60767f5928e397765b7dcabd709c4f8953
Test: libpowermanager_benchmarks
3 files changed