commit | 1cd65e88f64636a96723c469b8533ebdc1e12993 | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Mon Nov 09 15:25:07 2020 +0000 |
committer | Lais Andrade <lsandrade@google.com> | Mon Nov 09 16:35:56 2020 +0000 |
tree | ccc39b115292a53b18d0cf52ba64642c5a7c9a63 | |
parent | 9febda8e05bbd924d14682454fdc7a846c38f954 [diff] |
Fix assert error on vibrator benchmarks The benchmark Args are generated dynamically with the supported effects/primitives, and they can be an empty list on some devices. The benchmark.h has a range(size_t) method to retrive arguments, which asserts on the args size, but does not expose a way to check if the args are empty. Fix: 171192316 Test: atest libvibratorservice_benchmarks Change-Id: Ida67e81bdf1066a055a6cafbb3b1ef3bdbe23e41