Home
last modified time | relevance | path

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

/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DIconNormalizer.java378 float currentAngle = (xCoordinates[i] - xCoordinates[last]) / (i - last); in convertToConvexArray() local
382 if ((currentAngle - lastAngle) * direction < 0) { in convertToConvexArray()
385 currentAngle = (xCoordinates[i] - xCoordinates[start]) / (i - start); in convertToConvexArray()
386 if ((currentAngle - angles[start]) * direction >= 0) { in convertToConvexArray()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp113 const float currentAngle = GeometryUtils::getAngle( in updateTouchPoints() local
115 sumAngle += GeometryUtils::getAngleDiff(prevAngle, currentAngle); in updateTouchPoints()
634 const float currentAngle = getPointAngle(sampledInputXs, sampledInputYs, i); in updateAlignPointProbabilities() local
663 if (currentAngle < ProximityInfoParams::CORNER_ANGLE_THRESHOLD) { in updateAlignPointProbabilities()
680 skipProbability *= (M_PI_F - currentAngle) / M_PI_F * ProximityInfoParams::ANGLE_WEIGHT in updateAlignPointProbabilities()
682 if (currentAngle > ProximityInfoParams::DEEP_CORNER_ANGLE_THRESHOLD) { in updateAlignPointProbabilities()
690 && currentAngle > ProximityInfoParams::CORNER_ANGLE_THRESHOLD) { in updateAlignPointProbabilities()
704 const float speedMultipliedByAngleRate = std::min(speedRate * currentAngle / M_PI_F in updateAlignPointProbabilities()