Home
last modified time | relevance | path

Searched refs:coef (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java472 float x, tx, coef;
475 coef = 3.0f * x * (1.0f - x);
476 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
481 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
487 coef = 3.0f * y * (1.0f - y);
488 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
493 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java610 float x, tx, coef;
613 coef = 3.0f * x * (1.0f - x);
614 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
619 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
625 coef = 3.0f * y * (1.0f - y);
626 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
631 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
DScroller.java79 float x, tx, coef;
82 coef = 3.0f * x * (1.0f - x);
83 tx = coef * ((1.0f - x) * START_TENSION + x * END_TENSION) + x * x * x;
88 final float d = coef + x * x * x;
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DCropView.java300 float[] coef = mTempCoef; in onTouchEvent() local
301 coef[0] = 1; in onTouchEvent()
302 coef[1] = 1; in onTouchEvent()
303 mRotateMatrix.mapPoints(coef); in onTouchEvent()
318 if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]); in onTouchEvent()