Lines Matching refs:strength
162 static uint8_t convertEffectStrength(EffectStrength strength) {
165 switch (strength) {
178 Return<void> Vibrator::perform(V1_0::Effect effect, EffectStrength strength, perform_cb _hidl_cb) {
179 return performWrapper(effect, strength, _hidl_cb);
182 Return<void> Vibrator::perform_1_1(V1_1::Effect_1_1 effect, EffectStrength strength,
184 return performWrapper(effect, strength, _hidl_cb);
187 Return<void> Vibrator::perform_1_2(Effect effect, EffectStrength strength, perform_cb _hidl_cb) {
188 return performWrapper(effect, strength, _hidl_cb);
192 Return<void> Vibrator::performWrapper(T effect, EffectStrength strength, perform_cb _hidl_cb) {
199 if (strength < *validStrengthRange.begin() || strength > *std::prev(validStrengthRange.end())) {
203 return performEffect(static_cast<Effect>(effect), strength, _hidl_cb);
206 Return<void> Vibrator::performEffect(Effect effect, EffectStrength strength, perform_cb _hidl_cb) {
231 mScale << convertEffectStrength(strength) << std::endl;