Searched defs:dx (Results 26 - 50 of 116) sorted by relevance

12345

/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.cpp79 const float dx = width * (ratio / current_ratio - 1.0f); local
80 x -= dx / 2.0f;
81 width += dx;
97 const float dx = width * (length / current_length - 1.0f); local
98 x -= dx / 2.0f;
99 width += dx;
122 const float dx = width * (f - 1.0f); local
123 x -= dx / 2.0f;
124 width += dx;
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp78 const float dx = width * (ratio / current_ratio - 1.0f); local
79 x -= dx / 2.0f;
80 width += dx;
96 const float dx = width * (length / current_length - 1.0f); local
97 x -= dx / 2.0f;
98 width += dx;
121 const float dx = width * (f - 1.0f); local
122 x -= dx / 2.0f;
123 width += dx;
144 Point dx
[all...]
/frameworks/support/v4/gingerbread/android/support/v4/widget/
H A DScrollerCompatGingerbread.java46 public static void startScroll(Object scroller, int startX, int startY, int dx, int dy) { argument
47 ((OverScroller) scroller).startScroll(startX, startY, dx, dy);
50 public static void startScroll(Object scroller, int startX, int startY, int dx, int dy, argument
52 ((OverScroller) scroller).startScroll(startX, startY, dx, dy, duration);
/frameworks/support/v4/java/android/support/v4/view/
H A DNestedScrollingChildHelper.java189 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument
191 if (dx != 0 || dy != 0) {
208 ViewParentCompat.onNestedPreScroll(mNestedScrollingParent, mView, dx, dy, consumed);
H A DViewParentCompat.java45 void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed); argument
103 public void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, argument
106 ((NestedScrollingParent) parent).onNestedPreScroll(target, dx, dy, consumed);
182 public void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, argument
184 ViewParentCompatLollipop.onNestedPreScroll(parent, target, dx, dy, consumed);
341 * should report how any pixels of the scroll reported by dx, dy were consumed in the
342 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy.
347 * @param dx Horizontal scroll distance in pixels
351 public static void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, argument
353 IMPL.onNestedPreScroll(parent, target, dx, d
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dmb_motion_comp.cpp146 /* Motion vector (dx,dy) in half-pel resolution */
147 int dx, dy; local
195 dx = px[0] = px[1] = px[2] = px[3] = video->motX[imv];
197 if ((dx & 3) == 0)
199 dx = dx >> 1;
204 dx = (dx >> 1) | 1;
226 dx = PV_SIGN(xsum) * (roundtab16[(PV_ABS(xsum)) & 0xF] +
416 video->pstprcTypPrv, dx, d
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/
H A DarmVCM4P10_Interpolate_Chroma_s.s43 dx RN 6 label
119 M_LDR dx, Dx
122 ;// EightMinusdx = 8 - dx
126 ;// BCoeff = dx * EightMinusdy
128 ;// DCoeff = dx * dy
132 RSB EightMinusdx, dx, #8
134 CMN dx,dy
135 ADD dxEightMinusdx, EightMinusdx, dx, LSL #16
144 ;// Checking either of dx and dy being non-zero
/frameworks/base/cmds/input/src/com/android/commands/input/
H A DInput.java223 * @param dx change in x coordinate due to move
226 private void sendMove(int inputSource, float dx, float dy) { argument
228 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, dx, dy, 0.0f);
298 System.err.println(" roll <dx> <dy> (Default: trackball)");
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java380 float dx = points[i + 2] - points[i];
382 sum += Math.hypot(dx, dy);
389 float dx = points[2] - points[0];
391 return (float) Math.hypot(dx, dy) / totalLen;
395 float dx = points[2] - points[0];
397 return (float) Math.hypot(dx, dy) / totalLen;
576 static float[] translate(float[] points, float dx, float dy) { argument
579 points[i] += dx;
/frameworks/base/core/java/com/android/internal/widget/
H A DSwipeDismissLayout.java212 float dx = ev.getRawX() - mDownX;
215 if (dx != 0 && canScroll(this, false, dx, x, y)) {
337 * Tests scrollability within child views of v in the direction of dx.
342 * @param dx Delta scrolled in pixels. Only the sign of this is used.
345 * @return true if child views of v can be scrolled by delta of dx.
347 protected boolean canScroll(View v, boolean checkV, float dx, float x, float y) { argument
357 canScroll(child, true, dx, x + scrollX - child.getLeft(),
364 return checkV && v.canScrollHorizontally((int) -dx);
/frameworks/base/graphics/java/android/graphics/
H A DRect.java286 * Offset the rectangle by adding dx to its left and right coordinates, and
289 * @param dx The amount to add to the rectangle's left and right coordinates
292 public void offset(int dx, int dy) { argument
293 left += dx;
295 right += dx;
314 * Inset the rectangle by (dx,dy). If dx is positive, then the sides are
315 * moved inwards, making the rectangle narrower. If dx is negative, then the
319 * @param dx The amount to add(subtract) from the rectangle's left(right)
322 public void inset(int dx, in argument
[all...]
H A DRectF.java231 * Offset the rectangle by adding dx to its left and right coordinates, and
234 * @param dx The amount to add to the rectangle's left and right coordinates
237 public void offset(float dx, float dy) { argument
238 left += dx;
240 right += dx;
259 * Inset the rectangle by (dx,dy). If dx is positive, then the sides are
260 * moved inwards, making the rectangle narrower. If dx is negative, then the
264 * @param dx The amount to add(subtract) from the rectangle's left(right)
267 public void inset(float dx, floa argument
[all...]
H A DRegion.java218 * Translate the region by [dx, dy]. If the region is empty, do nothing.
220 public void translate(int dx, int dy) { argument
221 translate(dx, dy, null);
225 * Set the dst region to the result of translating this region by [dx, dy].
228 public native void translate(int dx, int dy, Region dst); argument
/frameworks/base/libs/hwui/
H A DRect.h184 void translate(float dx, float dy) { argument
185 left += dx;
186 right += dx;
H A DCanvasState.cpp169 void CanvasState::translate(float dx, float dy, float dz) { argument
170 mSnapshot->transform->translate(dx, dy, dz);
H A DMatrix.cpp431 float dx = x * data[kScaleX] + y * data[kSkewX] + data[kTranslateX]; local
436 x = dx * dz;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java223 /*package*/ static void translate(Region thisRegion, int dx, int dy, Region dst) { argument
239 mtx.translate(dx, dy);
/frameworks/minikin/include/minikin/
H A DMinikinFont.h83 void offset(float dx, float dy) { argument
84 mLeft += dx;
86 mRight += dx;
/frameworks/native/include/private/ui/
H A DRegionHelper.h52 TYPE dx; member in struct:android::region_operator::region
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { }
57 : rects(r), count(c), dx(), dy() { }
58 inline region(RECT const* r, size_t c, TYPE dx, TYPE dy) argument
59 : rects(r), count(c), dx(dx), dy(dy) { }
234 SpannerBase::lhs_head = lhs.rects->left + lhs.dx;
235 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
243 SpannerBase::rhs_head = rhs.rects->left + rhs.dx;
[all...]
/frameworks/support/v4/api21/android/support/v4/view/
H A DViewCompatLollipop.java183 public static boolean dispatchNestedPreScroll(View view, int dx, int dy, int[] consumed, argument
185 return view.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow);
/frameworks/support/v4/java/android/support/v4/widget/
H A DScrollerCompat.java45 void startScroll(Object scroller, int startX, int startY, int dx, int dy); argument
46 void startScroll(Object scroller, int startX, int startY, int dx, int dy, int duration); argument
97 public void startScroll(Object scroller, int startX, int startY, int dx, int dy) { argument
98 ((Scroller) scroller).startScroll(startX, startY, dx, dy);
102 public void startScroll(Object scroller, int startX, int startY, int dx, int dy, argument
104 ((Scroller) scroller).startScroll(startX, startY, dx, dy, duration);
190 public void startScroll(Object scroller, int startX, int startY, int dx, int dy) { argument
191 ScrollerCompatGingerbread.startScroll(scroller, startX, startY, dx, dy);
195 public void startScroll(Object scroller, int startX, int startY, int dx, int dy, argument
197 ScrollerCompatGingerbread.startScroll(scroller, startX, startY, dx, d
361 startScroll(int startX, int startY, int dx, int dy) argument
378 startScroll(int startX, int startY, int dx, int dy, int duration) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearSmoothScroller.java107 final int dx = calculateDxToMakeVisible(targetView, getHorizontalSnapPreference());
109 final int distance = (int) Math.sqrt(dx * dx + dy * dy);
112 action.update(-dx, -dy, time, mDecelerateInterpolator);
120 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { argument
127 && ((mTargetVector.x * dx < 0 || mTargetVector.y * dy < 0))) {
131 mInterimTargetDx = clampApplyScroll(mInterimTargetDx, dx);
164 * @param dx Distance to scroll
168 protected int calculateTimeForDeceleration(int dx) { argument
174 return (int) Math.ceil(calculateTimeForScrolling(dx) /
184 calculateTimeForScrolling(int dx) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DTestedFrameLayout.java153 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
156 consumed[0] = dx;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src/
H A DarmVCM4P10_Interpolate_Chroma_s.s57 dx RN 6 label
147 M_LDRD dx, dy, Dx
150 ;// EightMinusdx = 8 - dx
154 ;// BCoeff = dx * EightMinusdy
156 ;// DCoeff = dx * dy
158 RSB EightMinusdx, dx, #8
160 CMN dx,dy
169 SMULBB BCoeff, dx, EightMinusdy
172 SMULBB DCoeff, dx, dy
/frameworks/base/core/java/android/view/
H A DViewParent.java548 * report how any pixels of the scroll reported by dx, dy were consumed in the
549 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy.
554 * @param dx Horizontal scroll distance in pixels
558 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed); argument

Completed in 673 milliseconds

12345