Searched refs:curvePoint (Results 1 – 2 of 2) sorted by relevance
74 OHOS::HDI::Vibrator::V1_2::CurvePoint curvePoint; in VibratorPlayHapticPatternTest() local75 curvePoint.time = params.g_pointTime; in VibratorPlayHapticPatternTest()76 curvePoint.intensity = params.g_pointIntensity; in VibratorPlayHapticPatternTest()77 curvePoint.frequency = params.g_pointFrequency; in VibratorPlayHapticPatternTest()78 hapticEvent.points.push_back(std::move(curvePoint)); in VibratorPlayHapticPatternTest()
229 for (VibrateCurvePoint &curvePoint : event.points) { in PreProcessEvent()230 curvePoint.time += event.time; in PreProcessEvent()231 curvePoint.intensity *= (event.intensity / CURVE_INTENSITY_SCALE); in PreProcessEvent()232 curvePoint.intensity = std::max(curvePoint.intensity, INTENSITY_MIN); in PreProcessEvent()233 curvePoint.intensity = std::min(curvePoint.intensity, INTENSITY_MAX); in PreProcessEvent()234 curvePoint.frequency += event.frequency; in PreProcessEvent()235 curvePoint.frequency = std::max(curvePoint.frequency, FREQUENCY_MIN); in PreProcessEvent()236 curvePoint.frequency = std::min(curvePoint.frequency, FREQUENCY_MAX); in PreProcessEvent()