Home
last modified time | relevance | path

Searched refs:bestDistance (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java252 float bestDistance = Float.MAX_VALUE; in kMeans() local
263 if (distance < bestDistance) { in kMeans()
264 bestDistance = distance; in kMeans()
272 totalDistance += bestDistance; in kMeans()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderAlgorithm.java605 float bestDistance = Float.MAX_VALUE; in findNearestArea() local
631 if (Float.compare(distance, bestDistance) < 0 || (Float.compare(distance, in findNearestArea()
632 bestDistance) == 0 && curDirectionScore > bestDirectionScore)) { in findNearestArea()
633 bestDistance = distance; in findNearestArea()
642 if (bestDistance == Float.MAX_VALUE) { in findNearestArea()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java854 int bestDistance = -1; in getEmptyBlock() local
871 if (dist > bestDistance) { in getEmptyBlock()
872 bestDistance = dist; in getEmptyBlock()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java373 double bestDistance = Double.MAX_VALUE; in moveFocus() local
381 if (bestDistance > distance) { in moveFocus()
382 bestDistance = distance; in moveFocus()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1252 double bestDistance = Double.MAX_VALUE; in findNearestArea() local
1331 if ((distance <= bestDistance && !contained) || in findNearestArea()
1333 bestDistance = distance; in findNearestArea()
1346 if (bestDistance == Double.MAX_VALUE) { in findNearestArea()