Searched refs:dx (Results 26 - 50 of 224) sorted by relevance

123456789

/frameworks/base/graphics/java/android/graphics/
H A DPath.java343 * @param dx The amount to add to the x-coordinate of the end of the
348 public void rMoveTo(float dx, float dy) { argument
349 nRMoveTo(mNativePath, dx, dy);
370 * @param dx The amount to add to the x-coordinate of the previous point on
375 public void rLineTo(float dx, float dy) { argument
377 nRLineTo(mNativePath, dx, dy);
670 * Add a copy of src to the path, offset by (dx,dy)
673 * @param dx The amount to translate the path in X as it is added
675 public void addPath(Path src, float dx, float dy) { argument
677 nAddPath(mNativePath, src.mNativePath, dx, d
708 offset(float dx, float dy, @Nullable Path dst) argument
723 offset(float dx, float dy) argument
742 setLastPoint(float dx, float dy) argument
828 nRMoveTo(long nPath, float dx, float dy) argument
830 nRLineTo(long nPath, float dx, float dy) argument
851 nAddPath(long nPath, long src, float dx, float dy) argument
854 nOffset(long nPath, float dx, float dy) argument
855 nSetLastPoint(long nPath, float dx, float dy) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DLinearSmoothScroller.java112 final int dx = calculateDxToMakeVisible(targetView, getHorizontalSnapPreference());
114 final int distance = (int) Math.sqrt(dx * dx + dy * dy);
117 action.update(-dx, -dy, time, mDecelerateInterpolator);
125 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { argument
132 && ((mTargetVector.x * dx < 0 || mTargetVector.y * dy < 0))) {
136 mInterimTargetDx = clampApplyScroll(mInterimTargetDx, dx);
169 * @param dx Distance to scroll
173 protected int calculateTimeForDeceleration(int dx) { argument
179 return (int) Math.ceil(calculateTimeForScrolling(dx) /
189 calculateTimeForScrolling(int dx) argument
[all...]
H A DNestedScrollingChild.java162 * @param dx Horizontal scroll distance in pixels
164 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx
173 boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow); argument
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearSmoothScroller.java112 final int dx = calculateDxToMakeVisible(targetView, getHorizontalSnapPreference());
114 final int distance = (int) Math.sqrt(dx * dx + dy * dy);
117 action.update(-dx, -dy, time, mDecelerateInterpolator);
125 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { argument
132 && ((mTargetVector.x * dx < 0 || mTargetVector.y * dy < 0))) {
136 mInterimTargetDx = clampApplyScroll(mInterimTargetDx, dx);
169 * @param dx Distance to scroll
173 protected int calculateTimeForDeceleration(int dx) { argument
179 return (int) Math.ceil(calculateTimeForScrolling(dx) /
189 calculateTimeForScrolling(int dx) argument
[all...]
H A DSnapHelper.java57 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
58 if (dx != 0 || dy != 0) {
218 final int dx = snapDistances[0];
220 final int time = calculateTimeForDeceleration(Math.max(Math.abs(dx), Math.abs(dy)));
222 action.update(dx, dy, time, mDecelerateInterpolator);
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DViewDragHelper.java167 * @param dx Change in X position from the last call
170 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} argument
300 * @param dx Proposed change in position for left
303 public int clampViewPositionHorizontal(View child, int left, int dx) { argument
588 final int dx = finalLeft - startLeft;
591 if (dx == 0 && dy == 0) {
598 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel);
599 mScroller.startScroll(startLeft, startTop, dx, dy, duration);
605 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { argument
608 final int absDx = Math.abs(dx);
921 canScroll(View v, boolean checkV, int dx, int dy, int x, int y) argument
1243 reportNewEdgeDrags(float dx, float dy, int pointerId) argument
1291 checkTouchSlop(View child, float dx, float dy) argument
1412 dragTo(int left, int top, int dx, int dy) argument
[all...]
/frameworks/minikin/include/minikin/
H A DMinikinFont.h72 void offset(float dx, float dy) { argument
73 mLeft += dx;
75 mRight += dx;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNoisyVelocityTracker.java80 final float dx = (event.x - last.x);
84 " [%d] (t=%d %.1f,%.1f) dx=%.1f dy=%.1f dt=%f vx=%.1f vy=%.1f",
86 dx, dy, dt,
87 (dx/dt),
96 mVX += weight * dx / dt;
/frameworks/support/compat/java/android/support/v4/widget/
H A DScrollerCompat.java154 * @param dx Horizontal distance to travel. Positive numbers will scroll the
162 public void startScroll(int startX, int startY, int dx, int dy) { argument
163 mScroller.startScroll(startX, startY, dx, dy);
173 * @param dx Horizontal distance to travel. Positive numbers will scroll the
182 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
183 mScroller.startScroll(startX, startY, dx, dy, duration);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerCacheTest.java44 public LinearLayoutManagerCacheTest(Config config, int dx, int dy) { argument
46 mDx = dx;
50 @Parameterized.Parameters(name = "config:{0},dx:{1},dy:{2}")
55 for (int dx : new int[] {-1, 0, 1}) {
57 result.add(new Object[]{config, dx, dy});
/frameworks/native/libs/ui/
H A DRegion.cpp376 Region& Region::orSelf(const Region& rhs, int dx, int dy) { argument
377 return operationSelf(rhs, dx, dy, op_or);
379 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { argument
380 return operationSelf(rhs, dx, dy, op_xor);
382 Region& Region::andSelf(const Region& rhs, int dx, int dy) { argument
383 return operationSelf(rhs, dx, dy, op_and);
385 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { argument
386 return operationSelf(rhs, dx, dy, op_nand);
388 Region& Region::operationSelf(const Region& rhs, int dx, int dy, uint32_t op) { argument
390 boolean_operation(op, *this, lhs, rhs, dx, d
396 merge(const Region& rhs, int dx, int dy) const argument
399 mergeExclusive(const Region& rhs, int dx, int dy) const argument
402 intersect(const Region& rhs, int dx, int dy) const argument
405 subtract(const Region& rhs, int dx, int dy) const argument
408 operation(const Region& rhs, int dx, int dy, uint32_t op) const argument
586 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Region& rhs, int dx, int dy) argument
696 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Rect& rhs, int dx, int dy) argument
737 translate(Region& reg, int dx, int dy) argument
756 translate(Region& dst, const Region& reg, int dx, int dy) argument
[all...]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DViewMatrix.java263 int dx = ((dir >> 4) & 0xF);
266 if (dx > 1) {
267 dx = -1;
275 mEyePoint = new double[]{mLookPoint[0] + 2 * mScreenWidth * dx,
278 double[] zv = new double[]{-dx, -dy, -dz};
279 double[] rv = new double[]{(dx == 0) ? 1 : 0, (dx == 0) ? 0 : 1, 0};
354 double dx = (cx - x) / ballRadius;
356 double scale = dx * dx
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
H A DomxVCM4P10_MotionEstimationMB.c379 mvx = pSrcMBInfo->pMV0 [2*PartY + SubPartY][2*PartX + SubPartX].dx;
397 mvx = pSrcMBInfo->pMV0 [2*PartY][2*PartX].dx;
717 pMVPred->dx = pMVArr [BlockY][BlockX - 1].dx;
722 pMVPred->dx =
723 ARM_VCM4P10_MEDIAN(pMVArr [BlockY][BlockX - 1].dx,
724 pMVArr [BlockY - 1][BlockX].dx,
725 pMVArr [BlockY - 1][BlockXPlusOff].dx);
734 pMVPred->dx = pMVArr [BlockY][BlockX - 1].dx;
[all...]
/frameworks/av/media/libeffects/loudness/dsp/core/
H A Dinterpolator_linear.h67 T dx = x - x_data_[cached_index_]; local
68 return y_data_[cached_index_] + (dY * dx) / dX;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpp_semaphore_chroma_inter.cpp29 dx = horizontal component of the motion vector (int)
116 int dx, /* i */
188 if (((dx&0xF) != 0) && (mmvx + 1 < (mvwidth >> 1) - 1))
189 { /* dx is not a multiple of 16 */
199 { /* dx is a multiple of 16 */
111 pp_semaphore_chroma_inter( int xpred, int ypred, uint8 *pp_dec_u, uint8 *pstprcTypPrv, int dx, int dy, int mvwidth, int height, int32 size, int mv_loc, uint8 msk_deblock ) argument
H A Dpp_semaphore_luma.cpp33 dx = horizontal component of the motion vector (int)
119 int dx, /* i */
165 if ((dx&0xF) != 0)
166 { /* dx is not a multiple of 16 */
190 { /* dx is a multiple of 16 */
289 if (((dx&0xF) != 0) && (mmvx + 1 < mvwidth - 1))
290 { /* dx is not a multiple of 16 and the block */
324 { /* dx is a multiple of 16 or the block x */
112 pp_semaphore_luma( int xpred, int ypred, uint8 *pp_dec_y, uint8 *pstprcTypPrv, int *ll, int *mv_loc, int dx, int dy, int mvwidth, int width, int height ) argument
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/
H A DSubActivity.java43 int dx = getWindowManager().getDefaultDisplay().getWidth();
47 child.setTranslationX(dx * dir);
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DRectangle.java62 Point dx = vAxis.rotated90(1).scaledTo(size.x / 2.0f);
63 return new Rectangle(center.minus(dx).minus(dy),
64 center.plus(dx).minus(dy),
65 center.minus(dx).plus(dy),
66 center.plus(dx).plus(dy));
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java235 /*package*/ static void nRMoveTo(long nPath, float dx, float dy) { argument
241 pathDelegate.rMoveTo(dx, dy);
255 /*package*/ static void nRLineTo(long nPath, float dx, float dy) { argument
261 pathDelegate.rLineTo(dx, dy);
408 /*package*/ static void nAddPath(long nPath, long src, float dx, float dy) { argument
409 addPath(nPath, src, AffineTransform.getTranslateInstance(dx, dy));
428 /*package*/ static void nOffset(long nPath, float dx, float dy) { argument
434 pathDelegate.offset(dx, dy);
438 /*package*/ static void nSetLastPoint(long nPath, float dx, float dy) { argument
444 pathDelegate.mLastX = dx;
656 rMoveTo(float dx, float dy) argument
687 rLineTo(float dx, float dy) argument
859 offset(float dx, float dy) argument
[all...]
/frameworks/support/compat/java/android/support/v4/view/
H A DViewParentCompat.java69 public void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, argument
72 ((NestedScrollingParent) parent).onNestedPreScroll(target, dx, dy, consumed);
156 public void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, argument
159 parent.onNestedPreScroll(target, dx, dy, consumed);
308 * @param dx Horizontal scroll distance in pixels
312 public static void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, argument
314 onNestedPreScroll(parent, target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);
448 * should report how any pixels of the scroll reported by dx, dy were consumed in the
449 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy.
454 * @param dx Horizonta
459 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed, int type) argument
[all...]
/frameworks/support/wear/src/android/support/wear/widget/
H A DSwipeDismissLayout.java267 float dx = ev.getRawX() - mDownX;
271 if (dx != 0 && mDownX >= mGestureThresholdPx && canScroll(this, false, dx, x, y)) {
298 * @param dx distance traveled in the x direction, from the initial touch down
302 private boolean isPotentialSwipe(float dx, float dy) { argument
303 return (dx * dx) + (dy * dy) > mSlop * mSlop;
420 * Tests scrollability within child views of v in the direction of dx.
425 * @param dx delta scrolled in pixels. Only the sign of this is used
428 * @return {@code true} if child views of v can be scrolled by delta of dx
430 canScroll(View v, boolean checkV, float dx, float x, float y) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DarmVCM4P2_BlockMatch_Half.c107 pTempSrcRefBuf = pSrcRefBuf + (refWidth * (pSrcDstMV->dy/2)) + (pSrcDstMV->dx/2);
162 + (pSrcDstMV->dx/2);
195 pSrcDstMV->dx += halfPelX;
H A DarmVCM4P2_BlockMatch_Integer.c143 pDstMV->dx = -fromX;
167 if (armVCM4P2_CompareMV (x, y, candSAD, pDstMV->dx/2, pDstMV->dy/2, minSAD))
171 pDstMV->dx = x*2;
/frameworks/support/transition/src/android/support/transition/
H A DMatrixUtils.java41 public void setTranslate(float dx, float dy) {
92 public boolean preTranslate(float dx, float dy) {
140 public boolean postTranslate(float dx, float dy) {
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/
H A DNestedScrollingParent2Adapter.java48 public void onNestedPreScroll(@NonNull View target, int dx, int dy, argument
63 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
64 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);

Completed in 699 milliseconds

123456789