Searched refs:sampleTime (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/multimodalinput/input/service/event_resample/src/ |
H A D | event_resample.cpp | 247 int64_t sampleTime = frameTime; in ConsumeBatch() local 249 sampleTime -= RESAMPLE_LATENCY; in ConsumeBatch() 251 ssize_t split = FindSampleNoLaterThan(batch, sampleTime); in ConsumeBatch() 265 ResampleTouchState(sampleTime, static_cast<MotionEvent*>(*outEvent), next); in ConsumeBatch() 384 alpha = static_cast<float>(sampleTime - current->actionTime) / delta; in ResampleTouchState() 396 if (sampleTime > maxPredict) { in ResampleTouchState() 397 sampleTime = maxPredict; in ResampleTouchState() 399 alpha = static_cast<float>(current->actionTime - sampleTime) / delta; in ResampleTouchState() 405 ResampleCoordinates(sampleTime, event, touchState, current, other, alpha); in ResampleTouchState() 413 touchState.lastResample.actionTime = sampleTime; in ResampleCoordinates() [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/event_resample/test/ |
H A D | event_resample_test.cpp | 194 int64_t sampleTime = frameTime - EventResample::RESAMPLE_LATENCY; in CalculateExpected() local 204 while ((idx < numSamples) && (eventBatch.at(idx).actionTime <= sampleTime)) { in CalculateExpected() 223 return ResampleCoord(sampleTime, current); in CalculateExpected() 226 int32_t ResampleCoord(int64_t sampleTime, InputEvt ¤t) in ResampleCoord() 246 if (sampleTime > maxPredict) { in ResampleCoord() 247 sampleTime = maxPredict; in ResampleCoord() 266 actionTime = sampleTime; in ResampleCoord() 774 int64_t sampleTime = 5; variable 806 int64_t sampleTime = 7; variable 842 int64_t sampleTime = 6; variable [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/event_resample/include/ |
H A D | event_resample.h | 254 void ResampleTouchState(int64_t sampleTime, MotionEvent* event, const MotionEvent* next); 255 void ResampleCoordinates(int64_t sampleTime, MotionEvent* event, TouchState &touchState,
|