Searched refs:getDistanceInt (Results 1 – 4 of 4) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/tests/suggest/core/layout/ |
D | geometry_utils_test.cpp | 72 EXPECT_EQ(0, GeometryUtils::getDistanceInt(0, 0, 0, 0)); in TEST() 75 EXPECT_EQ(5, GeometryUtils::getDistanceInt(0, 0, 5, 0)); in TEST() 76 EXPECT_EQ(5, GeometryUtils::getDistanceInt(0, 0, 3, 4)); in TEST() 77 EXPECT_EQ(5, GeometryUtils::getDistanceInt(0, -4, 3, 0)); in TEST() 78 EXPECT_EQ(5, GeometryUtils::getDistanceInt(0, 0, -3, -4)); in TEST() 79 EXPECT_EQ(500, GeometryUtils::getDistanceInt(0, 0, 300, -400)); in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 245 length += GeometryUtils::getDistanceInt(xCoordinates[j], yCoordinates[j], in refreshSpeedRates() 256 length += GeometryUtils::getDistanceInt(xCoordinates[j], yCoordinates[j], in refreshSpeedRates() 370 const int distPrev = GeometryUtils::getDistanceInt(sampledInputXs->back(), in getPointScore() 432 if (GeometryUtils::getDistanceInt(x, y, sampledInputXs->back(), sampledInputYs->back()) in pushTouchPoint() 438 sampledInputYs->back(), GeometryUtils::getDistanceInt( in pushTouchPoint() 459 sampledLengthCache->back() + GeometryUtils::getDistanceInt( in pushTouchPoint() 500 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[start], in calculateBeelineSpeedRate() 514 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[end], in calculateBeelineSpeedRate() 533 const int beelineDistance = GeometryUtils::getDistanceInt(x2, y2, x3, y3); in calculateBeelineSpeedRate()
|
D | proximity_info.cpp | 179 mKeyKeyDistancesG[i][j] = GeometryUtils::getDistanceInt( in initializeG() 183 mKeyKeyDistancesG[i][j] = GeometryUtils::getDistanceInt( in initializeG()
|
D | geometry_utils.h | 52 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, in getDistanceInt() function
|