/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | TwoPaneLayout.java | 362 private void translatePanes(float deltaX, float drawerDeltaX, boolean animate) { in translatePanes() argument 364 animatePanes(deltaX, drawerDeltaX); in translatePanes() 367 mListView.setTranslationX(deltaX); in translatePanes() 368 mConversationFrame.setTranslationX(deltaX); in translatePanes() 376 private void animatePanes(float deltaX, float drawerDeltaX) { in animatePanes() argument 377 mConversationFrame.animate().translationX(deltaX); in animatePanes() 380 .translationX(deltaX) in animatePanes() 495 public void onDrag(float deltaX) { in onDrag() argument 498 final float percentDragged = computeDragPercentage(deltaX); in onDrag() 515 public void onDragEnded(float deltaX, float velocityX, boolean isFling) { in onDragEnded() argument [all …]
|
D | SwipeHelper.java | 229 float deltaX = Math.abs(currX - mInitialTouchPosX); in onInterceptTouchEvent() local 231 && deltaY > (FACTOR * deltaX)) { in onInterceptTouchEvent() 362 float deltaX = ev.getX() - mInitialTouchPosX; in onTouchEvent() local 371 if (Math.abs(deltaX) < minDistance) { in onTouchEvent() 381 if (Math.abs(deltaX) >= size) { in onTouchEvent() 382 deltaX = deltaX > 0 ? maxScrollDistance : -maxScrollDistance; in onTouchEvent() 384 deltaX = maxScrollDistance in onTouchEvent() 385 * (float) Math.sin((deltaX / size) * (Math.PI / 2)); in onTouchEvent() 388 setTranslation(mCurrAnimView, deltaX); in onTouchEvent()
|
D | GmailDragHelper.java | 76 public void onDrag(float deltaX); in onDrag() argument 77 public void onDragEnded(float deltaX, float velocityX, boolean isFling); in onDragEnded() argument 138 final float deltaX = Math.abs(evX - mInitialInterceptedX); in processTouchEvent() 140 if (deltaX >= mConfiguration.getScaledTouchSlop() && deltaX >= deltaY in processTouchEvent()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | SwipeHelper.java | 238 float deltaX = Math.abs(currX - mInitialTouchPosX); in onInterceptTouchEvent() local 239 if (deltaY > SWIPE_SCROLL_SLOP && deltaY > (FACTOR * deltaX)) { in onInterceptTouchEvent() 360 float deltaX = ev.getX() - mInitialTouchPosX; in onTouchEvent() local 365 if (!mDragging && deltaY > MIN_VERT && (Math.abs(deltaX)) < MIN_LOCK in onTouchEvent() 366 && deltaY > (FACTOR * Math.abs(deltaX))) { in onTouchEvent() 371 if (Math.abs(deltaX) < minDistance) { in onTouchEvent() 381 if (Math.abs(deltaX) >= size) { in onTouchEvent() 382 deltaX = deltaX > 0 ? maxScrollDistance : -maxScrollDistance; in onTouchEvent() 384 deltaX = maxScrollDistance in onTouchEvent() 385 * (float) Math.sin((deltaX / size) * (Math.PI / 2)); in onTouchEvent() [all …]
|
D | SpeedDialFragment.java | 374 int deltaX = 0; in animateGridView() 379 deltaX = startLeft - left; in animateGridView() 381 child, "translationX", deltaX, 0.0f)); in animateGridView()
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1120 double deltaX = X - m_wb.x; in FrameToMosaic() local 1122 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1123 double deltaTheta = asin(deltaX / length); in FrameToMosaic() 1130 double deltaX = X - m_wb.x; in FrameToMosaic() local 1132 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1238 double deltaX = currX - prevX; in SelectRelevantFrames() local 1240 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames() 1242 if (fabs(deltaX) > STRIP_SEPARATION_THRESHOLD_PXLS || in SelectRelevantFrames() 1296 double deltaX = currX - prevX; in ComputeBlendParameters() local 1301 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1100 double deltaX = X - m_wb.x; in FrameToMosaic() local 1102 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1103 double deltaTheta = asin(deltaX / length); in FrameToMosaic() 1110 double deltaX = X - m_wb.x; in FrameToMosaic() local 1112 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1218 double deltaX = currX - prevX; in SelectRelevantFrames() local 1220 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames() 1222 if (fabs(deltaX) > STRIP_SEPARATION_THRESHOLD_PXLS || in SelectRelevantFrames() 1276 double deltaX = currX - prevX; in ComputeBlendParameters() local 1281 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AppWidgetResizeFrame.java | 173 public void updateDeltas(int deltaX, int deltaY) { in updateDeltas() argument 175 mDeltaX = Math.max(-mBaselineX, deltaX); in updateDeltas() 178 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); in updateDeltas() 191 public void visualizeResizeForDelta(int deltaX, int deltaY) { in visualizeResizeForDelta() argument 192 visualizeResizeForDelta(deltaX, deltaY, false); in visualizeResizeForDelta() 198 private void visualizeResizeForDelta(int deltaX, int deltaY, boolean onDismiss) { in visualizeResizeForDelta() argument 199 updateDeltas(deltaX, deltaY); in visualizeResizeForDelta() 227 int deltaX = mDeltaX + mDeltaXAddOn; in resizeWidgetIfNeeded() local 230 float hSpanIncF = 1.0f * deltaX / xThreshold - mRunningHInc; in resizeWidgetIfNeeded()
|
D | PagedView.java | 1778 final float deltaX = mLastMotionX + mLastMotionXRemainder - x; in onTouchEvent() local 1780 mTotalMotionX += Math.abs(deltaX); in onTouchEvent() 1785 if (Math.abs(deltaX) >= 1.0f) { in onTouchEvent() 1786 mTouchX += deltaX; in onTouchEvent() 1789 scrollBy((int) deltaX, 0); in onTouchEvent() 1790 if (DEBUG) Log.d(TAG, "onTouchEvent().Scrolling: " + deltaX); in onTouchEvent() 1795 mLastMotionXRemainder = deltaX - (int) deltaX; in onTouchEvent() 1901 final int deltaX = (int) (x - mDownMotionX); in onTouchEvent() local 1903 boolean isSignificantMove = Math.abs(deltaX) > pageWidth * in onTouchEvent() 1916 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD && in onTouchEvent() [all …]
|
D | DragView.java | 90 final int deltaX = (int) ((value * offsetX) - mOffsetX); in DragView() 93 mOffsetX += deltaX; in DragView() 104 setTranslationX(getTranslationX() + deltaX); in DragView()
|
D | CellLayout.java | 1831 int deltaX = mTempLocation[0] - boundingRect.left; in addViewsToTempLocation() local 1835 c.x += deltaX; in addViewsToTempLocation() 2010 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument 2011 double angle = Math.atan(((float) deltaY) / deltaX); in computeDirectionVector() 2016 result[0] = (int) Math.signum(deltaX); in computeDirectionVector() 2378 int deltaX = (dropRegionRect.centerX() - dragViewCenterX) / spanX; in getDirectionVectorForDrop() local 2382 deltaX = 0; in getDirectionVectorForDrop() 2388 if (deltaX == 0 && deltaY == 0) { in getDirectionVectorForDrop() 2393 computeDirectionVector(deltaX, deltaY, resultDirection); in getDirectionVectorForDrop()
|
D | FolderAutoScrollHelper.java | 45 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument 46 mTarget.scrollBy(deltaX, deltaY); in scrollTargetBy()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AppWidgetResizeFrame.java | 176 public void updateDeltas(int deltaX, int deltaY) { in updateDeltas() argument 178 mDeltaX = Math.max(-mBaselineX, deltaX); in updateDeltas() 181 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); in updateDeltas() 194 public void visualizeResizeForDelta(int deltaX, int deltaY) { in visualizeResizeForDelta() argument 195 visualizeResizeForDelta(deltaX, deltaY, false); in visualizeResizeForDelta() 201 private void visualizeResizeForDelta(int deltaX, int deltaY, boolean onDismiss) { in visualizeResizeForDelta() argument 202 updateDeltas(deltaX, deltaY); in visualizeResizeForDelta() 230 int deltaX = mDeltaX + mDeltaXAddOn; in resizeWidgetIfNeeded() local 233 float hSpanIncF = 1.0f * deltaX / xThreshold - mRunningHInc; in resizeWidgetIfNeeded()
|
D | PagedView.java | 1256 final float deltaX = mLastMotionX + mLastMotionXRemainder - x; in onTouchEvent() local 1258 mTotalMotionX += Math.abs(deltaX); in onTouchEvent() 1263 if (Math.abs(deltaX) >= 1.0f) { in onTouchEvent() 1264 mTouchX += deltaX; in onTouchEvent() 1267 scrollBy((int) deltaX, 0); in onTouchEvent() 1268 if (DEBUG) Log.d(TAG, "onTouchEvent().Scrolling: " + deltaX); in onTouchEvent() 1273 mLastMotionXRemainder = deltaX - (int) deltaX; in onTouchEvent() 1290 final int deltaX = (int) (x - mDownMotionX); in onTouchEvent() local 1292 boolean isSignificantMove = Math.abs(deltaX) > pageWidth * in onTouchEvent() 1304 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD && in onTouchEvent() [all …]
|
D | DragView.java | 90 final int deltaX = (int) ((value * offsetX) - mOffsetX); in DragView() 93 mOffsetX += deltaX; in DragView() 104 setTranslationX(getTranslationX() + deltaX); in DragView()
|
D | CellLayout.java | 1957 int deltaX = mTempLocation[0] - boundingRect.left; in addViewsToTempLocation() local 1961 c.x += deltaX; in addViewsToTempLocation() 2134 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument 2135 double angle = Math.atan(((float) deltaY) / deltaX); in computeDirectionVector() 2140 result[0] = (int) Math.signum(deltaX); in computeDirectionVector() 2485 int deltaX = (dropRegionRect.centerX() - dragViewCenterX) / spanX; in getDirectionVectorForDrop() local 2489 deltaX = 0; in getDirectionVectorForDrop() 2495 if (deltaX == 0 && deltaY == 0) { in getDirectionVectorForDrop() 2500 computeDirectionVector(deltaX, deltaY, resultDirection); in getDirectionVectorForDrop()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | GalleryThumbnailView.java | 343 final int deltaX = (int) dx; in onTouchEvent() local 344 mTouchRemainderX = dx - deltaX; in onTouchEvent() 353 if (!trackMotionScroll(deltaX, true)) { in onTouchEvent() 388 private boolean trackMotionScroll(int deltaX, boolean allowOverScroll) { in trackMotionScroll() argument 390 final int allowOverhang = Math.abs(deltaX); in trackMotionScroll() 398 if (deltaX > 0) { in trackMotionScroll() 422 EdgeEffectCompat edge = deltaX > 0 ? mLeftEdge : mRightEdge; in trackMotionScroll() 423 edge.onPull((float) Math.abs(deltaX) / getWidth()); in trackMotionScroll() 429 return deltaX == 0 || movedBy != 0; in trackMotionScroll()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 202 float deltaX = 0, deltaY = 0; in center() local 218 deltaX = (viewWidth - width) / 2 - rect.left; in center() 220 deltaX = -rect.left; in center() 222 deltaX = viewWidth - rect.right; in center() 226 postTranslate(deltaX, deltaY); in center()
|
D | Util.java | 156 int deltaX = source.getWidth() - targetWidth; in transform() local 158 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform() 169 int deltaXHalf = Math.max(0, deltaX / 2); in transform()
|
D | CropImage.java | 611 protected void postTranslate(float deltaX, float deltaY) { in postTranslate() argument 612 super.postTranslate(deltaX, deltaY); in postTranslate() 615 hv.mMatrix.postTranslate(deltaX, deltaY); in postTranslate()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | MainActivityLayout.java | 105 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() local 108 && Math.abs(deltaX) > mSlop) { in onInterceptTouchEvent() 110 if (deltaX >= Math.abs(deltaY) * 2) { in onInterceptTouchEvent() 116 else if (deltaX < -Math.abs(deltaY) * 2) { in onInterceptTouchEvent()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 1653 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() local 1656 && deltaX < mSlop * (-1)) { in onInterceptTouchEvent() 1658 if (Math.abs(deltaX) >= Math.abs(deltaY) * 2) { in onInterceptTouchEvent() 2124 public void scroll(float deltaX) { 2128 mCenterX += deltaX; 2748 int deltaX = (int) (dx / mScale); 2768 mController.scroll(deltaX); 2800 if (mViewItem[mCurrentItem] == null || (deltaX < 0 && mCenterX <= 2805 mController.scroll((int) (deltaX * 1.2));
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageScrollView.java | 219 final int deltaX = (int) (e.getX() - mDownFocusX); in onDoubleTapEvent() local 221 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onDoubleTapEvent()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | CameraAppUI.java | 723 int deltaX = (int) (ev.getX() - mDown.getX()); in onScroll() local 726 if (Math.abs(deltaX) > mSlop || Math.abs(deltaY) > mSlop) { in onScroll() 728 if (deltaX >= Math.abs(deltaY)) { in onScroll() 731 } else if (deltaX <= -Math.abs(deltaY)) { in onScroll()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | SplineMath.java | 127 double deltaX = points[i + 1][0] - points[i - 1][0]; in solveSystem() local 132 system[i][1] = d3 * deltaX; // b_i in solveSystem()
|