HomeSort by relevance Sort by last modified time
    Searched refs:deltaX (Results 1 - 25 of 148) sorted by null

1 2 3 4 5 6

  /frameworks/base/libs/androidfw/
VelocityControl.cpp 52 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) {
53 if ((deltaX && *deltaX) || (deltaY && *deltaY)) {
63 if (deltaX) {
64 mRawPosition.x += *deltaX;
101 if (deltaX) {
102 *deltaX *= scale;
  /frameworks/base/tests/BiDiTests/src/com/android/bidi/
BiDiTestView.java 98 int deltaX = 0;
100 deltaX = testString(canvas, NORMAL_TEXT, ORIGIN, ORIGIN,
103 deltaX += testString(canvas, ITALIC_TEXT, ORIGIN + deltaX, ORIGIN,
106 deltaX += testString(canvas, BOLD_TEXT, ORIGIN + deltaX, ORIGIN,
109 deltaX += testString(canvas, BOLD_ITALIC_TEXT, ORIGIN + deltaX, ORIGIN,
113 deltaX = testString(canvas, NORMAL_LONG_TEXT, ORIGIN, ORIGIN + 2 * currentTextSize,
117 deltaX = testString(canvas, NORMAL_LONG_TEXT_2, ORIGIN, ORIGIN + 4 * currentTextSize
    [all...]
  /external/webkit/Source/WebCore/platform/
ScrollAnimator.cpp 91 float deltaX = horizontalScrollbar ? e.deltaX() : 0;
96 if ((deltaX < 0 && maxForwardScrollDelta.width() > 0)
97 || (deltaX > 0 && maxBackwardScrollDelta.width() > 0)
102 ASSERT(!e.deltaX());
111 if (deltaX)
112 scroll(HorizontalScrollbar, ScrollByPixel, horizontalScrollbar->pixelStep(), -deltaX);
  /packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
HandleView.java 148 final int deltaX = Math.round((ev.getX() - mStartMoveX));
149 if (deltaX != mLastDeltaX) {
150 mLastDeltaX = deltaX;
154 mListener.onMove(this, getLeft(), deltaX + getWidth());
156 mListener.onMove(this, getLeft(), deltaX);
190 final int deltaX = Math.round((eventX - mStartMoveX));
192 mListener.onMoveEnd(this, getLeft(), deltaX + getWidth());
194 mListener.onMoveEnd(this, getLeft(), deltaX);
  /external/jmonkeyengine/engine/src/core/com/jme3/input/event/
TouchEvent.java 47 * Move/Drag event, fields: posX, posY, deltaX, deltaY, pressure
96 private float deltaX;
111 public TouchEvent(Type type, float x, float y, float deltax, float deltay) {
112 set(type, x, y, deltax, deltay);
119 public void set(Type type, float x, float y, float deltax, float deltay) {
123 this.deltaX = deltax;
152 return deltaX;
  /gdk/samples/PhotoEditor/src/com/android/photoeditor/actions/
TouchView.java 85 float deltaX = me2.getX() - me1.getX();
89 if (velocityX > swipeThreshold && absY < absX && deltaX > travelX) {
91 } else if (velocityX < -swipeThreshold && absY < absX && deltaX < -travelX) {
  /external/webkit/Source/WebKit2/Shared/
WebMouseEvent.cpp 49 WebMouseEvent::WebMouseEvent(Type type, Button button, const IntPoint& position, const IntPoint& globalPosition, float deltaX, float deltaY, float deltaZ, int clickCount, Modifiers modifiers, double timestamp)
54 , m_deltaX(deltaX)
66 WebMouseEvent::WebMouseEvent(Type type, Button button, const IntPoint& position, const IntPoint& globalPosition, float deltaX, float deltaY, float deltaZ, int clickCount, Modifiers modifiers, double timestamp, bool didActivateWebView)
71 , m_deltaX(deltaX)
  /frameworks/base/services/java/com/android/server/wm/
Watermark.java 151 int deltaX = mDeltaX;
154 // deltaX shouldn't be close to a round fraction of our
156 int div = (dw+mTextWidth)/deltaX;
157 int rem = (dw+mTextWidth) - (div*deltaX);
158 int qdelta = deltaX/4;
159 if (rem < qdelta || rem > (deltaX-qdelta)) {
160 deltaX += deltaX/3;
167 x += deltaX;
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/X11/extensions/
lbxdeltastr.h 76 INT8 deltaX;
84 INT8 deltaX;
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/X11/extensions/
lbxdeltastr.h 76 INT8 deltaX;
84 INT8 deltaX;
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/X11/extensions/
lbxdeltastr.h 76 INT8 deltaX;
84 INT8 deltaX;
  /external/webkit/Source/WebCore/platform/mac/
ScrollAnimatorMac.mm 591 void ScrollAnimatorMac::immediateScrollByDeltaX(float deltaX)
593 float newPosX = adjustScrollXPositionIfNecessary(m_currentPosX + deltaX);
810 if (fabsf(wheelEvent.deltaY()) >= fabsf(wheelEvent.deltaX())) {
842 bool ScrollAnimatorMac::pinnedInDirection(float deltaX, float deltaY)
845 if (fabsf(deltaY) >= fabsf(deltaX)) {
853 } else if (deltaX != 0) {
854 if (deltaX < 0) {
863 if ((deltaX != 0 || deltaY != 0) && (limitDelta.width() < 1 && limitDelta.height() < 1))
908 float deltaX = m_overflowScrollDelta.width();
914 float eventCoallescedDeltaX = -wheelEvent.deltaX();
    [all...]
ScrollAnimatorMac.h 72 void immediateScrollByDeltaX(float deltaX);
124 bool pinnedInDirection(float deltaX, float deltaY);
  /external/webkit/Source/WebKit2/Shared/qt/
WebEventFactoryQt.cpp 103 float deltaX = delta.x();
109 return WebMouseEvent(type, button, event->pos().toPoint(), event->screenPos(), deltaX, deltaY, 0.0f, clickCount, modifiers, timestamp);
114 float deltaX = 0;
128 deltaX = (fullTick) ? e->delta() / 120.0f : e->delta();
129 wheelTicksX = deltaX;
139 deltaX *= (fullTick) ? QApplication::wheelScrollLines() * cDefaultQtScrollStep : 1;
143 return WebWheelEvent(WebEvent::Wheel, e->pos().toPoint(), e->screenPos(), FloatSize(deltaX, deltaY), FloatSize(wheelTicksX, wheelTicksY), granularity, modifiers, timestamp);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DelegateViewHelper.java 92 float deltaX = sourceX - delegateX;
94 event.offsetLocation(deltaX, deltaY);
96 event.offsetLocation(-deltaX, -deltaY);
  /packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/
SwipeHelper.java 258 float deltaX = Math.abs(currX - mInitialTouchPosX);
259 if (deltaY > SWIPE_SCROLL_SLOP && deltaY > (FACTOR * deltaX)) {
389 float deltaX = ev.getX() - mInitialTouchPosX;
394 if (!mDragging && deltaY > MIN_VERT && (Math.abs(deltaX)) < MIN_LOCK
395 && deltaY > (FACTOR * Math.abs(deltaX))) {
400 if (Math.abs(deltaX) < minDistance) {
410 if (Math.abs(deltaX) >= size) {
411 deltaX = deltaX > 0 ? maxScrollDistance : -maxScrollDistance;
413 deltaX = maxScrollDistanc
    [all...]
  /frameworks/base/include/androidfw/
VelocityControl.h 91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
  /packages/inputmethods/LatinIME/native/jni/src/
geometry_utils.h 32 const float deltaX = x1 - x2;
34 return SQUARE_FLOAT(deltaX) + SQUARE_FLOAT(deltaY);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ResizeGesture.java 151 int deltaX = p.x - start.x;
154 if (deltaX == 0 && deltaY == 0) {
161 int newW = Math.abs(b.w + (direction.isLeft() ? -deltaX : deltaX));
165 deltaY = (int) (deltaX / aspectRatio);
167 deltaX = (int) (deltaY * aspectRatio);
174 int nx1 = b.x + deltaX;
185 int nx2 = b.x + b.w + deltaX;
  /external/webkit/Source/WebCore/svg/
SVGRadialGradientElement.cpp 235 float deltaX = focalPoint.x() - centerPoint.x();
242 if (sqrt(deltaX * deltaX + deltaY * deltaY) > radiusMax) {
243 float angle = atan2f(deltaY, deltaX);
245 deltaX = cosf(angle) * radiusMax;
247 focalPoint = FloatPoint(deltaX + centerPoint.x(), deltaY + centerPoint.y());
  /external/chromium/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/
jquery.flot.dashes.js 137 deltaX: ax2 - ax1,
146 deltaX: xsign * Math.sqrt(Math.pow(segmentLength, 2) / (1 + Math.pow((ay2 - ay1)/(ax2 - ax1), 2))),
161 if (dashOffset.deltaX != 0 || dashOffset.deltaY != 0) {
163 ctx.lineTo(ax1 + dashOffset.deltaX, ay1 + dashOffset.deltaY);
165 ctx.moveTo(ax1 + dashOffset.deltaX, ay1 + dashOffset.deltaY);
171 ax1 += dashOffset.deltaX;
  /external/replicaisland/src/com/replica/replicaisland/
SphereCollisionVolume.java 105 final float deltaX = other.getMaxXPosition(otherFlip)
109 final float centerX = deltaX / 2.0f;
115 otherRadius = Math.max(deltaX, deltaY);
  /frameworks/base/test-runner/src/android/test/
TouchUtils.java 538 * @param deltaX Amount to drag horizontally in pixels
549 int deltaX, int deltaY) {
550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY);
560 * @param deltaX Amount to drag horizontally in pixels
570 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX,
579 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY);
581 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance);
629 int deltaX = fromX - toX;
632 int distance = (int)Math.sqrt(deltaX * deltaX + deltaY * deltaY)
    [all...]
  /external/webkit/Source/WebCore/dom/
WheelEvent.cpp 105 if (!(event.deltaX() || event.deltaY()))
108 setEvent(WheelEvent::create(event.wheelTicksX(), event.wheelTicksY(), event.deltaX(), event.deltaY(), granularity(event),
  /external/webkit/Source/WebKit/chromium/public/
WebInputEvent.h 282 float deltaX;
295 , deltaX(0.0f)

Completed in 1381 milliseconds

1 2 3 4 5 6