/frameworks/support/compat/src/main/java/androidx/core/widget/ |
H A D | NestedScrollView.java | 242 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, argument 244 return mChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, type); 282 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument 283 return dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, ViewCompat.TYPE_TOUCH); 329 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed, argument 331 dispatchNestedPreScroll(dx, dy, consumed, null, type); 359 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 360 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH); 1373 * @param dx the number of pixels to scroll by on the X axis 1376 public final void smoothScrollBy(int dx, in argument [all...] |
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/ |
H A D | CoordinatorLayout.java | 1463 final int dx = offsetX - lp.mInsetOffsetX; 1464 ViewCompat.offsetLeftAndRight(child, dx); 1634 final int dx = desiredChildRect.left - childRect.left; 1637 if (dx != 0) { 1638 ViewCompat.offsetLeftAndRight(child, dx); 1849 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 1850 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH); 1854 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed, int type) { argument 1875 viewBehavior.onNestedPreScroll(this, view, target, dx, dy, mTempIntPair, type); 1877 xConsumed = dx > 2505 onNestedPreScroll(@onNull CoordinatorLayout coordinatorLayout, @NonNull V child, @NonNull View target, int dx, int dy, @NonNull int[] consumed) argument 2539 onNestedPreScroll(@onNull CoordinatorLayout coordinatorLayout, @NonNull V child, @NonNull View target, int dx, int dy, @NonNull int[] consumed, @NestedScrollType int type) argument [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | GestureOverlayView.java | 616 final float dx = Math.abs(x - previousX); 619 if (dx >= GestureStroke.TOUCH_TOLERANCE || dy >= GestureStroke.TOUCH_TOLERANCE) { 646 mTotalLength += (float) Math.hypot(dx, dy);
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 422 public void translate(float dx, float dy) { argument 425 layer.getGraphics().translate(dx, dy); 431 mTransform.translate(dx, dy);
|
/frameworks/support/compat/src/main/java/androidx/core/view/ |
H A D | ViewCompat.java | 2574 * @param dx Horizontal scroll distance in pixels 2576 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx 2585 public static boolean dispatchNestedPreScroll(@NonNull View view, int dx, int dy, argument 2588 return view.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow); 2591 return ((NestedScrollingChild) view).dispatchNestedPreScroll(dx, dy, consumed, 2725 * @param dx Horizontal scroll distance in pixels 2727 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx 2737 public static boolean dispatchNestedPreScroll(@NonNull View view, int dx, int dy, argument 2740 return ((NestedScrollingChild2) view).dispatchNestedPreScroll(dx, dy, consumed, 2743 return dispatchNestedPreScroll(view, dx, d [all...] |
/frameworks/base/cmds/input/src/com/android/commands/input/ |
H A D | Input.java | 262 * @param dx change in x coordinate due to move 265 private void sendMove(int inputSource, float dx, float dy) { argument 267 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, dx, dy, 0.0f); 339 System.err.println(" roll <dx> <dy> (Default: trackball)");
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | FalsingManager.java | 384 public void onNotificationDoubleTap(boolean accepted, float dx, float dy) { argument 387 + " dx=" + dx + " dy=" + dy + " (px)");
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 223 /*package*/ static void translate(Region thisRegion, int dx, int dy, Region dst) { argument 239 mtx.translate(dx, dy);
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MainActivity.java | 121 float dx = (x1 + x2) / 2 - mCenterDownX; 127 mXOffset = mDownXOffset + 2 * (dx / (sw - scale * iw));
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MainActivity.java | 121 float dx = (x1 + x2) / 2 - mCenterDownX; 127 mXOffset = mDownXOffset + 2 * (dx / (sw - scale * iw));
|
/frameworks/support/drawerlayout/src/main/java/androidx/drawerlayout/widget/ |
H A D | DrawerLayout.java | 973 final int dx = newPos - oldPos; 976 checkDrawerViewAbsoluteGravity(drawerView, Gravity.LEFT) ? dx : -dx); 1594 final float dx = x - mInitialMotionX; 1597 if (dx * dx + dy * dy < slop * slop) { 2180 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { argument 2295 public int clampViewPositionHorizontal(View child, int left, int dx) { argument
|
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/ |
H A D | PageIndicatorView.java | 424 * @param dx the horizontal offset of shadows drawn beneath the dots 426 public void setDotShadowDx(float dx) { argument 427 mDotShadowDx = dx;
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | RecyclerViewLayoutTest.java | 852 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, 854 super.scrollHorizontallyBy(dx, recycler, state); 855 // offset by -dx because the views translate opposite of the scrolling direction 856 mRecyclerView.offsetChildrenHorizontal(-dx); 857 return dx; 1174 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, 1178 return dx; 1599 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { 1725 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { 1726 super.onScrolled(recyclerView, dx, d 5250 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed, @ViewCompat.NestedScrollType int type) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 646 * @param dx The distance to translate in X 649 public void translate(float dx, float dy) { argument 650 if (dx == 0.0f && dy == 0.0f) return; 651 nTranslate(mNativeCanvasWrapper, dx, dy); 1337 private static native void nTranslate(long canvasHandle, float dx, float dy); argument
|
/frameworks/base/libs/hwui/ |
H A D | SkiaCanvas.cpp | 351 void SkiaCanvas::translate(float dx, float dy) { argument 352 mCanvas->translate(dx, dy); 621 const SkScalar dx = w / meshWidth; local 634 x += dx;
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | DumpOpsCanvas.h | 111 void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkPaint*) override {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenWallpaper.java | 262 float dx = 0, dy = 0;
|
/frameworks/layoutlib/bridge/src/android/util/ |
H A D | PathParser_Delegate.java | 718 double dx = x0p - x1p; 723 double dsq = dx * dx + dy * dy; 737 double sdx = s * dx;
|
/frameworks/support/car/src/androidTest/java/androidx/car/widget/ |
H A D | PagedListViewSavedStateTest.java | 280 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {}
|
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/ |
H A D | NestedScrollViewNestedScrollingParentTest.java | 670 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed, argument 697 public boolean dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, argument 734 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, argument 771 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
|
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/ |
H A D | SwipeRefreshLayout.java | 780 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 805 if (dispatchNestedPreScroll(dx - consumed[0], dy - consumed[1], parentConsumed, null)) { 884 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument 886 dx, dy, consumed, offsetInWindow);
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
H A D | canny.rs | 279 int dx[4] = {1, 1, 0, 1}; 281 if (value < rsGetElementAt_uchar(edgeImage, x + dx[dir], y + dy[dir])) { 284 if (value < rsGetElementAt_uchar(edgeImage, x - dx[dir], y - dy[dir])) { 310 int dx[] = {-1, 0, 1, -1, 1, -1, 0, 1}; 336 int tx = cdx + dx[i];
|
/frameworks/base/core/java/android/widget/ |
H A D | HorizontalScrollView.java | 1192 * @param dx the number of pixels to scroll by on the X axis 1195 public final void smoothScrollBy(int dx, int dy) { argument 1206 dx = Math.max(0, Math.min(scrollX + dx, maxX)) - scrollX; 1208 mScroller.startScroll(scrollX, mScrollY, dx, 0); 1214 scrollBy(dx, dy);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowStateAnimator.java | 1222 boolean setWallpaperOffset(int dx, int dy) { argument 1223 if (mXOffset == dx && mYOffset == dy) { 1226 mXOffset = dx; 1232 mSurfaceController.setPositionInTransaction(dx, dy, false); 1236 + " pos=(" + dx + "," + dy + ")", e);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | GridLayoutManager.java | 245 protected int calculateTimeForScrolling(int dx) { argument 246 int ms = super.calculateTimeForScrolling(dx); 249 / mWindowAlignment.mainAxis().getSize() * dx; 261 int dx, dy; 263 dx = sTwoInts[0]; 266 dx = sTwoInts[1]; 269 final int distance = (int) Math.sqrt(dx * dx + dy * dy); 271 action.update(dx, dy, time, mDecelerateInterpolator); 2377 public int scrollHorizontallyBy(int dx, Recycle argument 2492 collectAdjacentPrefetchPositions(int dx, int dy, State state, LayoutPrefetchRegistry layoutPrefetchRegistry) argument [all...] |