Searched refs:activePwle (Results 1 – 1 of 1) sorted by relevance
178 static bool shouldBeReplacedWithBraking(aidl::ActivePwle activePwle, aidl::Braking braking) { in shouldBeReplacedWithBraking() argument179 return (braking != aidl::Braking::NONE) && (activePwle.startAmplitude == 0) && in shouldBeReplacedWithBraking()180 (activePwle.endAmplitude == 0); in shouldBeReplacedWithBraking()330 aidl::ActivePwle activePwle = activePwleFromJavaPrimitive(env, element); in vibratorPerformPwleEffect() local331 if ((i > 0) && shouldBeReplacedWithBraking(activePwle, braking)) { in vibratorPerformPwleEffect()332 primitives.push_back(brakingPwle(braking, activePwle.duration)); in vibratorPerformPwleEffect()334 primitives.push_back(activePwle); in vibratorPerformPwleEffect()336 totalDuration += std::chrono::milliseconds(activePwle.duration); in vibratorPerformPwleEffect()338 if ((i == (size - 1)) && shouldAddLastBraking(activePwle, braking)) { in vibratorPerformPwleEffect()