Home
last modified time | relevance | path

Searched refs:dy (Results 1 – 25 of 134) sorted by relevance

123456

/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp84 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio() local
85 y -= dy / 2.0f; in ExpandToAspectRatio()
86 height += dy; in ExpandToAspectRatio()
101 const float dy = height * (length / current_length - 1.0f); in ExpandToMinLength() local
102 y -= dy / 2.0f; in ExpandToMinLength()
103 height += dy; in ExpandToMinLength()
126 const float dy = height * (f - 1.0f); in ScaleWithLengthLimit() local
127 y -= dy / 2.0f; in ScaleWithLengthLimit()
128 height += dy; in ScaleWithLengthLimit()
140 Point dy = vert_axis; in FromCenterAxisAndLengths() local
[all …]
/frameworks/base/core/java/com/android/internal/app/
DChooserRecyclerViewAccessibilityDelegate.java67 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()
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp83 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()
/frameworks/native/libs/ui/include_vndk/ui/
DRegion.h92 Region& translateSelf(int dx, int dy);
94 Region& orSelf(const Region& rhs, int dx, int dy);
95 Region& xorSelf(const Region& rhs, int dx, int dy);
96 Region& andSelf(const Region& rhs, int dx, int dy);
97 Region& subtractSelf(const Region& rhs, int dx, int dy);
101 const Region translate(int dx, int dy) const WARN_UNUSED;
102 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED;
103 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED;
104 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED;
105 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
[all …]
/frameworks/native/libs/ui/include/ui/
DRegion.h92 Region& translateSelf(int dx, int dy);
94 Region& orSelf(const Region& rhs, int dx, int dy);
95 Region& xorSelf(const Region& rhs, int dx, int dy);
96 Region& andSelf(const Region& rhs, int dx, int dy);
97 Region& subtractSelf(const Region& rhs, int dx, int dy);
101 const Region translate(int dx, int dy) const WARN_UNUSED;
102 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED;
103 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED;
104 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED;
105 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
[all …]
/frameworks/native/include/ui/
DRegion.h92 Region& translateSelf(int dx, int dy);
94 Region& orSelf(const Region& rhs, int dx, int dy);
95 Region& xorSelf(const Region& rhs, int dx, int dy);
96 Region& andSelf(const Region& rhs, int dx, int dy);
97 Region& subtractSelf(const Region& rhs, int dx, int dy);
101 const Region translate(int dx, int dy) const WARN_UNUSED;
102 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED;
103 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED;
104 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED;
105 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
[all …]
/frameworks/base/graphics/java/android/graphics/
DPath.java368 public void rMoveTo(float dx, float dy) { in rMoveTo() argument
369 nRMoveTo(mNativePath, dx, dy); in rMoveTo()
395 public void rLineTo(float dx, float dy) { in rLineTo() argument
397 nRLineTo(mNativePath, dx, dy); in rLineTo()
695 public void addPath(@NonNull Path src, float dx, float dy) { in addPath() argument
697 nAddPath(mNativePath, src.mNativePath, dx, dy); in addPath()
728 public void offset(float dx, float dy, @Nullable Path dst) { in offset() argument
734 dst.offset(dx, dy); in offset()
743 public void offset(float dx, float dy) { in offset() argument
748 if (isSimplePath && dx == Math.rint(dx) && dy == Math.rint(dy)) { in offset()
[all …]
DMatrix.java64 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 …]
/frameworks/native/libs/ui/
DRegion.cpp428 Region& Region::orSelf(const Region& rhs, int dx, int dy) { in orSelf() argument
429 return operationSelf(rhs, dx, dy, op_or); in orSelf()
431 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { in xorSelf() argument
432 return operationSelf(rhs, dx, dy, op_xor); in xorSelf()
434 Region& Region::andSelf(const Region& rhs, int dx, int dy) { in andSelf() argument
435 return operationSelf(rhs, dx, dy, op_and); in andSelf()
437 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { in subtractSelf() argument
438 return operationSelf(rhs, dx, dy, op_nand); in subtractSelf()
440 Region& Region::operationSelf(const Region& rhs, int dx, int dy, uint32_t op) { in operationSelf() argument
442 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
[all …]
/frameworks/base/core/java/android/transition/
DPatternPathMotion.java119 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()
DArcMotion.java210 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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DRelativeTouchListener.kt56 dy: Float in onDown()
76 dy: Float, in onDown()
99 val dy = ev.rawY - touchDown.y in onDown() constant
123 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { in onDown()
129 onMove(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy) in onDown()
136 onUp(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy, in onDown()
DBubblesNavBarMotionEventHandler.java66 float dy = motionEvent.getY() - mTouchDown.y; in onMotionEvent() local
79 if (!mInterceptingTouches && Math.hypot(dx, dy) > mTouchSlop) { in onMotionEvent()
85 mMotionEventListener.onMove(dx, dy); in onMotionEvent()
160 void onMove(float dx, float dy); in onMove() argument
/frameworks/native/libs/ui/include_private/ui/
DRegionHelper.h50 TYPE dy; member
52 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) {} in region()
53 inline region(RECT const* _r, size_t _c) : rects(_r), count(_c), dx(), dy() {} in region()
55 : rects(_r), count(_c), dx(_dx), dy(_dy) {} in region()
153 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner()
154 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner()
157 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner()
158 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; in Spanner()
189 aTop = rects->top + reg.dy; in advance()
190 aBottom = rects->bottom + reg.dy; in advance()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java344 final float dy = y - mInitialTouchY; in onInterceptTouchEvent() local
345 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null && in onInterceptTouchEvent()
350 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onInterceptTouchEvent()
422 final float dy = y - mInitialTouchY; in onTouchEvent() local
423 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) { in onTouchEvent()
426 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onTouchEvent()
430 final float dy = y - mLastTouchY; in onTouchEvent() local
431 if (dy > 0 && isNestedListChildScrolled()) { in onTouchEvent()
432 mNestedListChild.smoothScrollBy((int) -dy, 0); in onTouchEvent()
433 } else if (dy > 0 && isNestedRecyclerChildScrolled()) { in onTouchEvent()
[all …]
DLinearSmoothScroller.java113 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()
DSlidingTab.java248 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom() in hide() local
251 Animation trans = new TranslateAnimation(0, dx, 0, dy); in hide()
266 int dy = horiz ? 0: (alignment == ALIGN_TOP ? tab.getHeight() : -tab.getHeight()); in show() local
268 Animation trans = new TranslateAnimation(-dx, 0, -dy, 0); in show()
309 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getTop() in reset() local
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;
[all …]
/frameworks/base/core/java/android/widget/
DScroller.java140 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()
393 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
401 mFinalY = startY + dy; in startScroll()
403 mDeltaY = dy; in startScroll()
433 float dy = (float) (mFinalY - mStartY); in fling() local
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DViewMatrix.java264 int dy = ((dir >> 8) & 0xF); in look() local
269 if (dy > 1) { in look()
270 dy = -1; in look()
276 mLookPoint[1] + 2 * mScreenWidth * dy, in look()
278 double[] zv = new double[]{-dx, -dy, -dz}; in look()
355 double dy = (cy - y) / ballRadius; in ballToVec() local
356 double scale = dx * dx + dy * dy; in ballToVec()
360 dy = dy / scale; in ballToVec()
363 double dz = Math.sqrt(Math.abs(1 - (dx * dx + dy * dy))); in ballToVec()
365 v[1] = dy; in ballToVec()
/frameworks/av/media/codecs/m4v_h263/dec/src/
Dmb_motion_comp.cpp151 int dx, dy; in MBMotionComp() local
192 dy = py[0] = py[1] = py[2] = py[3] = video->motY[imv]; in MBMotionComp()
205 if ((dy & 3) == 0) in MBMotionComp()
207 dy = dy >> 1; in MBMotionComp()
212 dy = (dy >> 1) | 1; in MBMotionComp()
229 dy = PV_SIGN(xsum) * (roundtab16[(PV_ABS(xsum)) & 0xF] + in MBMotionComp()
425 ypred = ypos + dy; in MBMotionComp()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DRectangle.java61 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()
/frameworks/minikin/include/minikin/
DMinikinRect.h44 void offset(float dx, float dy) { in offset()
46 mTop += dy; in offset()
48 mBottom += dy; in offset()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
Dfocus_peak.rscript42 int dy = y + ((y == 0) ? 1 : -1);
43 tmp = rsGetElementAtYuv_uchar_Y(gCurrentFrame, x, dy) - curPixel.r;
45 tmp = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, dy) - curPixel.g;
47 tmp = rsGetElementAtYuv_uchar_V(gCurrentFrame, x, dy) - curPixel.b;
/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsUtil.java185 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()
/frameworks/base/core/java/android/view/animation/
DTranslateYAnimation.java54 float dy = mFromYDelta + ((mToYDelta - mFromYDelta) * interpolatedTime); in applyTransformation() local
55 t.getMatrix().setTranslate(mTmpValues[Matrix.MTRANS_X], dy); in applyTransformation()

123456