/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/minikin/include/minikin/ |
D | MinikinRect.h | 38 void offset(float dx, float dy) { in offset() 39 mLeft += dx; in offset() 41 mRight += dx; in offset() 46 void join(float l, float t, float r, float b, float dx, float dy) { in join() 48 mLeft = l + dx; in join() 50 mRight = r + dx; in join() 53 mLeft = std::min(mLeft, l + dx); in join() 55 mRight = std::max(mRight, r + dx); in join() 62 void join(const MinikinRect& r, float dx, float dy) { in join() 63 return join(r.mLeft, r.mTop, r.mRight, r.mBottom, dx, dy); in join()
|
/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/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_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/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/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/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 | TestDisplayContent.java | 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.any; 25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.anyBoolean; 26 import static com.android.dx.mockito.inline.extended.ExtendedMockito.anyInt; 27 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 28 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing; 29 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 30 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 31 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spyOn;
|
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;
|
/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/graphics/java/android/graphics/ |
D | Path.java | 356 public void rMoveTo(float dx, float dy) { in rMoveTo() argument 357 nRMoveTo(mNativePath, dx, dy); in rMoveTo() 382 public void rLineTo(float dx, float dy) { in rLineTo() argument 383 nRLineTo(mNativePath, dx, dy); in rLineTo() 700 public void addPath(@NonNull Path src, float dx, float dy) { in addPath() argument 701 nAddPath(mNativePath, src.mNativePath, dx, dy); in addPath() 730 public void offset(float dx, float dy, @Nullable Path dst) { in offset() argument 736 dst.offset(dx, dy); in offset() 745 public void offset(float dx, float dy) { in offset() argument 746 nOffset(mNativePath, dx, dy); in offset() [all …]
|
/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/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | RelativeTouchListener.kt | 55 dx: Float, in onDown() 75 dx: Float, in onDown() 104 val dx = touchDown?.let { ev.rawX - it.x } ?: 0f in onTouch() constant 130 if (!movedEnough && hypot(dx, dy) > touchSlop && !performedLongClick) { in onTouch() 136 onMove(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy) in onTouch() 144 onUp(v, ev, viewPositionOnTouchDown.x, viewPositionOnTouchDown.y, dx, dy, in onTouch()
|
/frameworks/base/core/tests/mockingcoretests/src/android/widget/ |
D | ToastTest.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.any; 20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.anyBoolean; 21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.anyInt; 22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.anyString; 23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 46 import com.android.dx.mockito.inline.extended.ExtendedMockito;
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | PhoneWindowManagerTests.java | 26 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 27 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing; 28 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn; 29 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mock; 30 import static com.android.dx.mockito.inline.extended.ExtendedMockito.never; 31 import static com.android.dx.mockito.inline.extended.ExtendedMockito.reset; 32 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spy; 33 import static com.android.dx.mockito.inline.extended.ExtendedMockito.spyOn; 34 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify; 35 import static com.android.dx.mockito.inline.extended.ExtendedMockito.when;
|
/frameworks/av/media/module/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/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/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/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | AodBurnInLayer.kt | 78 override fun setTranslationX(dx: Float) { in setTranslationX() 79 _translationX = dx in setTranslationX() 80 super.setTranslationX(dx) in setTranslationX()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubblesNavBarMotionEventHandler.java | 66 float dx = motionEvent.getX() - mTouchDown.x; 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
|