Home
last modified time | relevance | path

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

/ohos5.0/drivers/peripheral/vibrator/test/fuzztest/vibratorplayhapticpattern_fuzzer/
H A Dvibratorplayhapticpattern_fuzzer.cpp74 OHOS::HDI::Vibrator::V1_2::CurvePoint curvePoint; in VibratorPlayHapticPatternTest() local
75 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()
/ohos5.0/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/
H A Dcustom_vibration_matcher.cpp229 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()