/aosp14/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | geometry.cpp | 85 y -= dy / 2.0f; in ExpandToAspectRatio() 86 height += dy; in ExpandToAspectRatio() 102 y -= dy / 2.0f; in ExpandToMinLength() 103 height += dy; in ExpandToMinLength() 127 y -= dy / 2.0f; in ScaleWithLengthLimit() 128 height += dy; in ScaleWithLengthLimit() 140 Point dy = vert_axis; in FromCenterAxisAndLengths() local 146 Point dx = dy; in FromCenterAxisAndLengths() 150 points_[0] = center - dx - dy; in FromCenterAxisAndLengths() 151 points_[1] = center + dx - dy; in FromCenterAxisAndLengths() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | ChooserRecyclerViewAccessibilityDelegate.java | 67 int dy = 0; in ensureViewOnScreenVisibility() local 73 dy = mTempRect.bottom - recyclerOnScreenBottom; in ensureViewOnScreenVisibility() 76 dy = mTempRect.top - recyclerOnScreenTop; in ensureViewOnScreenVisibility() 78 nestedVerticalScrollBy(recyclerView, dy); in ensureViewOnScreenVisibility() 81 private void nestedVerticalScrollBy(RecyclerView recyclerView, int dy) { in nestedVerticalScrollBy() argument 82 if (dy == 0) { in nestedVerticalScrollBy() 86 if (recyclerView.dispatchNestedPreScroll(0, dy, mConsumed, null)) { in nestedVerticalScrollBy() 87 dy -= mConsumed[1]; in nestedVerticalScrollBy() 89 recyclerView.scrollBy(0, dy); in nestedVerticalScrollBy()
|
/aosp14/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.cpp | 83 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio() local 84 y -= dy / 2.0f; in ExpandToAspectRatio() 85 height += dy; in ExpandToAspectRatio() 100 const float dy = height * (length / current_length - 1.0f); in ExpandToMinLength() local 101 y -= dy / 2.0f; in ExpandToMinLength() 102 height += dy; in ExpandToMinLength() 125 const float dy = height * (f - 1.0f); in ScaleWithLengthLimit() local 126 y -= dy / 2.0f; in ScaleWithLengthLimit() 127 height += dy; in ScaleWithLengthLimit()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 333 public void rMoveTo(float dx, float dy) { in rMoveTo() argument 334 nRMoveTo(mNativePath, dx, dy); in rMoveTo() 359 public void rLineTo(float dx, float dy) { in rLineTo() argument 360 nRLineTo(mNativePath, dx, dy); in rLineTo() 677 public void addPath(@NonNull Path src, float dx, float dy) { in addPath() argument 678 nAddPath(mNativePath, src.mNativePath, dx, dy); in addPath() 713 dst.offset(dx, dy); in offset() 722 public void offset(float dx, float dy) { in offset() argument 723 nOffset(mNativePath, dx, dy); in offset() 732 public void setLastPoint(float dx, float dy) { in setLastPoint() argument [all …]
|
H A D | Matrix.java | 64 public void setTranslate(float dx, float dy) { 115 public boolean preTranslate(float dx, float dy) { 163 public boolean postTranslate(float dx, float dy) { 319 public void setTranslate(float dx, float dy) { in setTranslate() argument 320 nSetTranslate(native_instance, dx, dy); in setTranslate() 399 public boolean preTranslate(float dx, float dy) { in preTranslate() argument 400 nPreTranslate(native_instance, dx, dy); in preTranslate() 463 public boolean postTranslate(float dx, float dy) { in postTranslate() argument 464 nPostTranslate(native_instance, dx, dy); in postTranslate() 888 private static native void nSetTranslate(long nObject, float dx, float dy); in nSetTranslate() argument [all …]
|
H A D | RectF.java | 243 public void offset(float dx, float dy) { in offset() argument 245 top += dy; in offset() 247 bottom += dy; in offset() 273 public void inset(float dx, float dy) { in inset() argument 275 top += dy; in inset() 277 bottom -= dy; in inset()
|
/aosp14/frameworks/base/core/java/android/transition/ |
H A D | PatternPathMotion.java | 119 float dy = endY - startY; in setPatternPath() local 120 float distance = (float) Math.hypot(dx, dy); in setPatternPath() 123 double angle = Math.atan2(dy, dx); in setPatternPath() 132 double dy = endY - startY; in getPath() local 133 float length = (float) Math.hypot(dx, dy); in getPath() 134 double angle = Math.atan2(dy, dx); in getPath()
|
H A D | ArcMotion.java | 210 float dy = (startY + endY) / 2; in getPath() local 221 ey = dy + (Math.abs(deltaX) * 0.5f * mMinimumHorizontalTangent); in getPath() 224 ey = dy; in getPath() 257 float arcDistY = dy - ey; in getPath() 272 ey = dy + (ratio * (ey - dy)); in getPath()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
H A D | RelativeTouchListener.kt | 56 dy: Float 76 dy: Float, 99 val dy = ev.rawY - touchDown.y regex 123 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { 129 onMove(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy) 136 onUp(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy,
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 441 performDrag(dy); in onTouchEvent() 575 private float performDrag(float dy) { 583 dy = newPos - mCollapseOffset; 585 mDragRemainder += dy - (int) dy; 588 dy += 1.0f; 591 dy -= 1.0f; 624 mTopOffset += dy; 634 return dy; 665 int dy = yOffset - sy; 666 if (dy == 0) { [all …]
|
H A D | LinearSmoothScroller.java | 113 final int dy = calculateDyToMakeVisible(targetView, getVerticalSnapPreference()); in onTargetFound() local 114 final int distance = (int) Math.sqrt(dx * dx + dy * dy); in onTargetFound() 117 action.update(-dx, -dy, time, mDecelerateInterpolator); in onTargetFound() 125 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { in onSeekTargetStep() argument 132 && ((mTargetVector.x * dx < 0 || mTargetVector.y * dy < 0))) { in onSeekTargetStep() 137 mInterimTargetDy = clampApplyScroll(mInterimTargetDy, dy); in onSeekTargetStep()
|
H A D | SlidingTab.java | 251 Animation trans = new TranslateAnimation(0, dx, 0, dy); in hide() 268 Animation trans = new TranslateAnimation(-dx, 0, -dy, 0); in show() 312 TranslateAnimation trans = new TranslateAnimation(0, dx, 0, dy); in reset() 322 text.offsetTopAndBottom(dy); in reset() 323 tab.offsetTopAndBottom(dy); in reset() 652 final int dy; 661 dy = 0; 669 dy = slider == mRightSlider ? (top + viewHeight - holdOffset) 672 trans1 = new TranslateAnimation(0, dx, 0, dy); 676 trans2 = new TranslateAnimation(0, dx, 0, dy); [all …]
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | Scroller.java | 140 float y, dy; 144 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y; 145 if (Math.abs(dy - alpha) < 1E-5) break; 146 if (dy > alpha) y_max = y; 375 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 376 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 401 mFinalY = startY + dy; in startScroll() 403 mDeltaY = dy; in startScroll() 433 float dy = (float) (mFinalY - mStartY); in fling() local 434 float hyp = (float) Math.hypot(dx, dy); in fling() [all …]
|
H A D | OverScroller.java | 346 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 347 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 363 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 366 mScrollerY.startScroll(startY, dy, duration); in startScroll() 525 final int dy = mScrollerY.mFinal - mScrollerY.mStart; in isScrollingInDirection() local 527 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection() 618 float y, dy; 622 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y; 623 if (Math.abs(dy - alpha) < 1E-5) break; 624 if (dy > alpha) y_max = y;
|
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
H A D | Rectangle.java | 61 Point dy = vAxis.scaledTo(size.y / 2.0f); in fromCenterVerticalAxis() local 63 return new Rectangle(center.minus(dx).minus(dy), in fromCenterVerticalAxis() 64 center.plus(dx).minus(dy), in fromCenterVerticalAxis() 65 center.minus(dx).plus(dy), in fromCenterVerticalAxis() 66 center.plus(dx).plus(dy)); in fromCenterVerticalAxis()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubblesNavBarMotionEventHandler.java | 67 float dy = motionEvent.getY() - mTouchDown.y; in onMotionEvent() local 80 if (!mInterceptingTouches && Math.hypot(dx, dy) > mTouchSlop) { in onMotionEvent() 86 mMotionEventListener.onMove(dx, dy); in onMotionEvent() 159 void onMove(float dx, float dy); in onMove() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | LaunchParamsUtil.java | 185 final int dy; in adjustBoundsToFitInDisplayArea() local 188 dy = stableBounds.top - inOutBounds.top; in adjustBoundsToFitInDisplayArea() 191 dy = stableBounds.bottom - inOutBounds.bottom; in adjustBoundsToFitInDisplayArea() 194 dy = 0; in adjustBoundsToFitInDisplayArea() 196 inOutBounds.offset(dx, dy); in adjustBoundsToFitInDisplayArea()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipKeepClearAlgorithm.kt | 276 val dy = candidateBounds.top - pipAnchorBounds.top regex 277 return dx * dx + dy * dy 315 val dy = event.pos - pipAnchorBounds.bottom - padding regex 317 val candidate = pipAnchorBounds.offsetCopy(dx, dy) 320 if (isOnScreen && abs(dy) <= maxDY && !hangingMidAir) { 328 val dy = event.pos - pipAnchorBounds.top + padding regex 330 val candidate = pipAnchorBounds.offsetCopy(dx, dy) 333 if (isOnScreen && abs(dy) <= maxDY && !hangingMidAir) { 408 val dy = abs(it.top - bounds.top) regex 409 return@minByOrNull dx + dy [all …]
|
/aosp14/frameworks/base/core/java/android/view/animation/ |
H A D | TranslateYAnimation.java | 54 float dy = mFromYDelta + ((mToYDelta - mFromYDelta) * interpolatedTime); in applyTransformation() local 55 t.getMatrix().setTranslate(mTmpValues[Matrix.MTRANS_X], dy); in applyTransformation()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
H A D | MenuListViewTouchHandler.java | 60 final float dy = motionEvent.getRawY() - mDown.y; in onInterceptTouchEvent() local 75 if (mIsDragging || Math.hypot(dx, dy) > mTouchSlop) { in onInterceptTouchEvent() 86 mMenuTranslationDown.y + dy); in onInterceptTouchEvent()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
H A D | EllipseOverlapDetector.kt | 102 val dy = cY - y regex 104 val disSquared = dx * dx + dy * dy
|
/aosp14/frameworks/base/core/java/android/gesture/ |
H A D | GestureStroke.java | 139 float dy = Math.abs(y - mY); in makePath() local 140 if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) { in makePath() 188 float dy = Math.abs(y - mY); in toPath() local 189 if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) { in toPath()
|
H A D | GestureUtils.java | 381 float dy = points[i + 3] - points[i + 1]; in computeTotalLength() local 382 sum += Math.hypot(dx, dy); in computeTotalLength() 390 float dy = points[3] - points[1]; in computeStraightness() local 391 return (float) Math.hypot(dx, dy) / totalLen; in computeStraightness() 396 float dy = points[3] - points[1]; in computeStraightness() local 397 return (float) Math.hypot(dx, dy) / totalLen; in computeStraightness() 576 static float[] translate(float[] points, float dx, float dy) { in translate() argument 580 points[i + 1] += dy; in translate()
|
/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | Touch.java | 140 float dy; in onTouchEvent() local 145 dy = event.getY() - ds[0].mY; in onTouchEvent() 148 dy = ds[0].mY - event.getY(); in onTouchEvent() 154 int ny = widget.getScrollY() + (int) dy; in onTouchEvent()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | PathInterpolatorBuilder.java | 88 float dy = mY[i] - mY[i - 1]; in initPath() local 89 float dist = (float) Math.sqrt(dx * dx + dy * dy); in initPath()
|