Home
last modified time | relevance | path

Searched refs:levelToScale (Results 1 – 2 of 2) sorted by relevance

/device/google/coral/vibrator/tests/
Dtest-vibrator.cpp56 static const EffectScale GPIO_FALL_SCALE{levelToScale(V_LEVELS[2])};
58 static const EffectScale GPIO_RISE_SCALE{levelToScale(V_LEVELS[3])};
60 static const EffectScale ON_GLOBAL_SCALE{levelToScale(V_LEVELS[5])};
64 {{Effect::CLICK, EffectStrength::LIGHT}, levelToScale(V_LEVELS[1])},
65 {{Effect::CLICK, EffectStrength::MEDIUM}, levelToScale(V_LEVELS[2])},
66 {{Effect::CLICK, EffectStrength::STRONG}, levelToScale(V_LEVELS[3])},
67 {{Effect::TICK, EffectStrength::LIGHT}, levelToScale(V_LEVELS[1])},
68 {{Effect::TICK, EffectStrength::MEDIUM}, levelToScale(V_LEVELS[1])},
69 {{Effect::TICK, EffectStrength::STRONG}, levelToScale(V_LEVELS[1])},
70 {{Effect::HEAVY_CLICK, EffectStrength::LIGHT}, levelToScale(V_LEVELS[2])},
[all …]
Dutils.h27 static inline EffectScale levelToScale(EffectLevel level) { in levelToScale() function