/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/ |
H A D | AnimatedRecyclerView.java | 520 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument 529 if (dy < 0) { 530 while (scrolled > dy) { 533 final int scrollBy = Math.min(scrolled - dy, hangingTop); 536 if (mFirstPosition > 0 && scrolled > dy) { 548 } else if (dy > 0) { 550 while (scrolled < dy) { 553 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); 556 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) {
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | BaseLinearLayoutManagerTest.java | 640 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, argument 643 super.collectAdjacentPrefetchPositions(dx, dy, state, layoutPrefetchRegistry);
|
H A D | RecyclerViewBasicTest.java | 414 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, 661 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument 663 return dy;
|
H A D | BaseRecyclerViewAnimationsTest.java | 205 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument 207 mOnLayoutCallbacks.onScroll(dy, recycler, state); 208 return super.scrollVerticallyBy(dy, recycler, state);
|
H A D | BaseStaggeredGridLayoutManagerTest.java | 831 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, argument 834 super.collectAdjacentPrefetchPositions(dx, dy, state, layoutPrefetchRegistry);
|
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/ |
H A D | PageIndicatorView.java | 443 * @param dy the vertical offset of shadows drawn beneath the dots 445 public void setDotShadowDy(float dy) { argument 446 mDotShadowDy = dy;
|
H A D | WearableDrawerLayout.java | 677 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed) { argument 1041 public int clampViewPositionVertical(@NonNull View child, int top, int dy) { argument 1091 int dy) { 1112 public int clampViewPositionVertical(@NonNull View child, int top, int dy) { argument 1158 int dy) { 1090 onViewPositionChanged(@onNull View changedView, int left, int top, int dx, int dy) argument 1157 onViewPositionChanged(@onNull View changedView, int left, int top, int dx, int dy) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | HorizontalScrollView.java | 1193 * @param dy the number of pixels to scroll by on the Y axis 1195 public final void smoothScrollBy(int dx, int dy) { argument 1214 scrollBy(dx, dy);
|
H A D | OverScroller.java | 354 * @param dy Vertical distance to travel. Positive numbers will scroll the 357 public void startScroll(int startX, int startY, int dx, int dy) { argument 358 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); 370 * @param dy Vertical distance to travel. Positive numbers will scroll the 374 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument 377 mScrollerY.startScroll(startY, dy, duration); 535 final int dy = mScrollerY.mFinal - mScrollerY.mStart; 537 Math.signum(yvel) == Math.signum(dy); 623 float y, dy; 627 dy [all...] |
H A D | ScrollView.java | 1207 * @param dy the number of pixels to scroll by on the Y axis 1209 public final void smoothScrollBy(int dx, int dy) { argument 1220 dy = Math.max(0, Math.min(scrollY + dy, maxY)) - scrollY; 1222 mScroller.startScroll(mScrollX, scrollY, 0, dy); 1232 scrollBy(dx, dy);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 283 final float dy = y - mInitialTouchY; 284 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null && 289 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); 345 final float dy = y - mInitialTouchY; 346 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) { 349 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); 353 final float dy = y - mLastTouchY; 354 performDrag(dy); 476 private float performDrag(float dy) { argument 481 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy, 686 onNestedPreScroll(View target, int dx, int dy, int[] consumed) argument [all...] |
H A D | LinearLayoutManager.java | 1043 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument 1048 return scrollBy(dy, recycler, state); 1279 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, argument 1281 int delta = (mOrientation == HORIZONTAL) ? dx : dy; 1293 int scrollBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state) { argument 1294 if (getChildCount() == 0 || dy == 0) { 1299 final int layoutDirection = dy > 0 ? LayoutState.LAYOUT_END : LayoutState.LAYOUT_START; 1300 final int absDy = Math.abs(dy); 1310 final int scrolled = absDy > consumed ? layoutDirection * consumed : dy; 1313 Log.d(TAG, "scroll req: " + dy [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 85 static void rMoveTo(JNIEnv* env, jclass clazz, jlong objHandle, jfloat dx, jfloat dy) { argument 87 obj->rMoveTo(dx, dy); 95 static void rLineTo(JNIEnv* env, jclass clazz, jlong objHandle, jfloat dx, jfloat dy) { argument 97 obj->rLineTo(dx, dy); 189 jfloat dx, jfloat dy) { 192 obj->addPath(*src, dx, dy); 209 static void offset__FF(JNIEnv* env, jclass clazz, jlong objHandle, jfloat dx, jfloat dy) { argument 211 obj->offset(dx, dy); 214 static void setLastPoint(JNIEnv* env, jclass clazz, jlong objHandle, jfloat dx, jfloat dy) { argument 216 obj->setLastPt(dx, dy); 188 addPath__PathFF(JNIEnv* env, jclass clazz, jlong objHandle, jlong srcHandle, jfloat dx, jfloat dy) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Matrix.java | 58 public void setTranslate(float dx, float dy) { 109 public boolean preTranslate(float dx, float dy) { 157 public boolean postTranslate(float dx, float dy) { 317 /** Set the matrix to translate by (dx, dy). */ 318 public void setTranslate(float dx, float dy) { argument 319 nSetTranslate(native_instance, dx, dy); 396 * Preconcats the matrix with the specified translation. M' = M * T(dx, dy) 398 public boolean preTranslate(float dx, float dy) { argument 399 nPreTranslate(native_instance, dx, dy); 460 * Postconcats the matrix with the specified translation. M' = T(dx, dy) * 462 postTranslate(float dx, float dy) argument 885 nSetTranslate(long nObject, float dx, float dy) argument 906 nPreTranslate(long nObject, float dx, float dy) argument 922 nPostTranslate(long nObject, float dx, float dy) argument [all...] |
H A D | Path.java | 353 * @param dy The amount to add to the y-coordinate of the end of the 356 public void rMoveTo(float dx, float dy) { argument 357 nRMoveTo(mNativePath, dx, dy); 380 * @param dy The amount to add to the y-coordinate of the previous point on 383 public void rLineTo(float dx, float dy) { argument 385 nRLineTo(mNativePath, dx, dy); 678 * Add a copy of src to the path, offset by (dx,dy) 683 public void addPath(Path src, float dx, float dy) { argument 685 nAddPath(mNativePath, src.mNativePath, dx, dy); 709 * Offset the path by (dx,dy) 716 offset(float dx, float dy, @Nullable Path dst) argument 731 offset(float dx, float dy) argument 750 setLastPoint(float dx, float dy) argument 827 nRMoveTo(long nPath, float dx, float dy) argument 829 nRLineTo(long nPath, float dx, float dy) argument 850 nAddPath(long nPath, long src, float dx, float dy) argument 853 nOffset(long nPath, float dx, float dy) argument 854 nSetLastPoint(long nPath, float dx, float dy) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | BakedOpDispatcher.cpp | 210 const float sy = op.y - texture->top + textShadow.dy; 222 // Bounds should be same as text op, but with dx/dy offset and radius outset 230 shadowBounds.translate(textShadow.dx, textShadow.dy); 471 int dy = dx + 1; local 474 ColorTextureVertex::set(vertex++, vertices[dx], vertices[dy], u2, v2, colors[dx / 2]); 478 ColorTextureVertex::set(vertex++, vertices[dx], vertices[dy], u2, v2, colors[dx / 2]);
|
H A D | FrameBuilder.cpp | 184 float dy = contentDrawBounds.top - backdrop.top; local 187 contentLocalClip.translate(dx, dy); 188 deferRenderNode(-dx, -dy, contentLocalClip, *nodes[1]);
|
H A D | RecordingCanvas.cpp | 211 void RecordingCanvas::translate(float dx, float dy) { argument 212 if (dx == 0 && dy == 0) return; 214 mState.translate(dx, dy, 0);
|
/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) { 1227 mYOffset = dy; 1232 mSurfaceController.setPositionInTransaction(dx, dy, false); 1236 + " pos=(" + dx + "," + dy + ")", e);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 235 /*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 445 pathDelegate.mLastY = dy; 659 rMoveTo(float dx, float dy) argument 690 rLineTo(float dx, float dy) argument 862 offset(float dx, float dy) argument [all...] |
/frameworks/support/customview/src/main/java/androidx/customview/widget/ |
H A D | ViewDragHelper.java | 172 * @param dy Change in Y position from the last call 175 @Px int dy) { 321 * @param dy Proposed change in position for top 324 public int clampViewPositionVertical(@NonNull View child, int top, int dy) { argument 600 final int dy = finalTop - startTop; 602 if (dx == 0 && dy == 0) { 609 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); 610 mScroller.startScroll(startLeft, startTop, dx, dy, duration); 616 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { argument 620 final int absDy = Math.abs(dy); 174 onViewPositionChanged(@onNull View changedView, int left, int top, @Px int dx, @Px int dy) argument 932 canScroll(@onNull View v, boolean checkV, int dx, int dy, int x, int y) argument 1254 reportNewEdgeDrags(float dx, float dy, int pointerId) argument 1302 checkTouchSlop(View child, float dx, float dy) argument 1423 dragTo(int left, int top, int dx, int dy) argument [all...] |
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
H A D | GridModel.java | 119 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { 120 GridModel.this.onScrolled(recyclerView, dx, dy); 184 private void onScrolled(RecyclerView recyclerView, int dx, int dy) { argument 190 mPointer.y += dy;
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | ActionBarOverlayLayout.java | 521 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | GridLayoutManager.java | 378 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument 382 return super.scrollVerticallyBy(dy, recycler, state);
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 372 float dy = y1 - y0; local 375 *pSphere++ = y0 + dy * 0.5f; 377 *pSphere++ = distance(dx, dy, dz) * 0.5f;
|