Home
last modified time | relevance | path

Searched refs:deltaX (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Car/Notification/src/com/android/car/notification/
DHeadsUpNotificationOnTouchListener.java92 float deltaX = motionEvent.getRawX() - mDownX; in onTouch() local
100 if (Math.abs(deltaX) > viewWidth * THRESHOLD) { in onTouch()
103 dismissRight = deltaX > 0; in onTouch()
109 dismiss = (velocityX < 0) == (deltaX < 0); in onTouch()
146 float deltaX = motionEvent.getRawX() - mDownX; in onTouch() local
147 if (Math.abs(deltaX) > TOUCH_SLOP) { in onTouch()
149 mSwipingSlop = (deltaX > 0 ? TOUCH_SLOP : -TOUCH_SLOP); in onTouch()
162 mTranslationX = deltaX; in onTouch()
163 mView.setTranslationX(deltaX - mSwipingSlop); in onTouch()
168 1f - 2f * Math.abs(deltaX) / viewWidth))); in onTouch()
DCarNotificationItemTouchListener.java238 float deltaX = currX - mInitialX; in onInterceptTouchEvent() local
240 float absDeltaX = Math.abs(deltaX); in onInterceptTouchEvent()
310 float deltaX = event.getX() - mInitialX; in onTouchEvent() local
312 deltaX); in onTouchEvent()
313 float alpha = mDismissAnimationHelper.calculateAlphaValue(mViewHolder, deltaX); in onTouchEvent()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1100 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/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java343 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/Camera2/src/com/android/camera/ui/
DMainActivityLayout.java103 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()
DModeListView.java1567 private void scroll(int itemId, float deltaX, float deltaY) { in scroll() argument
1570 mScrollTrendX = mScrollTrendX * 0.3f + deltaX * 0.7f; in scroll()
1581 float newPosition = longestWidth - deltaX; in scroll()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1143 final float deltaX = mLastMotionX + mLastMotionXRemainder - x; in onTouchEvent() local
1145 mTotalMotionX += Math.abs(deltaX); in onTouchEvent()
1150 if (Math.abs(deltaX) >= 1.0f) { in onTouchEvent()
1151 scrollBy((int) deltaX, 0); in onTouchEvent()
1153 mLastMotionXRemainder = deltaX - (int) deltaX; in onTouchEvent()
1170 final int deltaX = (int) (x - mDownMotionX); in onTouchEvent() local
1172 boolean isSignificantMove = Math.abs(deltaX) > pageWidth * in onTouchEvent()
1177 boolean isDeltaXLeft = mIsRtl ? deltaX > 0 : deltaX < 0; in onTouchEvent()
1185 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD && in onTouchEvent()
1186 Math.signum(velocityX) != Math.signum(deltaX) && isFling) { in onTouchEvent()
DCellLayout.java1612 int deltaX = mTempLocation[0] - boundingRect.left; in addViewsToTempLocation() local
1616 c.cellX += deltaX; in addViewsToTempLocation()
1787 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument
1788 double angle = Math.atan(deltaY / deltaX); in computeDirectionVector()
1793 result[0] = (int) Math.signum(deltaX); in computeDirectionVector()
2180 int deltaX = (dropRegionRect.centerX() - dragViewCenterX) / spanX; in getDirectionVectorForDrop() local
2184 deltaX = 0; in getDirectionVectorForDrop()
2190 if (deltaX == 0 && deltaY == 0) { in getDirectionVectorForDrop()
2195 computeDirectionVector(deltaX, deltaY, resultDirection); in getDirectionVectorForDrop()
DAppWidgetResizeFrame.java232 public void visualizeResizeForDelta(int deltaX, int deltaY) { in visualizeResizeForDelta() argument
233 mDeltaX = mDeltaXRange.clamp(deltaX); in visualizeResizeForDelta()
237 mDeltaX = mDeltaXRange.clamp(deltaX); in visualizeResizeForDelta()
DUtilities.java317 int deltaX = (int) (r.width() * (scaleX - scale) * 0.5f); in shrinkRect() local
318 r.left += deltaX; in shrinkRect()
319 r.right -= deltaX; in shrinkRect()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java202 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()
DUtil.java156 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()
DCropImage.java611 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/DeskClock/src/com/android/deskclock/
DItemAnimator.java106 final int deltaX = toX - fromX; in animateMove() local
110 if (deltaX == 0 && deltaY == 0) { in animateMove()
118 view.setTranslationX(-deltaX); in animateMove()
122 if (deltaX != 0 && deltaY != 0) { in animateMove()
126 } else if (deltaX != 0) { in animateMove()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java132 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/Dialer/java/com/android/dialer/app/list/
DOldSpeedDialFragment.java297 int deltaX = 0; in animateGridView()
302 deltaX = startLeft - left; in animateGridView()
303 animators.add(ObjectAnimator.ofFloat(child, "translationX", deltaX, 0.0f)); in animateGridView()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java127 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/widget/
DFilmstripView.java1632 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));
DModeOptions.java282 final int deltaX = getResources() in setupAnimators() local
295 ValueAnimator.ofFloat(deltaX*(childCount-i), 0.0f); in setupAnimators()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java319 float deltaX = Math.abs(mStartX - event.getX()); in handlePossibleVerticalSwipe() local
321 float distance = (deltaX * deltaX) + (deltaY * deltaY); in handlePossibleVerticalSwipe()
325 if (deltaX > deltaY) { in handlePossibleVerticalSwipe()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DAssistantTouchConsumer.java265 private boolean isValidAssistantGestureAngle(float deltaX, float deltaY) { in isValidAssistantGestureAngle() argument
266 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle()
/packages/apps/Camera2/src/com/android/camera/filmstrip/
DFilmstripController.java95 public void scroll(float deltaX); in scroll() argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java363 double deltaX = points[i + 1].x - points[i - 1].x; in solveSystem() local
368 system[i][1] = d3 * deltaX; // b_i in solveSystem()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java746 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()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java466 float deltaX = me2.getX() - me1.getX(); in initGestureDetector()
474 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector()
481 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector()

12