Home
last modified time | relevance | path

Searched refs:newX (Results 1 – 11 of 11) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/
DMoveScreensaverRunnable.java108 final float newX = getRandomPoint(smallestDim - mSaverView.getWidth()); in run() local
111 mSaverView.setX(newX); in run()
119 final float newX = getRandomPoint(mContentView.getWidth() - mSaverView.getWidth()); in run() local
138 mSaverView.setX(newX); in run()
/packages/apps/DevCamera/src/com/android/devcamera/
DPreviewOverlay.java211 float newX = (1 - r1.centerY()) * previewW; in onDraw() local
215 … RectF newR1 = new RectF(newX - dX * 0.5f, newY - dY * 0.5f, newX + dX * 0.5f, newY + dY * 0.5f); in onDraw()
228 newX = (1 - p[j].y) * previewW; in onDraw()
229 canvas.drawCircle(newX, newY, dP, mPaint); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java241 int newX = 0; in updateCurrentPageScroll() local
243 newX = getScrollForPage(mCurrentPage); in updateCurrentPageScroll()
245 scrollTo(newX, 0); in updateCurrentPageScroll()
246 mScroller.startScroll(mScroller.getCurrPos(), newX - mScroller.getCurrPos()); in updateCurrentPageScroll()
1430 final int newX = getScrollForPage(whichPage); in snapToPageWithVelocity() local
1431 int delta = newX - getUnboundedScrollX(); in snapToPageWithVelocity()
1458 velocity * Math.signum(newX - getUnboundedScrollX()), true); in snapToPageWithVelocity()
1484 int newX = getScrollForPage(whichPage); in snapToPage() local
1485 final int delta = newX - getUnboundedScrollX(); in snapToPage()
DAppWidgetResizeFrame.java427 int newX = sTmpRect.left; in snapToWidget() local
450 lp.x = newX; in snapToWidget()
460 PropertyValuesHolder.ofInt(LAYOUT_X, lp.x, newX), in snapToWidget()
DCellLayout.java900 final int newX = lp.x; in animateChildToPosition() local
907 if (oldX == newX && oldY == newY) { in animateChildToPosition()
920 lp.x = (int) ((1 - r) * oldX + r * newX); in animateChildToPosition()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java254 int newX = mScrollX; in render() local
256 if (oldX > 0 && newX == 0 || oldX < limit && newX == limit) { in render()
258 if (newX == limit) v = -v; in render()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java549 int newX = Integer.MAX_VALUE, newY = Integer.MAX_VALUE;
558 newX = x;
566 if (newX < mTrgX && newY < mTrgY) {
568 if (newX != myX) {
569 me.cellX = newX;
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java74 int newX = startCoord.centerX() + (int) (diffX / TRAVELING_STEPS * i); in gestureSelectFiles() local
76 points[i + LONGPRESS_STEPS] = new Point(newX, newY); in gestureSelectFiles()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java480 public void setFinalX(int newX) { in setFinalX() argument
481 mFinalX = newX; in setFinalX()
DOverScroller.java264 public void setFinalX(int newX) { in setFinalX() argument
265 mScrollerX.setFinalPosition(newX); in setFinalX()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownMethod.java117 private static void moveTowardX(View view, float newX) { in moveTowardX() argument
118 view.setTranslationX(MathUtil.lerp(view.getTranslationX(), newX, SWIPE_LERP_PROGRESS_FACTOR)); in moveTowardX() local