Home
last modified time | relevance | path

Searched refs:totalDistance (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java230 float totalDistance = 0; in kMeans() local
248 totalDistance = 0; in kMeans()
272 totalDistance += bestDistance; in kMeans()
283 if (totalDistance == 0 || (Math.abs(lastDistance - totalDistance) in kMeans()
284 / totalDistance) < STOP_CHANGE_RATIO) { in kMeans()
287 lastDistance = totalDistance; in kMeans()
300 float score = totalDistance * (float) Math.sqrt(realK); in kMeans()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java439 double totalDistance = getSplineFlingDistance(velocity); in fling() local
440 mDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
447 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling()
452 mFinalY = startY + (int) Math.round(totalDistance * coeffY); in fling()
DPagedView.java1311 final int totalDistance; in getScrollProgress() local
1319 totalDistance = v.getMeasuredWidth() + mPageSpacing; in getScrollProgress()
1321 totalDistance = Math.abs(getScrollForPage(adjacentPage) - getScrollForPage(page)); in getScrollProgress()
1324 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java762 double totalDistance = 0.0; in fling() local
766 totalDistance = getSplineFlingDistance(velocity); in fling()
769 mSplineDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
833 final double totalDistance = getSplineFlingDistance(velocity); in startAfterEdge() local
834 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge()
DScroller.java403 int totalDistance = in fling() local
411 mFinalX = startX + Math.round(totalDistance * coeffX); in fling()
416 mFinalY = startY + Math.round(totalDistance * coeffY); in fling()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java1144 int totalDistance = getScaledMeasuredWidth(v) + mPageSpacing; in getScrollProgress() local
1148 float scrollProgress = delta / (totalDistance * 1.0f); in getScrollProgress()