Searched refs:hapticEvent (Results 1 – 2 of 2) sorted by relevance
65 OHOS::HDI::Vibrator::V1_2::HapticEvent hapticEvent; in VibratorPlayHapticPatternTest() local66 hapticEvent.type = params.g_eventType; in VibratorPlayHapticPatternTest()67 hapticEvent.duration = params.g_eventDuration; in VibratorPlayHapticPatternTest()68 hapticEvent.time = params.g_eventTime; in VibratorPlayHapticPatternTest()69 hapticEvent.intensity = params.g_eventIntensity; in VibratorPlayHapticPatternTest()70 hapticEvent.frequency = params.g_eventFrequency; in VibratorPlayHapticPatternTest()71 hapticEvent.index = params.g_eventIndex; in VibratorPlayHapticPatternTest()72 hapticEvent.pointNum = params.g_eventPointNum; in VibratorPlayHapticPatternTest()78 hapticEvent.points.push_back(std::move(curvePoint)); in VibratorPlayHapticPatternTest()80 pkg.events.push_back(std::move(hapticEvent)); in VibratorPlayHapticPatternTest()
182 HapticEvent hapticEvent = {}; in PlayPattern() local183 hapticEvent.type = static_cast<EVENT_TYPE>(pattern.events[i].tag); in PlayPattern()184 hapticEvent.time = pattern.events[i].time; in PlayPattern()185 hapticEvent.duration = pattern.events[i].duration; in PlayPattern()186 hapticEvent.intensity = pattern.events[i].intensity; in PlayPattern()187 hapticEvent.frequency = pattern.events[i].frequency; in PlayPattern()188 hapticEvent.index = pattern.events[i].index; in PlayPattern()190 hapticEvent.pointNum = pointNum; in PlayPattern()196 hapticEvent.points.emplace_back(hapticPoint); in PlayPattern()198 packet.events.emplace_back(hapticEvent); in PlayPattern()