/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ViewPager.java | 772 int dx = x - sx; 774 if (dx == 0 && dy == 0) { 786 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width); 796 final float pageDelta = (float) Math.abs(dx) / (pageWidth + mPageMargin); 801 mScroller.startScroll(sx, sy, dx, dy, duration); 1785 private boolean isGutterDrag(float x, float dx) { argument 1786 return (x < mGutterSize && dx > 0) || (x > getWidth() - mGutterSize && dx < 0); 1853 final float dx = x - mLastMotionX; 1854 final float xDiff = Math.abs(dx); 2405 canScroll(View v, boolean checkV, int dx, int x, int y) argument [all...] |
H A D | GapWorker.java | 71 void setPrefetchVector(int dx, int dy) { argument 72 mPrefetchDx = dx;
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | ViewPager.java | 963 int dx = x - sx; 965 if (dx == 0 && dy == 0) { 977 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width); 987 final float pageDelta = (float) Math.abs(dx) / (pageWidth + mPageMargin); 995 mScroller.startScroll(sx, sy, dx, dy, duration); 2002 private boolean isGutterDrag(float x, float dx) { argument 2003 return (x < mGutterSize && dx > 0) || (x > getWidth() - mGutterSize && dx < 0); 2065 final float dx = x - mLastMotionX; 2066 final float xDiff = Math.abs(dx); 2710 canScroll(View v, boolean checkV, int dx, int x, int y) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | SkiaCanvasProxy.h | 71 virtual void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkPaint*);
|
H A D | BakedOpDispatcher.cpp | 212 const float sx = op.x - texture->left + textShadow.dx; 225 // Bounds should be same as text op, but with dx/dy offset and radius outset 233 shadowBounds.translate(textShadow.dx, textShadow.dy); 474 int dx = i + (op.meshWidth + 1) * 2 + 2; local 475 int dy = dx + 1; 478 ColorTextureVertex::set(vertex++, vertices[dx], vertices[dy], u2, v2, colors[dx / 2]); 482 ColorTextureVertex::set(vertex++, vertices[dx], vertices[dy], u2, v2, colors[dx / 2]);
|
H A D | SpotShadow.cpp | 112 * @param dx The x vector of the ray 118 static float rayIntersectPoints(const Vector2& rayOrigin, float dx, float dy, argument 122 // solve([p1x+t*(p2x-p1x)=dx*t2+px,p1y+t*(p2y-p1y)=dy*t2+py],[t,t2]); 124 float divisor = (dx * (p1.y - p2.y) + dy * p2.x - dy * p1.x); 128 float interpVal = (dx * (p1.y - rayOrigin.y) + dy * rayOrigin.x - dy * p1.x) / divisor; 812 float dx = umbraToCentroid.x; local 814 float distanceToIntersectPoly = rayIntersectPoints(centroid, dx, dy, 823 closerVertex.x = centroid.x + dx * distanceToIntersectPoly;
|
/frameworks/base/libs/hwui/utils/ |
H A D | VectorDrawableUtils.cpp | 194 double dx = x0p - x1p; local 199 double dsq = dx * dx + dy * dy; 213 double sdx = s * dx;
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
H A D | RSTestCore.java | 193 int dx = mLastX - x;
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
H A D | RSTestCore.java | 197 int dx = mLastX - x;
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
H A D | RSTestCore.java | 197 int dx = mLastX - x;
|
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | PathParser.java | 635 double dx = x0p - x1p; 640 double dsq = dx * dx + dy * dy; 654 double sdx = s * dx;
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
H A D | AsyncListUtilActivity.java | 159 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
H A D | AsyncListUtilActivity.java | 159 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | RecyclerViewParallax.java | 39 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | motion_comp.cpp | 109 Int dx, dy; local 133 dx = mot[0].x; 138 xpred = (xpos << 1) + dx ; 145 if ((dx & 3) == 0) dx = dx >> 1; 146 else dx = (dx >> 1) | 1; 151 xpred = xpos + dx; 173 dx [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
H A D | PdfManipulationService.java | 329 final float dx = dstWidthPts - (int) (srcWidthPts * scale + 0.5f); 331 transform.postTranslate(dx, dy);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | FalsingManager.java | 362 public void onNotificationDoubleTap(boolean accepted, float dx, float dy) { argument 365 + " dx=" + dx + " dy=" + dy + " (px)");
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 248 public static void nTranslate(long nativeCanvas, float dx, float dy) { argument 255 canvasDelegate.getSnapshot().translate(dx, dy);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | NestedScrollView.java | 269 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument 270 return mChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow); 274 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, argument 276 return mChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, type); 319 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 320 dispatchNestedPreScroll(dx, dy, consumed, null); 1321 * @param dx the number of pixels to scroll by on the X axis 1324 public final void smoothScrollBy(int dx, int dy) { argument 1343 scrollBy(dx, dy);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | SwipeDismissBehavior.java | 305 public int clampViewPositionHorizontal(View child, int left, int dx) { 340 public void onViewPositionChanged(View child, int left, int top, int dx, int dy) {
|
H A D | CoordinatorLayout.java | 1437 final int dx = offsetX - lp.mInsetOffsetX; 1438 ViewCompat.offsetLeftAndRight(child, dx); 1608 final int dx = desiredChildRect.left - childRect.left; 1611 if (dx != 0) { 1612 ViewCompat.offsetLeftAndRight(child, dx); 1823 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 1824 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH); 1828 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed, int type) { argument 1849 viewBehavior.onNestedPreScroll(this, view, target, dx, dy, mTempIntPair, type); 1851 xConsumed = dx > 2453 onNestedPreScroll(@onNull CoordinatorLayout coordinatorLayout, @NonNull V child, @NonNull View target, int dx, int dy, @NonNull int[] consumed) argument 2487 onNestedPreScroll(@onNull CoordinatorLayout coordinatorLayout, @NonNull V child, @NonNull View target, int dx, int dy, @NonNull int[] consumed, @NestedScrollType int type) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GapWorker.java | 70 void setPrefetchVector(int dx, int dy) { argument 71 mPrefetchDx = dx;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseGridLayoutManagerTest.java | 321 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, argument 324 super.collectAdjacentPrefetchPositions(dx, dy, state, layoutPrefetchRegistry);
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 1258 float dx = 0, dy = 0; 1262 dx = (vwidth - dwidth * scale) * 0.5f; 1269 mDrawMatrix.postTranslate(Math.round(dx), Math.round(dy)); 1273 float dx; 1283 dx = Math.round((vwidth - dwidth * scale) * 0.5f); 1287 mDrawMatrix.postTranslate(dx, dy);
|
/frameworks/support/compat/java/android/support/v4/view/ |
H A D | ViewCompat.java | 844 public boolean dispatchNestedPreScroll(View view, int dx, int dy, argument 847 return ((NestedScrollingChild) view).dispatchNestedPreScroll(dx, dy, consumed, 1293 public boolean dispatchNestedPreScroll(View view, int dx, int dy, argument 1295 return view.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow); 3115 * @param dx Horizontal scroll distance in pixels 3117 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx 3125 public static boolean dispatchNestedPreScroll(@NonNull View view, int dx, int dy, argument 3127 return IMPL.dispatchNestedPreScroll(view, dx, dy, consumed, offsetInWindow); 3258 * @param dx Horizontal scroll distance in pixels 3260 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx 3270 dispatchNestedPreScroll(@onNull View view, int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow, @NestedScrollType int type) argument [all...] |