Home
last modified time | relevance | path

Searched refs:deltaX (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/native/libs/input/
DVelocityControl.cpp52 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { in move() argument
53 if ((deltaX && *deltaX) || (deltaY && *deltaY)) { in move()
63 if (deltaX) { in move()
64 mRawPosition.x += *deltaX; in move()
101 if (deltaX) { in move()
102 *deltaX *= scale; in move()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java154 int deltaX = mDeltaX; in drawIfNeeded() local
159 int div = (dw+mTextWidth)/deltaX; in drawIfNeeded()
160 int rem = (dw+mTextWidth) - (div*deltaX); in drawIfNeeded()
161 int qdelta = deltaX/4; in drawIfNeeded()
162 if (rem < qdelta || rem > (deltaX-qdelta)) { in drawIfNeeded()
163 deltaX += deltaX/3; in drawIfNeeded()
170 x += deltaX; in drawIfNeeded()
DTaskPositioner.java394 final int deltaX = Math.round(x - mStartDragX); in notifyMoveLocked() local
401 left = Math.min(left + deltaX, right - mMinVisibleWidth); in notifyMoveLocked()
407 right = Math.max(left + mMinVisibleWidth, right + deltaX); in notifyMoveLocked()
/frameworks/base/core/java/com/android/internal/widget/
DSwipeDismissLayout.java273 private void setProgress(float deltaX) { in setProgress() argument
274 if (mProgressListener != null && deltaX >= 0) { in setProgress()
276 this, progressToAlpha(deltaX / getWidth()), deltaX); in setProgress()
318 float deltaX = ev.getRawX() - mDownX; in updateSwiping() local
320 if ((deltaX * deltaX) + (deltaY * deltaY) > mSlop * mSlop) { in updateSwiping()
321 mSwiping = deltaX > mSlop * 2 && Math.abs(deltaY) < Math.abs(deltaX); in updateSwiping()
339 float deltaX = ev.getRawX() - mDownX;
346 xVelocity = deltaX / ((ev.getEventTime() - ev.getDownTime()) / 1000);
357 if ((deltaX > distanceThreshold && ev.getRawX() >= mLastX)
DAutoScrollHelper.java568 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument
708 final int deltaX = scroller.getDeltaX(); in run() local
710 scrollTargetBy(deltaX, deltaY); in run()
881 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument
/frameworks/base/core/java/android/transition/
DArcMotion.java209 float deltaX = endX - startX; in getPath() local
212 float h2 = deltaX * deltaX + deltaY * deltaY; in getPath()
222 boolean isQuadrant1Or3 = (deltaX * deltaY) > 0; in getPath()
224 if ((Math.abs(deltaX) < Math.abs(deltaY))) { in getPath()
243 float eDistX = h2 / (2 * deltaX); in getPath()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java110 double deltaX = mPreviousTapEvent.getX() - currentTapEvent.getX(); in isConsecutiveTap() local
112 return (deltaX * deltaX + deltaY * deltaY <= mConsecutiveTapTouchSlopSquare); in isConsecutiveTap()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java543 int deltaX, int deltaY) { in dragViewBy() argument
544 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy()
564 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX, in dragViewBy() argument
573 int distance = (int) Math.hypot(deltaX, deltaY); in dragViewBy()
575 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy()
623 int deltaX = fromX - toX; in dragViewTo() local
626 int distance = (int)Math.hypot(deltaX, deltaY); in dragViewTo()
672 int deltaX = fromX - toX; in dragViewToX() local
674 drag(test, fromX, toX, fromY, fromY, deltaX); in dragViewToX()
676 return deltaX; in dragViewToX()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTouchUtils.java225 int deltaX = fromX - toX; in dragViewTo() local
228 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewTo()
242 int deltaX = fromX - toX; in dragViewToX() local
244 drag(inst, fromX, toX, fromY, fromY, calculateStepsForDistance(deltaX)); in dragViewToX()
246 return deltaX; in dragViewToX()
/frameworks/support/compat/java/android/support/v4/view/
DGestureDetectorCompat.java336 final int deltaX = (int) (focusX - mDownFocusX); in onTouchEvent() local
338 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent()
451 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); in isConsideredDoubleTap() local
453 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java627 int deltaX = position - left; in moveHandle() local
629 deltaX = mTopOffset - left; in moveHandle()
630 } else if (deltaX > mBottomOffset + mRight - mLeft - mHandleWidth - left) { in moveHandle()
631 deltaX = mBottomOffset + mRight - mLeft - mHandleWidth - left; in moveHandle()
633 handle.offsetLeftAndRight(deltaX); in moveHandle()
641 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); in moveHandle()
642 region.union(frame.right - deltaX, 0, in moveHandle()
643 frame.right - deltaX + mContent.getWidth(), getHeight()); in moveHandle()
DGallery.java383 void trackMotionScroll(int deltaX) { in trackMotionScroll() argument
389 boolean toLeft = deltaX < 0; in trackMotionScroll()
391 int limitedDeltaX = getLimitedMotionScrollAmount(toLeft, deltaX); in trackMotionScroll()
392 if (limitedDeltaX != deltaX) { in trackMotionScroll()
428 int getLimitedMotionScrollAmount(boolean motionToLeft, int deltaX) {
433 return deltaX;
456 ? Math.max(centerDifference, deltaX)
457 : Math.min(centerDifference, deltaX);
DHorizontalScrollView.java608 int deltaX = mLastMotionX - x; in onTouchEvent() local
609 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent()
615 if (deltaX > 0) { in onTouchEvent()
616 deltaX -= mTouchSlop; in onTouchEvent()
618 deltaX += mTouchSlop; in onTouchEvent()
634 if (overScrollBy(deltaX, 0, mScrollX, 0, range, 0, in onTouchEvent()
641 final int pulledToX = oldX + deltaX; in onTouchEvent()
643 mEdgeGlowLeft.onPull((float) deltaX / getWidth(), in onTouchEvent()
649 mEdgeGlowRight.onPull((float) deltaX / getWidth(), in onTouchEvent()
/frameworks/base/core/java/android/view/
DGestureDetector.java603 final int deltaX = (int) (focusX - mDownFocusX); in onTouchEvent() local
605 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent()
761 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); in isConsideredDoubleTap() local
763 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DDefaultItemAnimator.java256 int deltaX = toX - fromX; in animateMove() local
258 if (deltaX == 0 && deltaY == 0) { in animateMove()
262 if (deltaX != 0) { in animateMove()
263 ViewCompat.setTranslationX(view, -deltaX); in animateMove()
274 final int deltaX = toX - fromX; in animateMoveImpl() local
276 if (deltaX != 0) { in animateMoveImpl()
294 if (deltaX != 0) { in animateMoveImpl()
323 int deltaX = (int) (toX - fromX - prevTranslationX); in animateChange() local
332 ViewCompat.setTranslationX(newHolder.itemView, -deltaX); in animateChange()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java93 float deltaX = (mTouchX - mLastDrawnX); in drawTouch() local
95 float scaleFactor = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 1.5f; in drawTouch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DObservableScrollView.java119 protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, in overScrollBy() argument
123 return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
/frameworks/native/include/input/
DVelocityControl.h91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
/frameworks/support/core-ui/java/android/support/v4/widget/
DAutoScrollHelper.java569 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument
712 final int deltaX = scroller.getDeltaX(); in run() local
714 scrollTargetBy(deltaX, deltaY); in run()
DListViewAutoScrollHelper.java36 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument
/frameworks/native/services/inputflinger/
DPointerControllerInterface.h47 virtual void move(float deltaX, float deltaY) = 0;
DInputReader.cpp154 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument
158 temp = *deltaX; in rotateDelta()
159 *deltaX = *deltaY; in rotateDelta()
164 *deltaX = -*deltaX; in rotateDelta()
169 temp = *deltaX; in rotateDelta()
170 *deltaX = -*deltaY; in rotateDelta()
2609 float deltaX = mCursorMotionAccumulator.getRelativeX() * mXScale; in sync() local
2611 bool moved = deltaX != 0 || deltaY != 0; in sync()
2615 && (deltaX != 0.0f || deltaY != 0.0f)) { in sync()
2616 rotateDelta(mOrientation, &deltaX, &deltaY); in sync()
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java365 int deltaX = source.getWidth() - targetWidth; in transform() local
367 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform()
378 int deltaXHalf = Math.max(0, deltaX / 2); in transform()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityGestureDetector.java231 final float deltaX = mBaseX - x; in onMotionEvent() local
233 final double moveDelta = Math.hypot(deltaX, deltaY); in onMotionEvent()
/frameworks/base/libs/input/
DPointerController.cpp171 void PointerController::move(float deltaX, float deltaY) { in move() argument
173 ALOGD("Move pointer by deltaX=%0.3f, deltaY=%0.3f", deltaX, deltaY); in move()
175 if (deltaX == 0.0f && deltaY == 0.0f) { in move()
181 setPositionLocked(mLocked.pointerX + deltaX, mLocked.pointerY + deltaY); in move()

12