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/
DCellLayout.java1224 double bestDistance = Double.MAX_VALUE; in findNearestArea() local
1307 if ((distance <= bestDistance && !contained) || in findNearestArea()
1309 bestDistance = distance; in findNearestArea()
1322 if (bestDistance == Double.MAX_VALUE) { in findNearestArea()
1355 float bestDistance = Float.MAX_VALUE; in findNearestArea() local
1384 Float.compare(distance, bestDistance) < 0 || (Float.compare(distance, in findNearestArea()
1385 bestDistance) == 0 && curDirectionScore > bestDirectionScore)) { in findNearestArea()
1386 bestDistance = distance; in findNearestArea()
1395 if (bestDistance == Float.MAX_VALUE) { in findNearestArea()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java1388 double bestDistance = Double.MAX_VALUE; in findNearestArea() local
1472 if ((distance <= bestDistance && !contained) || in findNearestArea()
1474 bestDistance = distance; in findNearestArea()
1489 if (bestDistance == Double.MAX_VALUE) { in findNearestArea()
1522 float bestDistance = Float.MAX_VALUE; in findNearestArea() local
1552 Float.compare(distance, bestDistance) < 0 || (Float.compare(distance, in findNearestArea()
1553 bestDistance) == 0 && curDirectionScore > bestDirectionScore)) { in findNearestArea()
1554 bestDistance = distance; in findNearestArea()
1563 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()