/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 | 92 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/ |
D | Region.h | 92 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/ |
D | Region.h | 92 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/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/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStartControllerTests.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.eq; 21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spy; 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.times; 24 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/base/graphics/java/android/graphics/ |
D | Path.java | 368 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 …]
|
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 …]
|
/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/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/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | RelativeTouchListener.kt | 57 dx: Float, in onDown() 77 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/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/av/media/codecs/m4v_h263/dec/src/ |
D | mb_motion_comp.cpp | 151 int dx, dy; in MBMotionComp() local 191 dx = px[0] = px[1] = px[2] = px[3] = video->motX[imv]; in MBMotionComp() 193 if ((dx & 3) == 0) in MBMotionComp() 195 dx = dx >> 1; in MBMotionComp() 200 dx = (dx >> 1) | 1; in MBMotionComp() 222 dx = PV_SIGN(xsum) * (roundtab16[(PV_ABS(xsum)) & 0xF] + in MBMotionComp() 420 xpred = xpos + dx; in MBMotionComp()
|
/frameworks/base/services/tests/mockingservicestests/utils-mockito/com/android/server/extendedtestutils/ |
D | ExtendedMockitoUtils.kt | 19 import com.android.dx.mockito.inline.extended.ExtendedMockito 20 import com.android.dx.mockito.inline.extended.MockedMethod 21 import com.android.dx.mockito.inline.extended.StaticCapableStubber
|
/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()
|