/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestView.java | 98 int deltaX = 0; in onDraw() local 100 deltaX = testString(canvas, NORMAL_TEXT, ORIGIN, ORIGIN, in onDraw() 103 deltaX += testString(canvas, ITALIC_TEXT, ORIGIN + deltaX, ORIGIN, in onDraw() 106 deltaX += testString(canvas, BOLD_TEXT, ORIGIN + deltaX, ORIGIN, in onDraw() 109 deltaX += testString(canvas, BOLD_ITALIC_TEXT, ORIGIN + deltaX, ORIGIN, in onDraw() 113 deltaX = testString(canvas, NORMAL_LONG_TEXT, ORIGIN, ORIGIN + 2 * currentTextSize, in onDraw() 117 deltaX = testString(canvas, NORMAL_LONG_TEXT_2, ORIGIN, ORIGIN + 4 * currentTextSize, in onDraw() 121 deltaX = testString(canvas, NORMAL_LONG_TEXT_3, ORIGIN, ORIGIN + 6 * currentTextSize, in onDraw() 125 deltaX = testString(canvas, ARABIC_TEXT, ORIGIN, ORIGIN + 8 * currentTextSize, in onDraw() 129 deltaX = testString(canvas, CHINESE_TEXT, ORIGIN, ORIGIN + 10 * currentTextSize, in onDraw() [all …]
|
/frameworks/base/libs/androidfw/ |
D | VelocityControl.cpp | 52 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/java/com/android/server/wm/ |
D | Watermark.java | 148 int deltaX = mDeltaX; in drawIfNeeded() local 153 int div = (dw+mTextWidth)/deltaX; in drawIfNeeded() 154 int rem = (dw+mTextWidth) - (div*deltaX); in drawIfNeeded() 155 int qdelta = deltaX/4; in drawIfNeeded() 156 if (rem < qdelta || rem > (deltaX-qdelta)) { in drawIfNeeded() 157 deltaX += deltaX/3; in drawIfNeeded() 164 x += deltaX; in drawIfNeeded()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 549 int deltaX, int deltaY) { in dragViewBy() argument 550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy() 570 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX, in dragViewBy() argument 579 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewBy() 581 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy() 629 int deltaX = fromX - toX; in dragViewTo() local 632 int distance = (int)Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewTo() 678 int deltaX = fromX - toX; in dragViewToX() local 680 drag(test, fromX, toX, fromY, fromY, deltaX); in dragViewToX() 682 return deltaX; in dragViewToX()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 537 final int deltaX = (int) (x - mCurrentDownEvent.getX()); in onTouchEvent() local 539 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() 635 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); in isConsideredDoubleTap() local 637 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
|
D | MotionEvent.java | 1342 private static native void nativeOffsetLocation(int nativePtr, float deltaX, float deltaY); in nativeOffsetLocation() argument 2687 public final void offsetLocation(float deltaX, float deltaY) { in offsetLocation() argument 2688 if (deltaX != 0.0f || deltaY != 0.0f) { in offsetLocation() 2689 nativeOffsetLocation(mNativePtr, deltaX, deltaY); in offsetLocation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DelegateViewHelper.java | 92 float deltaX = sourceX - delegateX; in onInterceptTouchEvent() 94 event.offsetLocation(deltaX, deltaY); in onInterceptTouchEvent() 96 event.offsetLocation(-deltaX, -deltaY); in onInterceptTouchEvent()
|
/frameworks/base/core/java/android/widget/ |
D | SlidingDrawer.java | 604 int deltaX = position - left; in moveHandle() local 606 deltaX = mTopOffset - left; in moveHandle() 607 } else if (deltaX > mBottomOffset + mRight - mLeft - mHandleWidth - left) { in moveHandle() 608 deltaX = mBottomOffset + mRight - mLeft - mHandleWidth - left; in moveHandle() 610 handle.offsetLeftAndRight(deltaX); in moveHandle() 618 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); in moveHandle() 619 region.union(frame.right - deltaX, 0, in moveHandle() 620 frame.right - deltaX + mContent.getWidth(), getHeight()); in moveHandle()
|
D | Gallery.java | 366 void trackMotionScroll(int deltaX) { in trackMotionScroll() argument 372 boolean toLeft = deltaX < 0; in trackMotionScroll() 374 int limitedDeltaX = getLimitedMotionScrollAmount(toLeft, deltaX); in trackMotionScroll() 375 if (limitedDeltaX != deltaX) { in trackMotionScroll() 403 int getLimitedMotionScrollAmount(boolean motionToLeft, int deltaX) { 408 return deltaX; 431 ? Math.max(centerDifference, deltaX) 432 : Math.min(centerDifference, deltaX);
|
D | HorizontalScrollView.java | 561 int deltaX = mLastMotionX - x; in onTouchEvent() local 562 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent() 568 if (deltaX > 0) { in onTouchEvent() 569 deltaX -= mTouchSlop; in onTouchEvent() 571 deltaX += mTouchSlop; in onTouchEvent() 585 if (overScrollBy(deltaX, 0, mScrollX, 0, range, 0, in onTouchEvent() 593 final int pulledToX = oldX + deltaX; in onTouchEvent() 595 mEdgeGlowLeft.onPull((float) deltaX / getWidth()); in onTouchEvent() 600 mEdgeGlowRight.onPull((float) deltaX / getWidth()); in onTouchEvent()
|
D | Editor.java | 3233 final float deltaX = mDownPositionX - ev.getRawX(); in onTouchEvent() local 3235 final float distanceSquared = deltaX * deltaX + deltaY * deltaY; in onTouchEvent() 3524 final float deltaX = x - mDownPositionX; in onTouchEvent() local 3526 final float distanceSquared = deltaX * deltaX + deltaY * deltaY; in onTouchEvent() 3557 final float deltaX = event.getX() - mDownPositionX; in onTouchEvent() 3559 final float distanceSquared = deltaX * deltaX + deltaY * deltaY; in onTouchEvent()
|
/frameworks/base/services/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 412 final float deltaX = receivedTracker.getReceivedPointerDownX(pointerId) in handleMotionEventStateTouchExploring() local 416 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring() 470 final float deltaX = receivedTracker.getReceivedPointerDownX(pointerId) in handleMotionEventStateTouchExploring() local 474 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring() 602 final float deltaX = firstPtrX - secondPtrX; in handleMotionEventStateDragging() local 604 final double distance = Math.hypot(deltaX, deltaY); in handleMotionEventStateDragging() 607 event.setLocation(deltaX / 2, deltaY / 2); in handleMotionEventStateDragging() 1159 final float deltaX = second.getX(upPtrIndex) - first.getX(downPtrIndex); in eventsWithinTimeoutAndDistance() local 1161 final double deltaMove = Math.hypot(deltaX, deltaY); in eventsWithinTimeoutAndDistance() 1978 final float deltaX = event.getX(pointerIndex) - mReceivedPointerDownX[pointerId]; in computePointerDeltaMove() local [all …]
|
/frameworks/base/services/input/ |
D | PointerController.h | 54 virtual void move(float deltaX, float deltaY) = 0; 160 virtual void move(float deltaX, float deltaY);
|
D | PointerController.cpp | 127 void PointerController::move(float deltaX, float deltaY) { in move() argument 129 ALOGD("Move pointer by deltaX=%0.3f, deltaY=%0.3f", deltaX, deltaY); in move() 131 if (deltaX == 0.0f && deltaY == 0.0f) { in move() 137 setPositionLocked(mLocked.pointerX + deltaX, mLocked.pointerY + deltaY); in move()
|
D | InputReader.cpp | 131 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument 135 temp = *deltaX; in rotateDelta() 136 *deltaX = *deltaY; in rotateDelta() 141 *deltaX = -*deltaX; in rotateDelta() 146 temp = *deltaX; in rotateDelta() 147 *deltaX = -*deltaY; in rotateDelta() 2418 float deltaX = mCursorMotionAccumulator.getRelativeX() * mXScale; in sync() local 2420 bool moved = deltaX != 0 || deltaY != 0; in sync() 2424 && (deltaX != 0.0f || deltaY != 0.0f)) { in sync() 2425 rotateDelta(mOrientation, &deltaX, &deltaY); in sync() [all …]
|
/frameworks/base/include/androidfw/ |
D | VelocityControl.h | 91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
|
/frameworks/base/core/java/android/webkit/ |
D | OverScrollGlow.java | 107 public void setOverScrollDeltas(int deltaX, int deltaY) { in setOverScrollDeltas() argument 108 mOverScrollDeltaX = deltaX; in setOverScrollDeltas()
|
D | WebViewInputDispatcher.java | 487 int deltaX = (int) mInitialDownX - (int) event.getX(); in checkForDoubleTapOnDownLocked() local 489 if ((deltaX * deltaX + deltaY * deltaY) < mDoubleTapSlopSquared) { in checkForDoubleTapOnDownLocked() 524 int deltaX = (int) mInitialDownX - (int) event.getX(); in checkForSlopLocked() local 526 if ((deltaX * deltaX + deltaY * deltaY) > mTouchSlopSquared) { in checkForSlopLocked()
|
D | WebViewClassic.java | 5766 int deltaX = mLastTouchX - x; in handleTouchEventCommon() local 5788 if (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare) { in handleTouchEventCommon() 5850 if (!mConfirmMove && (deltaX * deltaX + deltaY * deltaY) in handleTouchEventCommon() 5868 if (deltaX != 0 || deltaY != 0) { in handleTouchEventCommon() 5921 mAverageAngle = calculateDragAngle(deltaX, deltaY); in handleTouchEventCommon() 5926 mSnapPositive = deltaX > 0; in handleTouchEventCommon() 5938 deltaX = 0; in handleTouchEventCommon() 5947 if (deltaX == 0 && deltaY == 0) { in handleTouchEventCommon() 5951 (calculateDragAngle(deltaX, deltaY) - mAverageAngle) in handleTouchEventCommon() 5969 mSnapPositive = deltaX > 0; in handleTouchEventCommon() [all …]
|
D | WebView.java | 1722 public void overScrollBy(int deltaX, int deltaY, in overScrollBy() argument 1727 WebView.this.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 294 float deltaX = currentPointX - lstPointX; in temporalSampling() local 296 float distance = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in temporalSampling() 299 float nx = lstPointX + ratio * deltaX; in temporalSampling()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 370 int deltaX = source.getWidth() - targetWidth; in transform() local 372 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform() 383 int deltaXHalf = Math.max(0, deltaX / 2); in transform()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SlidingTab.java | 734 int deltaX = (int) x - handle.getLeft() - (handle.getWidth() / 2); 735 handle.offsetLeftAndRight(deltaX); 736 content.offsetLeftAndRight(deltaX);
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 391 float deltaX = me2.getX() - me1.getX(); in initGestureDetector() 399 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector() 406 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector()
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 506 jint nativePtr, jfloat deltaX, jfloat deltaY) { in android_view_MotionEvent_nativeOffsetLocation() argument 508 return event->offsetLocation(deltaX, deltaY); in android_view_MotionEvent_nativeOffsetLocation()
|