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

123456789

/frameworks/base/graphics/java/android/graphics/
H A DPath.java338 * @param dx The amount to add to the x-coordinate of the end of the
343 public void rMoveTo(float dx, float dy) { argument
344 native_rMoveTo(mNativePath, dx, dy);
365 * @param dx The amount to add to the x-coordinate of the previous point on
370 public void rLineTo(float dx, float dy) { argument
372 native_rLineTo(mNativePath, dx, dy);
665 * Add a copy of src to the path, offset by (dx,dy)
668 * @param dx The amount to translate the path in X as it is added
670 public void addPath(Path src, float dx, float dy) { argument
672 native_addPath(mNativePath, src.mNativePath, dx, d
703 offset(float dx, float dy, @Nullable Path dst) argument
718 offset(float dx, float dy) argument
737 setLastPoint(float dx, float dy) argument
822 native_rMoveTo(long nPath, float dx, float dy) argument
824 native_rLineTo(long nPath, float dx, float dy) argument
851 native_addPath(long nPath, long src, float dx, float dy) argument
854 native_offset(long nPath, float dx, float dy) argument
855 native_setLastPoint(long nPath, float dx, float dy) argument
[all...]
H A DCamera.java161 public native float dotWithNormal(float dx, float dy, float dz); 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.java168 * @param dx Change in X position from the last call
171 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} argument
301 * @param dx Proposed change in position for left
304 public int clampViewPositionHorizontal(View child, int left, int dx) { argument
589 final int dx = finalLeft - startLeft;
592 if (dx == 0 && dy == 0) {
599 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel);
600 mScroller.startScroll(startLeft, startTop, dx, dy, duration);
606 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { argument
609 final int absDx = Math.abs(dx);
922 canScroll(View v, boolean checkV, int dx, int dy, int x, int y) argument
1247 reportNewEdgeDrags(float dx, float dy, int pointerId) argument
1295 checkTouchSlop(View child, float dx, float dy) argument
1416 dragTo(int left, int top, int dx, int dy) argument
[all...]
/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/view/
H A DNestedScrollingChild.java163 * @param dx Horizontal scroll distance in pixels
165 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx
174 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow); argument
/frameworks/support/compat/java/android/support/v4/widget/
H A DScrollerCompat.java128 * @param dx Horizontal distance to travel. Positive numbers will scroll the
133 public void startScroll(int startX, int startY, int dx, int dy) { argument
134 mScroller.startScroll(startX, startY, dx, dy);
144 * @param dx Horizontal distance to travel. Positive numbers will scroll the
150 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
151 mScroller.startScroll(startX, startY, dx, dy, duration);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerCacheTest.java44 public GridLayoutManagerCacheTest(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});
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, int 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, int op) const argument
585 boolean_operation(int op, Region& dst, const Region& lhs, const Region& rhs, int dx, int dy) argument
695 boolean_operation(int op, Region& dst, const Region& lhs, const Rect& rhs, int dx, int dy) argument
736 translate(Region& reg, int dx, int dy) argument
755 translate(Region& dst, const Region& reg, int dx, int dy) argument
[all...]
/frameworks/rs/java/tests/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/core/jni/android/graphics/
H A DRasterizer.cpp80 static void addLayer(JNIEnv* env, jobject, jlong layerHandle, jlong paintHandle, jfloat dx, jfloat dy) { argument
85 nr->fBuilder.addLayer(*paint, dx, dy);
/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.java233 /*package*/ static void native_rMoveTo(long nPath, float dx, float dy) { argument
239 pathDelegate.rMoveTo(dx, dy);
253 /*package*/ static void native_rLineTo(long nPath, float dx, float dy) { argument
259 pathDelegate.rLineTo(dx, dy);
406 /*package*/ static void native_addPath(long nPath, long src, float dx, float dy) { argument
407 addPath(nPath, src, AffineTransform.getTranslateInstance(dx, dy));
426 /*package*/ static void native_offset(long nPath, float dx, float dy) { argument
432 pathDelegate.offset(dx, dy);
436 /*package*/ static void native_setLastPoint(long nPath, float dx, float dy) { argument
442 pathDelegate.mLastX = dx;
653 rMoveTo(float dx, float dy) argument
684 rLineTo(float dx, float dy) argument
856 offset(float dx, float dy) 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/minikin/include/minikin/
H A DMinikinFont.h83 void offset(float dx, float dy) { argument
84 mLeft += dx;
86 mRight += dx;
/frameworks/support/core-ui/java/android/support/v4/view/
H A DNestedScrollingChildHelper.java190 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument
192 if (dx != 0 || dy != 0) {
209 ViewParentCompat.onNestedPreScroll(mNestedScrollingParent, mView, dx, dy, consumed);
/frameworks/base/core/java/android/transition/
H A DArcMotion.java215 float dx = (startX + endX) / 2;
255 float arcDistX = dx - ex;
270 ex = dx + (ratio * (ex - dx));

Completed in 899 milliseconds

123456789