Home
last modified time | relevance | path

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

12

/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/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DOneHandedModeInputConsumer.java170 private boolean isValidStartAngle(float deltaX, float deltaY) { in isValidStartAngle() argument
171 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidStartAngle()
175 private boolean isValidExitAngle(float deltaX, float deltaY) { in isValidExitAngle() argument
176 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidExitAngle()
DOverscrollInputConsumer.java241 float deltaY = abs(mLastPos.y - mDownPos.y); in isOverscrolled() local
244 boolean angleInBounds = (Math.toDegrees(Math.atan2(deltaY, abs(deltaX))) < mAngleThreshold); in isOverscrolled()
DAssistantInputConsumer.java257 private boolean isValidAssistantGestureAngle(float deltaX, float deltaY) { in isValidAssistantGestureAngle() argument
258 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle()
/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()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAnimator.kt98 val deltaY = toY - fromY in animateMove() constant
101 if (deltaX == 0 && deltaY == 0) { in animateMove()
110 view.translationY = -deltaY.toFloat() in animateMove()
113 if (deltaX != 0 && deltaY != 0) { in animateMove()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/actions/
DLowLevelActions.java131 final float deltaX, final float deltaY, final float interval, final float limitX,
163 coordinatesMove[1] = coordinatesMove[1] + deltaY;
/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/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableListView.java321 float deltaY = Math.abs(mStartY - event.getY()); in handlePossibleVerticalSwipe() local
322 float distance = (deltaX * deltaX) + (deltaY * deltaY); in handlePossibleVerticalSwipe()
326 if (deltaX > deltaY) { in handlePossibleVerticalSwipe()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java222 float deltaY = currY - mInitialY; in onInterceptTouchEvent() local
224 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/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1676 int deltaY = mTempLocation[1] - boundingRect.top; in addViewsToTempLocation() local
1680 c.cellY += deltaY; in addViewsToTempLocation()
1850 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument
1851 double angle = Math.atan(deltaY / deltaX); in computeDirectionVector()
1859 result[1] = (int) Math.signum(deltaY); in computeDirectionVector()
2244 int deltaY = (dropRegionRect.centerY() - dragViewCenterY) / spanY; in getDirectionVectorForDrop() local
2250 deltaY = 0; in getDirectionVectorForDrop()
2253 if (deltaX == 0 && deltaY == 0) { in getDirectionVectorForDrop()
2258 computeDirectionVector(deltaX, deltaY, resultDirection); in getDirectionVectorForDrop()
DAppWidgetResizeFrame.java329 public void visualizeResizeForDelta(int deltaX, int deltaY) { in visualizeResizeForDelta() argument
331 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta()
339 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta()
DUtilities.java375 int deltaY = (int) (r.height() * (scaleY - scale) * 0.5f); in shrinkRect() local
376 r.top += deltaY; in shrinkRect()
377 r.bottom -= deltaY; in shrinkRect()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DNavBarGestureHandler.java272 private boolean isValidAssistantGestureAngle(float deltaX, float deltaY) { in isValidAssistantGestureAngle() argument
273 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle()
/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.java748 int deltaY = (int) (ev.getY() - mDown.getY()); in onScroll() local
750 if (Math.abs(deltaX) > mSlop || Math.abs(deltaY) > mSlop) { in onScroll()
752 if (deltaX >= Math.abs(deltaY)) { in onScroll()
755 } 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()

12