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

Commit db599942 authored by Tai Kuo's avatar Tai Kuo
Browse files

Update LOG_TAG and setAmplitudeCached timeout

To support the force-feedback vibrator, the type of ff_replay length
is __u16 (i.e. 65535). 6000000 is out of the bound.

Reference: Kernel header file include/uapi/linux/input.h
Bug: 279134938
Test: atest \
  libvibratorservice_benchmarks:VibratorBench/setAmplitudeCached
Change-Id: I59d7776c1a24f0695bd7ce06d334a07b7d3ecf72
parent b6c0bd6a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#define LOG_TAG "PowerHalControllerBenchmarks"
#define LOG_TAG "VibratorHalControllerBenchmarks"


#include <benchmark/benchmark.h>
#include <benchmark/benchmark.h>
#include <vibratorservice/VibratorHalController.h>
#include <vibratorservice/VibratorHalController.h>
@@ -183,7 +183,7 @@ BENCHMARK_WRAPPER(VibratorBench, setAmplitudeCached, {
        return;
        return;
    }
    }


    auto duration = 6000s;
    auto duration = 60s;
    auto callback = []() {};
    auto callback = []() {};
    auto amplitude = 1.0f;
    auto amplitude = 1.0f;