Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 63e4c30a authored by Lais Andrade's avatar Lais Andrade
Browse files

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
parent c09f9fa2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment