Home
last modified time | relevance | path

Searched refs:deltaY (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsFastScrollHelper.java150 int deltaY = newScrollY - scrollY; in smoothSnapToPosition() local
151 float ySign = Math.signum(deltaY); in smoothSnapToPosition()
152 int step = (int) (ySign * Math.ceil((float) Math.abs(deltaY) / numFrames)); in smoothSnapToPosition()
155 mFastScrollFrames[i] = (int) (ySign * Math.min(Math.abs(step), Math.abs(deltaY))); in smoothSnapToPosition()
156 deltaY -= step; in smoothSnapToPosition()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1101 double deltaY = Y - m_wb.y; in FrameToMosaic() local
1102 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic()
1111 double deltaY = Y - m_wb.y; in FrameToMosaic() local
1112 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic()
1113 double deltaTheta = asin(deltaY / length); in FrameToMosaic()
1219 double deltaY = currY - prevY; in SelectRelevantFrames() local
1220 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames()
1223 fabs(deltaY) > STRIP_SEPARATION_THRESHOLD_PXLS) in SelectRelevantFrames()
1277 double deltaY = currY - prevY; in ComputeBlendParameters() local
1281 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java202 float deltaX = 0, deltaY = 0; in center() local
207 deltaY = (viewHeight - height) / 2 - rect.top; in center()
209 deltaY = -rect.top; in center()
211 deltaY = getHeight() - rect.bottom; in center()
226 postTranslate(deltaX, deltaY); in center()
DUtil.java157 int deltaY = source.getHeight() - targetHeight; in transform() local
158 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform()
170 int deltaYHalf = Math.max(0, deltaY / 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/Camera2/src/com/android/camera/ui/
DMainActivityLayout.java104 int deltaY = (int) (ev.getY() - mDown.getY()); in onInterceptTouchEvent() local
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
1571 mScrollTrendY = mScrollTrendY * 0.3f + deltaY * 0.7f; in scroll()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAnimator.java107 final int deltaY = toY - fromY; in animateMove() local
110 if (deltaX == 0 && deltaY == 0) { in animateMove()
119 view.setTranslationY(-deltaY); in animateMove()
122 if (deltaX != 0 && deltaY != 0) { in animateMove()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownTouchHandler.java272 float deltaY = pointerY - initialTouchY; in onTouch() local
274 if (Math.abs(deltaY) > touchSlop) { in onTouch()
277 if (Math.abs(deltaY) >= falsingThresholdPx) { in onTouch()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DOldSpeedDialFragment.java298 int deltaY = 0; in animateGridView()
309 deltaY = startTop - top; in animateGridView()
310 animators.add(ObjectAnimator.ofFloat(child, "translationY", deltaY, 0.0f)); in animateGridView()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java320 float deltaY = Math.abs(mStartY - event.getY()); in handlePossibleVerticalSwipe() local
321 float distance = (deltaX * deltaX) + (deltaY * deltaY); in handlePossibleVerticalSwipe()
325 if (deltaX > deltaY) { in handlePossibleVerticalSwipe()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1613 int deltaY = mTempLocation[1] - boundingRect.top; in addViewsToTempLocation() local
1617 c.cellY += deltaY; in addViewsToTempLocation()
1787 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument
1788 double angle = Math.atan(deltaY / deltaX); in computeDirectionVector()
1796 result[1] = (int) Math.signum(deltaY); in computeDirectionVector()
2181 int deltaY = (dropRegionRect.centerY() - dragViewCenterY) / spanY; in getDirectionVectorForDrop() local
2187 deltaY = 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
234 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta()
242 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta()
DUtilities.java321 int deltaY = (int) (r.height() * (scaleY - scale) * 0.5f); in shrinkRect() local
322 r.top += deltaY; in shrinkRect()
323 r.bottom -= deltaY; in shrinkRect()
/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/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java239 float deltaY = currY - mInitialY; in onInterceptTouchEvent() local
241 float absDeltaY = Math.abs(deltaY); in onInterceptTouchEvent()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java133 final float deltaY = currY - mInitialY; in onInterceptTouchEvent() local
135 final float absDeltaY = Math.abs(deltaY); in onInterceptTouchEvent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripView.java345 public boolean onScroll(MotionEvent down, MotionEvent me, float deltaX, float deltaY) {
347 if (deltaY > 0 && dy < 0) {
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java747 int deltaY = (int) (ev.getY() - mDown.getY()); 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/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java1273 final float deltaY = event.getY() - mLastEventPosition[1]; in motionShouldStartDrag() local
1274 return deltaY > mTouchSlop || deltaY < -mTouchSlop; in motionShouldStartDrag()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java307 final int deltaY = (int) dx; in onInterceptTouchEvent() local
308 mTouchRemainderX = dx - deltaY; in onInterceptTouchEvent()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java2273 final float deltaY = mCellHeight + HOUR_GAP; in drawGridBackground() local
2290 y += deltaY; in drawGridBackground()
3161 private void doScroll(MotionEvent e1, MotionEvent e2, float deltaX, float deltaY) { in doScroll() argument
3170 mInitialScrollY += deltaY; in doScroll()
3223 final int pulledToY = (int) (mScrollStartY + deltaY); in doScroll()
3225 mEdgeEffectTop.onPull(deltaY / mViewHeight); in doScroll()
3230 mEdgeEffectBottom.onPull(deltaY / mViewHeight); in doScroll()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java467 float deltaY = me2.getY() - me1.getY(); in initGestureDetector()
488 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
495 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java1633 int deltaY = (int) (ev.getY() - mDown.getY()); in onInterceptTouchEvent() local
1637 if (Math.abs(deltaX) >= Math.abs(deltaY) * 2) { in onInterceptTouchEvent()