/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/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/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/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/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 | 1645 final float deltaX = mLastMotionX + mLastMotionXRemainder - x; in onTouchEvent() local 1647 mTotalMotionX += Math.abs(deltaX); in onTouchEvent() 1652 if (Math.abs(deltaX) >= 1.0f) { in onTouchEvent() 1653 mTouchX += deltaX; in onTouchEvent() 1655 scrollBy((int) deltaX, 0); in onTouchEvent() 1657 mLastMotionXRemainder = deltaX - (int) deltaX; in onTouchEvent() 1755 final int deltaX = (int) (x - mDownMotionX); in onTouchEvent() local 1757 boolean isSignificantMove = Math.abs(deltaX) > pageWidth * in onTouchEvent() 1770 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD && in onTouchEvent() 1771 Math.signum(velocityX) != Math.signum(deltaX) && isFling) { in onTouchEvent() [all …]
|
D | DragView.java | 102 final int deltaX = (int) (-mOffsetX); in DragView() 105 mOffsetX += deltaX; in DragView() 116 setTranslationX(getTranslationX() + deltaX); in DragView()
|
D | CellLayout.java | 1737 int deltaX = mTempLocation[0] - boundingRect.left; in addViewsToTempLocation() local 1741 c.x += deltaX; in addViewsToTempLocation() 1916 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument 1917 double angle = Math.atan(((float) deltaY) / deltaX); in computeDirectionVector() 1922 result[0] = (int) Math.signum(deltaX); in computeDirectionVector() 2284 int deltaX = (dropRegionRect.centerX() - dragViewCenterX) / spanX; in getDirectionVectorForDrop() local 2288 deltaX = 0; in getDirectionVectorForDrop() 2294 if (deltaX == 0 && deltaY == 0) { in getDirectionVectorForDrop() 2299 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 | 103 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() local 106 && Math.abs(deltaX) > mSlop) { in onInterceptTouchEvent() 108 if (deltaX >= Math.abs(deltaY) * 2) { in onInterceptTouchEvent() 114 else if (deltaX < -Math.abs(deltaY) * 2) { in onInterceptTouchEvent()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListSwipeHelper.java | 132 final float deltaX = currX - mInitialX; in onInterceptTouchEvent() local 134 final float absDeltaX = Math.abs(deltaX); in onInterceptTouchEvent() 343 final float deltaX = animateTo - itemView.getSwipeTranslationX(); in animateDismiss() local 344 duration = calculateTranslationDuration(deltaX, velocityX); in animateDismiss()
|
/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/widget/ |
D | FilmstripView.java | 1632 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() local 1635 && deltaX < mSlop * (-1)) { in onInterceptTouchEvent() 1637 if (Math.abs(deltaX) >= Math.abs(deltaY) * 2) { in onInterceptTouchEvent() 2151 public void scroll(float deltaX) { 2155 mCenterX += deltaX; 2765 int deltaX = (int) (dx / mScale); 2787 mController.scroll(deltaX); 2820 if (mViewItems[BUFFER_CENTER] == null || (deltaX < 0 && mCenterX <= 2825 mController.scroll((int) (deltaX * 1.2));
|
D | ModeOptions.java | 282 final int deltaX = getResources() in setupAnimators() local 295 ValueAnimator.ofFloat(deltaX*(childCount-i), 0.0f); in setupAnimators()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | SpeedDialFragment.java | 405 int deltaX = 0; in animateGridView() 410 deltaX = startLeft - left; in animateGridView() 412 child, "translationX", deltaX, 0.0f)); in animateGridView()
|
/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()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | CameraAppUI.java | 746 int deltaX = (int) (ev.getX() - mDown.getX()); in onScroll() local 749 if (Math.abs(deltaX) > mSlop || Math.abs(deltaY) > mSlop) { in onScroll() 751 if (deltaX >= Math.abs(deltaY)) { in onScroll() 754 } else if (deltaX <= -Math.abs(deltaY)) { in onScroll()
|