/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsFastScrollHelper.java | 150 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/ |
D | Blend.cpp | 1101 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/ |
D | ImageViewTouchBase.java | 202 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()
|
D | Util.java | 157 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()
|
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 | 104 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/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageScrollView.java | 220 final int deltaY = (int) (e.getY() - mDownFocusY); in onDoubleTapEvent() local 221 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onDoubleTapEvent()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAnimator.java | 107 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/UnifiedEmail/src/com/android/mail/ui/ |
D | GmailDragHelper.java | 139 final float deltaY = Math.abs(ev.getY() - mInitialInterceptedY); in processTouchEvent() 140 if (deltaX >= mConfiguration.getScaledTouchSlop() && deltaX >= deltaY in processTouchEvent()
|
D | SwipeHelper.java | 228 float deltaY = Math.abs(currY - mInitialTouchPosY); in onInterceptTouchEvent() local 230 if (deltaY > mCurrView.getMinAllowScrollDistance() in onInterceptTouchEvent() 231 && deltaY > (FACTOR * deltaX)) { in onInterceptTouchEvent()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/ |
D | FlingUpDownTouchHandler.java | 272 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/ |
D | OldSpeedDialFragment.java | 298 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/ |
D | WearableListView.java | 320 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/ |
D | CellLayout.java | 1613 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()
|
D | AppWidgetResizeFrame.java | 232 public void visualizeResizeForDelta(int deltaX, int deltaY) { in visualizeResizeForDelta() argument 234 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta() 242 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta()
|
D | Utilities.java | 358 int deltaY = (int) (r.height() * (scaleY - scale) * 0.5f); in shrinkRect() local 359 r.top += deltaY; in shrinkRect() 360 r.bottom -= deltaY; in shrinkRect()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/ |
D | AssistantTouchConsumer.java | 260 private boolean isValidAssistantGestureAngle(float deltaX, float deltaY) { in isValidAssistantGestureAngle() argument 261 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListSwipeHelper.java | 133 final float deltaY = currY - mInitialY; in onInterceptTouchEvent() local 135 final float absDeltaY = Math.abs(deltaY); in onInterceptTouchEvent()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationItemTouchListener.java | 239 float deltaY = currY - mInitialY; in onInterceptTouchEvent() local 241 float absDeltaY = Math.abs(deltaY); in onInterceptTouchEvent()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripView.java | 345 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/ |
D | CameraAppUI.java | 747 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/ |
D | MultiShrinkScroller.java | 1273 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/ |
D | GalleryThumbnailView.java | 307 final int deltaY = (int) dx; in onInterceptTouchEvent() local 308 mTouchRemainderX = dx - deltaY; in onInterceptTouchEvent()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 2273 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/ |
D | KeyboardView.java | 464 float deltaY = me2.getY() - me1.getY(); in initGestureDetector() 485 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector() 492 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
|