/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 80 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio() local 81 x -= dx / 2.0f; in ExpandToAspectRatio() 82 width += dx; in ExpandToAspectRatio() 98 const float dx = width * (length / current_length - 1.0f); in ExpandToMinLength() local 99 x -= dx / 2.0f; in ExpandToMinLength() 100 width += dx; in ExpandToMinLength() 123 const float dx = width * (f - 1.0f); in ScaleWithLengthLimit() local 124 x -= dx / 2.0f; in ScaleWithLengthLimit() 125 width += dx; in ScaleWithLengthLimit() 146 Point dx = dy; in FromCenterAxisAndLengths() local [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | PhoneWindowManagerTests.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing; 20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.never; 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.reset; 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spy; 25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spyOn; 26 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; 27 import static com.android.dx.mockito.inline.extended.ExtendedMockito.when;
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.cpp | 79 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio() local 80 x -= dx / 2.0f; in ExpandToAspectRatio() 81 width += dx; in ExpandToAspectRatio() 97 const float dx = width * (length / current_length - 1.0f); in ExpandToMinLength() local 98 x -= dx / 2.0f; in ExpandToMinLength() 99 width += dx; in ExpandToMinLength() 122 const float dx = width * (f - 1.0f); in ScaleWithLengthLimit() local 123 x -= dx / 2.0f; in ScaleWithLengthLimit() 124 width += dx; in ScaleWithLengthLimit()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Region.h | 91 Region& translateSelf(int dx, int dy); 93 Region& orSelf(const Region& rhs, int dx, int dy); 94 Region& xorSelf(const Region& rhs, int dx, int dy); 95 Region& andSelf(const Region& rhs, int dx, int dy); 96 Region& subtractSelf(const Region& rhs, int dx, int dy); 100 const Region translate(int dx, int dy) const WARN_UNUSED; 101 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED; 102 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED; 103 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED; 104 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED; [all …]
|
/frameworks/native/libs/ui/include/ui/ |
D | Region.h | 91 Region& translateSelf(int dx, int dy); 93 Region& orSelf(const Region& rhs, int dx, int dy); 94 Region& xorSelf(const Region& rhs, int dx, int dy); 95 Region& andSelf(const Region& rhs, int dx, int dy); 96 Region& subtractSelf(const Region& rhs, int dx, int dy); 100 const Region translate(int dx, int dy) const WARN_UNUSED; 101 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED; 102 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED; 103 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED; 104 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED; [all …]
|
/frameworks/native/include/ui/ |
D | Region.h | 91 Region& translateSelf(int dx, int dy); 93 Region& orSelf(const Region& rhs, int dx, int dy); 94 Region& xorSelf(const Region& rhs, int dx, int dy); 95 Region& andSelf(const Region& rhs, int dx, int dy); 96 Region& subtractSelf(const Region& rhs, int dx, int dy); 100 const Region translate(int dx, int dy) const WARN_UNUSED; 101 const Region merge(const Region& rhs, int dx, int dy) const WARN_UNUSED; 102 const Region mergeExclusive(const Region& rhs, int dx, int dy) const WARN_UNUSED; 103 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED; 104 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED; [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearSmoothScroller.java | 112 final int dx = calculateDxToMakeVisible(targetView, getHorizontalSnapPreference()); 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() 136 mInterimTargetDx = clampApplyScroll(mInterimTargetDx, dx); in onSeekTargetStep() 173 protected int calculateTimeForDeceleration(int dx) { in calculateTimeForDeceleration() argument 179 return (int) Math.ceil(calculateTimeForScrolling(dx) / .3356); in calculateTimeForDeceleration() 189 protected int calculateTimeForScrolling(int dx) { in calculateTimeForScrolling() argument 193 return (int) Math.ceil(Math.abs(dx) * MILLISECONDS_PER_PX); in calculateTimeForScrolling()
|
/frameworks/native/libs/ui/include_private/ui/ |
D | RegionHelper.h | 49 TYPE dx; 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() 210 SpannerBase::lhs_head = lhs.rects->left + lhs.dx; in prepare() 211 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx; in prepare() 219 SpannerBase::rhs_head = rhs.rects->left + rhs.dx; in prepare() 220 SpannerBase::rhs_tail = rhs.rects->right + rhs.dx; in prepare() 224 SpannerBase::lhs_head = lhs.rects->left + lhs.dx; in prepare() 225 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx; in prepare() [all …]
|
/frameworks/native/libs/ui/ |
D | Region.cpp | 428 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/graphics/java/android/graphics/ |
D | Path.java | 367 public void rMoveTo(float dx, float dy) { in rMoveTo() argument 368 nRMoveTo(mNativePath, dx, dy); in rMoveTo() 394 public void rLineTo(float dx, float dy) { in rLineTo() argument 396 nRLineTo(mNativePath, dx, dy); in rLineTo() 694 public void addPath(@NonNull Path src, float dx, float dy) { in addPath() argument 696 nAddPath(mNativePath, src.mNativePath, dx, dy); in addPath() 727 public void offset(float dx, float dy, @Nullable Path dst) { in offset() argument 733 dst.offset(dx, dy); in offset() 742 public void offset(float dx, float dy) { in offset() argument 747 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/services/tests/mockingservicestests/src/com/android/server/deviceidle/ |
D | BluetoothConstraintTest.java | 18 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder; 20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession; 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.never; 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.times; 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; 25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.when;
|
/frameworks/base/core/java/android/transition/ |
D | PatternPathMotion.java | 118 float dx = endX - startX; in setPatternPath() local 120 float distance = (float) Math.hypot(dx, dy); in setPatternPath() 123 double angle = Math.atan2(dy, dx); in setPatternPath() 131 double dx = endX - startX; 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 | 209 float dx = (startX + endX) / 2; in getPath() local 220 ex = dx; in getPath() 223 ex = dx + (Math.abs(deltaY) * 0.5f * mMinimumVerticalTangent); in getPath() 256 float arcDistX = dx - ex; in getPath() 271 ex = dx + (ratio * (ex - dx)); in getPath()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | RelativeTouchListener.kt | 56 dx: Float, in onDown() 76 dx: Float, in onDown() 100 val dx = ev.rawX - touchDown.x in onDown() constant 125 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { in onDown() 131 onMove(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy) in onDown() 138 onUp(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy, in onDown()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | ViewMatrix.java | 263 int dx = ((dir >> 4) & 0xF); in look() local 266 if (dx > 1) { in look() 267 dx = -1; in look() 275 mEyePoint = new double[]{mLookPoint[0] + 2 * mScreenWidth * dx, in look() 278 double[] zv = new double[]{-dx, -dy, -dz}; in look() 279 double[] rv = new double[]{(dx == 0) ? 1 : 0, (dx == 0) ? 0 : 1, 0}; in look() 354 double dx = (cx - x) / ballRadius; in ballToVec() local 356 double scale = dx * dx + dy * dy; in ballToVec() 359 dx = dx / scale; in ballToVec() 363 double dz = Math.sqrt(Math.abs(1 - (dx * dx + dy * dy))); in ballToVec() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStartControllerTests.java | 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.eq; 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spy; 26 import static com.android.dx.mockito.inline.extended.ExtendedMockito.times; 27 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
|
D | ClientLifecycleManagerTests.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spy; 21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.times; 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
|
D | TaskPositioningControllerTests.java | 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.any; 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.anyInt; 25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 26 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 27 import static com.android.dx.mockito.inline.extended.ExtendedMockito.when;
|
D | TestDisplayContent.java | 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.anyBoolean; 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing; 25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 26 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spyOn;
|
/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 448 pathDelegate.mLastX = dx; in nSetLastPoint() [all …]
|
D | SweepGradient_Delegate.java | 177 float dx = pt2[0]; in getRaster() local 181 if (dx == 0) { in getRaster() 184 angle = (float) (dx < 0 ? Math.PI : 0); in getRaster() 186 angle = (float) Math.atan(dy / dx); in getRaster() 187 if (dx > 0) { in getRaster()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Rectangle.java | 62 Point dx = vAxis.rotated90(1).scaledTo(size.x / 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/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | mb_motion_comp.cpp | 151 int dx, dy; in MBMotionComp() local 199 dx = px[0] = px[1] = px[2] = px[3] = video->motX[imv]; in MBMotionComp() 201 if ((dx & 3) == 0) in MBMotionComp() 203 dx = dx >> 1; in MBMotionComp() 208 dx = (dx >> 1) | 1; in MBMotionComp() 230 dx = PV_SIGN(xsum) * (roundtab16[(PV_ABS(xsum)) & 0xF] + in MBMotionComp() 425 video->pstprcTypPrv, dx, dy, mvwidth, height, size, in MBMotionComp() 465 xpred = xpos + dx; in MBMotionComp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | StateControllerTest.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession; 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spy; 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.when;
|