/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SwipeHelper.java | 229 float deltaX = Math.abs(currX - mInitialTouchPosX); 231 && deltaY > (FACTOR * deltaX)) { 362 float deltaX = ev.getX() - mInitialTouchPosX; 371 if (Math.abs(deltaX) < minDistance) { 381 if (Math.abs(deltaX) >= size) { 382 deltaX = deltaX > 0 ? maxScrollDistance : -maxScrollDistance; 384 deltaX = maxScrollDistance 385 * (float) Math.sin((deltaX / size) * (Math.PI / 2)); 388 setTranslation(mCurrAnimView, deltaX); [all...] |
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
ListViewRemovalAnimation.java | 98 float deltaX = x - mDownX; 99 float deltaXAbs = Math.abs(deltaX); 118 float deltaX = x - mDownX; 119 float deltaXAbs = Math.abs(deltaX); 127 endX = deltaX < 0 ? -v.getWidth() : v.getWidth();
|
/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/chromium_org/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/chromium_org/tools/perf/page_sets/tough_canvas_cases/canvas2d_balls_common/ |
bouncing_balls.js | 121 var deltaX = velocityX*remainingTime; 122 while ((x+deltaX) < borderX || (x+deltaX) > (1-borderX)){ 123 if ((x+deltaX) < borderX) { 133 deltaX = velocityX*remainingTime; 135 x += 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);
|
CollisionSystem.java | 279 final int deltaX, final int deltaY, 289 if (deltaX != 0) { 290 distance = Math.abs(deltaX) + 1; 291 xIncrement = Utils.sign(deltaX); 345 final int deltaX = endTileX - startTileX; 350 if (deltaX == 0 || deltaY == 0) { 352 endTileX, endTileY, deltaX, deltaY, hitPoint, hitNormal, visitor); 355 final int xIncrement = deltaX != 0 ? Utils.sign(deltaX) : 0; 360 final int lateralDelta = (endTileX > 0 && endTileX < worldWidth - 1) ? Math.abs(deltaX) + 1 : Math.abs(deltaX) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
DelegateViewHelper.java | 99 float deltaX = sourceX - delegateX; 101 event.offsetLocation(deltaX, deltaY); 103 event.offsetLocation(-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...] |
/packages/apps/Camera2/src/com/android/camera/ |
PreviewGestures.java | 84 int deltaX = (int) (e1.getX() - e2.getX()); 86 if (deltaY > 2 * deltaX && deltaY > -2 * deltaX) {
|
/external/chromium_org/content/browser/renderer_host/input/ |
web_input_event_builders_android.cc | 105 result.deltaX = scrollbar_pixels_per_tick; 109 result.deltaX = -scrollbar_pixels_per_tick;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/filters/custom/ |
CustomFilterRenderer.cpp | 52 float deltaX = right - left; 54 if (!deltaX || !deltaY) 56 matrix.setM11(2.0f / deltaX); 57 matrix.setM41(-(right + left) / deltaX);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
ListViewAutoScrollHelper.java | 36 public void scrollTargetBy(int deltaX, int deltaY) {
|
/packages/apps/Gallery/src/com/android/camera/ |
ImageViewTouchBase.java | 202 float deltaX = 0, deltaY = 0; 218 deltaX = (viewWidth - width) / 2 - rect.left; 220 deltaX = -rect.left; 222 deltaX = viewWidth - rect.right; 226 postTranslate(deltaX, deltaY);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
ImageViewTouchBase.java | 490 float deltaX = 0, deltaY = 0; 506 deltaX = (viewWidth - width) / 2 - rect.left; 508 deltaX = -rect.left; 510 deltaX = viewWidth - rect.right; 514 mSuppMatrix.postTranslate(deltaX, deltaY);
|
/frameworks/base/core/java/android/widget/ |
SlidingDrawer.java | 609 int deltaX = position - left; 611 deltaX = mTopOffset - left; 612 } else if (deltaX > mBottomOffset + mRight - mLeft - mHandleWidth - left) { 613 deltaX = mBottomOffset + mRight - mLeft - mHandleWidth - left; 615 handle.offsetLeftAndRight(deltaX); 623 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); 624 region.union(frame.right - deltaX, 0, 625 frame.right - deltaX + mContent.getWidth(), getHeight()); [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
GalleryThumbnailView.java | 343 final int deltaX = (int) dx; 344 mTouchRemainderX = dx - deltaX; 353 if (!trackMotionScroll(deltaX, true)) { 385 * @param deltaX Pixels that content should move by 388 private boolean trackMotionScroll(int deltaX, boolean allowOverScroll) { 390 final int allowOverhang = Math.abs(deltaX); 398 if (deltaX > 0) { 422 EdgeEffectCompat edge = deltaX > 0 ? mLeftEdge : mRightEdge; 423 edge.onPull((float) Math.abs(deltaX) / getWidth()); 429 return deltaX == 0 || movedBy != 0 [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
AppWidgetResizeFrame.java | 176 public void updateDeltas(int deltaX, int deltaY) { 178 mDeltaX = Math.max(-mBaselineX, deltaX); 181 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); 194 public void visualizeResizeForDelta(int deltaX, int deltaY) { 195 visualizeResizeForDelta(deltaX, deltaY, false); 201 private void visualizeResizeForDelta(int deltaX, int deltaY, boolean onDismiss) { 202 updateDeltas(deltaX, deltaY); 230 int deltaX = mDeltaX + mDeltaXAddOn; 233 float hSpanIncF = 1.0f * deltaX / xThreshold - mRunningHInc;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
AppWidgetResizeFrame.java | 175 public void updateDeltas(int deltaX, int deltaY) { 177 mDeltaX = Math.max(-mBaselineX, deltaX); 180 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); 193 public void visualizeResizeForDelta(int deltaX, int deltaY) { 194 visualizeResizeForDelta(deltaX, deltaY, false); 200 private void visualizeResizeForDelta(int deltaX, int deltaY, boolean onDismiss) { 201 updateDeltas(deltaX, deltaY); 229 int deltaX = mDeltaX + mDeltaXAddOn; 232 float hSpanIncF = 1.0f * deltaX / xThreshold - mRunningHInc;
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/third_party/ |
GestureDetector.java | 578 final int deltaX = (int) (focusX - mDownFocusX); 580 int distance = (deltaX * deltaX) + (deltaY * deltaY); 691 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); 693 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare);
|
/frameworks/base/core/java/android/view/ |
GestureDetector.java | 563 final int deltaX = (int) (focusX - mDownFocusX); 565 int distance = (deltaX * deltaX) + (deltaY * deltaY); 681 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); 683 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare);
|
/frameworks/support/v4/java/android/support/v4/view/ |
GestureDetectorCompat.java | 332 final int deltaX = (int) (focusX - mDownFocusX); 334 int distance = (deltaX * deltaX) + (deltaY * deltaY); 447 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); 449 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare);
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
OverScrollGlow.java | 132 * @param deltaX 135 public void setOverScrollDeltas(int deltaX, int deltaY) { 136 mOverScrollDeltaX += deltaX;
|
/external/chromium_org/content/browser/renderer_host/ |
web_input_event_aurax11.cc | 146 webkit_event.deltaX = event->x_offset(); 151 webkit_event.wheelTicksX = webkit_event.deltaX / kPixelsPerTick;
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
WheelEvent.cpp | 125 if (!(event.deltaX() || event.deltaY())) 128 setEvent(WheelEvent::create(FloatPoint(event.wheelTicksX(), event.wheelTicksY()), FloatPoint(event.deltaX(), event.deltaY()),
|