Searched refs:historyAvgEvent (Results 1 - 2 of 2) sorted by relevance
/base/msdp/device_status/services/interaction/drag/src/ |
H A D | drag_smooth_processor.cpp | 115 auto historyAvgEvent = GetAvgCoordinate(history); in Resample() local 117 DumpMoveEvent(history, current, historyAvgEvent, currentAvgEvent, latestEvent); in Resample() 118 return GetInterpolatedEvent(historyAvgEvent, currentAvgEvent, nanoTimestamp); in Resample() 121 std::optional<DragMoveEvent> DragSmoothProcessor::GetInterpolatedEvent(const DragMoveEvent &historyAvgEvent, in GetInterpolatedEvent() argument 124 if ((nanoTimestamp <= historyAvgEvent.timestamp) || (nanoTimestamp == currentAvgEvent.timestamp) || in GetInterpolatedEvent() 125 (currentAvgEvent.timestamp <= historyAvgEvent.timestamp) || in GetInterpolatedEvent() 126 ((currentAvgEvent.timestamp - historyAvgEvent.timestamp) > INTERPOLATION_THRESHOLD)) { in GetInterpolatedEvent() 127 FI_HILOGW("No need linear interpolation, historyAvgEvent x:%{private}f, " in GetInterpolatedEvent() 130 historyAvgEvent.displayX, historyAvgEvent in GetInterpolatedEvent() 154 DumpMoveEvent(const std::vector<DragMoveEvent>& history, const std::vector<DragMoveEvent>& current, const DragMoveEvent &historyAvgEvent, const DragMoveEvent ¤tAvgEvent, const DragMoveEvent &latestEvent) DumpMoveEvent() argument [all...] |
/base/msdp/device_status/services/interaction/drag/include/ |
H A D | drag_smooth_processor.h | 41 std::optional<DragMoveEvent> GetInterpolatedEvent(const DragMoveEvent &historyAvgEvent, 46 const std::vector<DragMoveEvent>& current, const DragMoveEvent &historyAvgEvent,
|
Completed in 2 milliseconds