Home
last modified time | relevance | path

Searched refs:bestDistance (Results 1 – 4 of 4) 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.java1107 double bestDistance = Double.MAX_VALUE; in findNearestArea() local
1190 if ((distance <= bestDistance && !contained) || in findNearestArea()
1192 bestDistance = distance; in findNearestArea()
1205 if (bestDistance == Double.MAX_VALUE) { in findNearestArea()
1236 float bestDistance = Float.MAX_VALUE; in findNearestArea() local
1261 if (Float.compare(distance, bestDistance) < 0 || in findNearestArea()
1262 (Float.compare(distance, bestDistance) == 0 in findNearestArea()
1264 bestDistance = distance; in findNearestArea()
1273 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()