/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/Launcher2/src/com/android/launcher2/ |
D | AppWidgetResizeFrame.java | 176 public void updateDeltas(int deltaX, int deltaY) { in updateDeltas() argument 186 mDeltaY = Math.max(-mBaselineY, deltaY); in updateDeltas() 189 mDeltaY = Math.min(mDragLayer.getHeight() - (mBaselineY + mBaselineHeight), deltaY); 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() 231 int deltaY = mDeltaY + mDeltaYAddOn; in resizeWidgetIfNeeded() local 234 float vSpanIncF = 1.0f * deltaY / yThreshold - mRunningVInc; in resizeWidgetIfNeeded()
|
D | DragView.java | 91 final int deltaY = (int) ((value * offsetY) - mOffsetY); in DragView() 94 mOffsetY += deltaY; in DragView() 105 setTranslationY(getTranslationY() + deltaY); in DragView()
|
D | CellLayout.java | 1958 int deltaY = mTempLocation[1] - boundingRect.top; in addViewsToTempLocation() local 1962 c.y += deltaY; 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() 2143 result[1] = (int) Math.signum(deltaY); in computeDirectionVector() 2486 int deltaY = (dropRegionRect.centerY() - dragViewCenterY) / spanY; in getDirectionVectorForDrop() local 2492 deltaY = 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/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/Car/Dialer/src/com/android/car/dialer/ |
D | StrequentsItemAnimator.java | 261 int deltaY = toY - fromY; in animateMove() local 262 if (deltaX == 0 && deltaY == 0) { in animateMove() 269 if (deltaY != 0) { in animateMove() 270 ViewCompat.setTranslationY(view, -deltaY); in animateMove() 279 final int deltaY = toY - fromY; in animateMoveImpl() local 283 if (deltaY != 0) { in animateMoveImpl() 301 if (deltaY != 0) { in animateMoveImpl() 323 int deltaY = (int) (toY - fromY - prevTranslationY); in animateChange() local 332 ViewCompat.setTranslationY(newHolder.itemView, -deltaY); in animateChange()
|
/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/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/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/Dialer/java/com/android/dialer/app/list/ |
D | OldSpeedDialFragment.java | 338 int deltaY = 0; in animateGridView() 349 deltaY = startTop - top; in animateGridView() 350 animators.add(ObjectAnimator.ofFloat(child, "translationY", deltaY, 0.0f)); in animateGridView() 364 + deltaY); in animateGridView()
|
/packages/apps/Dialer/java/com/android/dialershared/bubble/ |
D | MoveHandler.java | 273 private float getMagnitudeSquared(float deltaX, float deltaY) { in getMagnitudeSquared() argument 274 return deltaX * deltaX + deltaY * deltaY; in getMagnitudeSquared()
|
/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/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/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 1649 int deltaY = mTempLocation[1] - boundingRect.top; in addViewsToTempLocation() local 1653 c.cellY += deltaY; in addViewsToTempLocation() 1823 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument 1824 double angle = Math.atan(deltaY / deltaX); in computeDirectionVector() 1832 result[1] = (int) Math.signum(deltaY); in computeDirectionVector() 2205 int deltaY = (dropRegionRect.centerY() - dragViewCenterY) / spanY; in getDirectionVectorForDrop() local 2211 deltaY = 0; in getDirectionVectorForDrop() 2214 if (deltaX == 0 && deltaY == 0) { in getDirectionVectorForDrop() 2219 computeDirectionVector(deltaX, deltaY, resultDirection); in getDirectionVectorForDrop()
|
D | AppWidgetResizeFrame.java | 198 public void visualizeResizeForDelta(int deltaX, int deltaY) { in visualizeResizeForDelta() argument 200 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta() 208 mDeltaY = mDeltaYRange.clamp(deltaY); in visualizeResizeForDelta()
|
D | Utilities.java | 258 int deltaY = (int) (r.height() * (scaleY - scale) * 0.5f); in shrinkRect() local 259 r.top += deltaY; in shrinkRect() 260 r.bottom -= deltaY; in shrinkRect()
|
/packages/apps/PackageInstaller/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/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/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/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/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()
|