Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp229 const float averageSpeed = static_cast<float>(sumLength) / static_cast<float>(sumDuration); in refreshSpeedRates() local
265 (*sampledSpeedRates)[i] = speed / averageSpeed; in refreshSpeedRates()
274 return averageSpeed; in refreshSpeedRates()
278 const float averageSpeed, const int inputSize, const int *const xCoordinates, in refreshBeelineSpeedRates() argument
289 mostCommonKeyWidth, averageSpeed, i, inputSize, xCoordinates, yCoordinates, times, in refreshBeelineSpeedRates()
476 const float averageSpeed, const int id, const int inputSize, const int *const xCoordinates, in calculateBeelineSpeedRate() argument
481 if (sampledInputSize <= 0 || averageSpeed < 0.001f) { in calculateBeelineSpeedRate()
484 sampledInputSize, averageSpeed); in calculateBeelineSpeedRate()
554 (static_cast<float>(beelineDistance) / static_cast<float>(time)), averageSpeed, in calculateBeelineSpeedRate()
556 / averageSpeed), adjustedStartTime, adjustedEndTime); in calculateBeelineSpeedRate()
[all …]
Dproximity_info_state_utils.h59 static void refreshBeelineSpeedRates(const int mostCommonKeyWidth, const float averageSpeed,
137 static float calculateBeelineSpeedRate(const int mostCommonKeyWidth, const float averageSpeed,