/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 84 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/native/libs/ui/include/ui/ |
D | Region.h | 90 Region& translateSelf(int dx, int dy); 92 Region& orSelf(const Region& rhs, int dx, int dy); 93 Region& xorSelf(const Region& rhs, int dx, int dy); 94 Region& andSelf(const Region& rhs, int dx, int dy); 95 Region& subtractSelf(const Region& rhs, int dx, int dy); 99 const Region translate(int dx, int dy) const WARN_UNUSED; 100 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED; 101 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED; 102 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED; 103 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED; [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Region.h | 90 Region& translateSelf(int dx, int dy); 92 Region& orSelf(const Region& rhs, int dx, int dy); 93 Region& xorSelf(const Region& rhs, int dx, int dy); 94 Region& andSelf(const Region& rhs, int dx, int dy); 95 Region& subtractSelf(const Region& rhs, int dx, int dy); 99 const Region translate(int dx, int dy) const WARN_UNUSED; 100 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED; 101 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED; 102 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED; 103 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED; [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
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()
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | AmbientShadowVertexCalculator.java | 68 float dy = rays.dy[i]; in generateVertex() local 71 dx, dy, 3); in generateVertex() 86 float dy = rays.dy[i]; in generateVertex() local 96 mVertex[p * 2 + 1] = dy * t + cy; in generateVertex() 147 public final float[] dy; field in AmbientShadowVertexCalculator.Rays 152 dy = new float[rays]; in Rays() 157 dy[i] = (float) Math.cos(deltaAngle * i); in Rays()
|
/frameworks/native/libs/ui/ |
D | Region.cpp | 400 Region& Region::orSelf(const Region& rhs, int dx, int dy) { in orSelf() argument 401 return operationSelf(rhs, dx, dy, op_or); in orSelf() 403 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { in xorSelf() argument 404 return operationSelf(rhs, dx, dy, op_xor); in xorSelf() 406 Region& Region::andSelf(const Region& rhs, int dx, int dy) { in andSelf() argument 407 return operationSelf(rhs, dx, dy, op_and); in andSelf() 409 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { in subtractSelf() argument 410 return operationSelf(rhs, dx, dy, op_nand); in subtractSelf() 412 Region& Region::operationSelf(const Region& rhs, int dx, int dy, uint32_t op) { in operationSelf() argument 414 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Path.java | 361 public void rMoveTo(float dx, float dy) { in rMoveTo() argument 362 nRMoveTo(mNativePath, dx, dy); in rMoveTo() 388 public void rLineTo(float dx, float dy) { in rLineTo() argument 390 nRLineTo(mNativePath, dx, dy); in rLineTo() 688 public void addPath(@NonNull Path src, float dx, float dy) { in addPath() argument 690 nAddPath(mNativePath, src.mNativePath, dx, dy); in addPath() 721 public void offset(float dx, float dy, @Nullable Path dst) { in offset() argument 727 dst.offset(dx, dy); in offset() 736 public void offset(float dx, float dy) { in offset() argument 741 if (isSimplePath && dx == Math.rint(dx) && dy == Math.rint(dy)) { in offset() [all …]
|
D | Matrix.java | 61 public void setTranslate(float dx, float dy) { 112 public boolean preTranslate(float dx, float dy) { 160 public boolean postTranslate(float dx, float dy) { 320 public void setTranslate(float dx, float dy) { in setTranslate() argument 321 nSetTranslate(native_instance, dx, dy); in setTranslate() 400 public boolean preTranslate(float dx, float dy) { in preTranslate() argument 401 nPreTranslate(native_instance, dx, dy); in preTranslate() 464 public boolean postTranslate(float dx, float dy) { in postTranslate() argument 465 nPostTranslate(native_instance, dx, dy); in postTranslate() 887 private static native void nSetTranslate(long nObject, float dx, float dy); in nSetTranslate() argument [all …]
|
/frameworks/base/core/java/android/transition/ |
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()
|
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()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ResolverDrawerLayout.java | 298 final float dy = y - mInitialTouchY; in onInterceptTouchEvent() local 299 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null && in onInterceptTouchEvent() 304 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onInterceptTouchEvent() 367 final float dy = y - mInitialTouchY; in onTouchEvent() local 368 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) { in onTouchEvent() 371 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onTouchEvent() 375 final float dy = y - mLastTouchY; in onTouchEvent() local 376 if (dy > 0 && isNestedChildScrolled()) { in onTouchEvent() 377 mNestedScrollingChild.smoothScrollBy((int) -dy, 0); in onTouchEvent() 379 performDrag(dy); in onTouchEvent() [all …]
|
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()
|
D | SlidingTab.java | 251 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom() in hide() local 254 Animation trans = new TranslateAnimation(0, dx, 0, dy); in hide() 269 int dy = horiz ? 0: (alignment == ALIGN_TOP ? tab.getHeight() : -tab.getHeight()); in show() local 271 Animation trans = new TranslateAnimation(-dx, 0, -dy, 0); in show() 312 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getTop() in reset() local 315 TranslateAnimation trans = new TranslateAnimation(0, dx, 0, dy); in reset() 325 text.offsetTopAndBottom(dy); in reset() 326 tab.offsetTopAndBottom(dy); in reset() 655 final int dy; 664 dy = 0; [all …]
|
/frameworks/native/include/private/ui/ |
D | RegionHelper.h | 56 TYPE dy; member 58 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { } in region() 60 : rects(_r), count(_c), dx(), dy() { } in region() 62 : rects(_r), count(_c), dx(_dx), dy(_dy) { } in region() 171 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner() 172 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner() 175 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner() 176 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; in Spanner() 211 aTop = rects->top + reg.dy; in advance() 212 aBottom = rects->bottom + reg.dy; in advance()
|
/frameworks/base/core/java/android/widget/ |
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() 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/layoutlib/bridge/src/android/view/math/ |
D | Math3DHelper.java | 32 float dx, float dy, int d) { in rayIntersectPoly() argument 39 float div = (dx * (p1y - p2y) + dy * (p2x - p1x)); in rayIntersectPoly() 41 float t = (dx * (p1y - py) + dy * (px - p1x)) / div; in rayIntersectPoly() 246 float dy = poly2[i * 2 + 1] - poly1[j * 2 + 1]; in intersection() local 248 if (dx * dx + dy * dy < 0.01) { in intersection() 278 float dy = poly[i * 2 + 1] - poly[(i - 1) * 2 + 1]; in intersection() local 279 if (dx * dx + dy * dy >= 0.01) { in intersection() 424 float dy = (x3 * y4 - y3 * x4); in lineIntersection() local 425 float x = (dx * (x3 - x4) - (x1 - x2) * dy) / d; in lineIntersection() 426 float y = (dx * (y3 - y4) - (y1 - y2) * dy) / d; in lineIntersection() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Path_Delegate.java | 239 /*package*/ static void nRMoveTo(long nPath, float dx, float dy) { in nRMoveTo() argument 245 pathDelegate.rMoveTo(dx, dy); in nRMoveTo() 259 /*package*/ static void nRLineTo(long nPath, float dx, float dy) { in nRLineTo() argument 265 pathDelegate.rLineTo(dx, dy); in nRLineTo() 412 /*package*/ static void nAddPath(long nPath, long src, float dx, float dy) { in nAddPath() argument 413 addPath(nPath, src, AffineTransform.getTranslateInstance(dx, dy)); in nAddPath() 432 /*package*/ static void nOffset(long nPath, float dx, float dy) { in nOffset() argument 438 pathDelegate.offset(dx, dy); in nOffset() 442 /*package*/ static void nSetLastPoint(long nPath, float dx, float dy) { in nSetLastPoint() argument 449 pathDelegate.mLastY = dy; in nSetLastPoint() [all …]
|
D | SweepGradient_Delegate.java | 178 float dy = pt2[1]; in getRaster() local 182 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); in getRaster() 183 } else if (dy == 0) { in getRaster() 186 angle = (float) Math.atan(dy / dx); in getRaster() 188 if (dy < 0) { in getRaster()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | ViewMatrix.java | 264 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/libstagefright/codecs/m4v_h263/dec/src/ |
D | mb_motion_comp.cpp | 151 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/ |
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()
|
/frameworks/minikin/include/minikin/ |
D | MinikinRect.h | 43 void offset(float dx, float dy) { in offset() 45 mTop += dy; in offset() 47 mBottom += dy; in offset()
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | focus_peak.rscript | 42 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/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | RSTestCore.java | 194 int dy = mLastY - y; in onActionMove() local 196 if (Math.abs(dy) <= 2) { in onActionMove() 197 dy = 0; in onActionMove() 200 mScript.set_gDY(dy); in onActionMove()
|
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/ |
D | TestLatencyView.java | 99 float x, y, dx, dy; in onDrawFrame() local 105 dy = mDY; in onDrawFrame() 111 dy = dy * MS_PER_FRAME / dt; in onDrawFrame() 120 float sy = (y + dy * step) * mScaleY + mOffsetY; in onDrawFrame()
|