Home
last modified time | relevance | path

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

/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp178 static bool shouldBeReplacedWithBraking(aidl::ActivePwle activePwle, aidl::Braking braking) { in shouldBeReplacedWithBraking() argument
179 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() local
331 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()