Searched refs:dy (Results 76 - 100 of 205) sorted by relevance

123456789

/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
H A DBandSelectionHelper.java104 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
105 BandSelectionHelper.this.onScrolled(recyclerView, dx, dy);
311 private void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { argument
318 mOrigin.y -= dy;
/frameworks/base/core/java/android/widget/
H A DOverScroller.java354 * @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...]
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/
H A DGridModelTest.java295 private void scroll(int dy) { argument
296 assertTrue(mHost.verticalOffset + VIEWPORT_HEIGHT + dy <= mHost.getTotalHeight());
297 mHost.verticalOffset += dy;
299 mSelectionPoint.y += dy;
300 mHost.mScrollListener.onScrolled(null, 0, dy);
/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java245 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom()
248 Animation trans = new TranslateAnimation(0, dx, 0, dy);
263 int dy = horiz ? 0: (alignment == ALIGN_TOP ? tab.getHeight() : -tab.getHeight());
265 Animation trans = new TranslateAnimation(-dx, 0, -dy, 0);
306 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getTop()
309 TranslateAnimation trans = new TranslateAnimation(0, dx, 0, dy);
319 text.offsetTopAndBottom(dy);
320 tab.offsetTopAndBottom(dy);
649 final int dy;
658 dy
[all...]
H A DRecyclerView.java1941 * @param dy Pixels to scroll vertically
1943 public void smoothScrollBy(int dx, int dy) { argument
1944 smoothScrollBy(dx, dy, null);
1951 * @param dy Pixels to scroll vertically
1955 public void smoothScrollBy(int dx, int dy, Interpolator interpolator) { argument
1968 dy = 0;
1970 if (dx != 0 || dy != 0) {
1971 mViewFlinger.smoothScrollBy(dx, dy, interpolator);
2121 void considerReleasingGlowsOnScroll(int dx, int dy) { argument
2131 if (mTopGlow != null && !mTopGlow.isFinished() && dy >
4433 offsetChildrenVertical(int dy) argument
4543 onScrolled(int dx, int dy) argument
4790 smoothScrollBy(int dx, int dy) argument
4794 smoothScrollBy(int dx, int dy, int vx, int vy) argument
4804 computeScrollDuration(int dx, int dy, int vx, int vy) argument
4826 smoothScrollBy(int dx, int dy, int duration) argument
4830 smoothScrollBy(int dx, int dy, Interpolator interpolator) argument
4835 smoothScrollBy(int dx, int dy, int duration, Interpolator interpolator) argument
7205 collectAdjacentPrefetchPositions(int dx, int dy, State state, LayoutPrefetchRegistry layoutPrefetchRegistry) argument
7528 scrollVerticallyBy(int dy, Recycler recycler, State state) argument
8233 offsetChildrenVertical(int dy) argument
9848 onScrolled(RecyclerView recyclerView, int dx, int dy) argument
10708 onAnimation(int dx, int dy) argument
10814 onSeekTargetStep(int dx, int dy, State state, Action action) argument
10854 Action(int dx, int dy) argument
10863 Action(int dx, int dy, int duration) argument
10874 Action(int dx, int dy, int duration, Interpolator interpolator) argument
10959 setDy(int dy) argument
10996 update(int dx, int dy, int duration, Interpolator interpolator) argument
[all...]
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/
H A DSwipeRefreshLayout.java780 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
783 if (dy > 0 && mTotalUnconsumed > 0) {
784 if (dy > mTotalUnconsumed) {
785 consumed[1] = dy - (int) mTotalUnconsumed;
788 mTotalUnconsumed -= dy;
789 consumed[1] = dy;
798 if (mUsingCustomStart && dy > 0 && mTotalUnconsumed == 0
799 && Math.abs(dy - consumed[1]) > 0) {
805 if (dispatchNestedPreScroll(dx - consumed[0], dy - consumed[1], parentConsumed, null)) {
842 final int dy
884 dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DRect.java321 * adding dy to its top and bottom coordinates.
324 * @param dy The amount to add to the rectangle's top and bottom coordinates
326 public void offset(int dx, int dy) { argument
328 top += dy;
330 bottom += dy;
348 * Inset the rectangle by (dx,dy). If dx is positive, then the sides are
351 * for dy and the top and bottom.
354 * @param dy The amount to add(subtract) from the rectangle's top(bottom)
356 public void inset(int dx, int dy) { argument
358 top += dy;
[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/core/java/android/gesture/
H A DGestureUtils.java381 float dy = points[i + 3] - points[i + 1];
382 sum += Math.hypot(dx, dy);
390 float dy = points[3] - points[1];
391 return (float) Math.hypot(dx, dy) / totalLen;
396 float dy = points[3] - points[1];
397 return (float) Math.hypot(dx, dy) / totalLen;
576 static float[] translate(float[] points, float dx, float dy) { argument
580 points[i + 1] += dy;
/frameworks/base/libs/hwui/tests/unit/
H A DFatalTestCanvas.h90 void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkPaint*) { argument
104 void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const SkPaint*) { argument
/frameworks/support/transition/src/main/java/androidx/transition/
H A DViewUtilsBase.java114 final float dy = values[Matrix.MTRANS_Y];
118 view.setTranslationY(dy);
/frameworks/base/libs/hwui/
H A DSpotShadow.h45 float dx, float dy);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewPrefetchTest.java60 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, argument
H A DRecyclerViewSmoothScrollerTest.java75 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, argument
H A DTestedFrameLayout.java185 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
186 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);
245 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed, argument
248 mNestedScrollingDelegate.onNestedPreScroll(target, dx, dy, consumed, type);
H A DRecyclerViewAccessibilityTest.java124 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler,
126 if (dy > 0) {
128 } else if (dy < 0) {
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DRecyclerView.java1762 * Scrolls the RV by 'dx' and 'dy' via calls to
1773 private void scrollStep(int dx, int dy, @Nullable int[] consumed) { argument
1785 if (dy != 0) {
1786 consumedY = mLayout.scrollVerticallyBy(dy, mRecycler, mState);
2181 * @param dy Pixels to scroll vertically
2183 public void smoothScrollBy(@Px int dx, @Px int dy) { argument
2184 smoothScrollBy(dx, dy, null);
2191 * @param dy Pixels to scroll vertically
2195 public void smoothScrollBy(@Px int dx, @Px int dy, @Nullable Interpolator interpolator) { argument
2208 dy
2370 considerReleasingGlowsOnScroll(int dx, int dy) argument
4783 offsetChildrenVertical(@x int dy) argument
4893 onScrolled(@x int dx, @Px int dy) argument
5141 smoothScrollBy(int dx, int dy) argument
5145 smoothScrollBy(int dx, int dy, int vx, int vy) argument
5155 computeScrollDuration(int dx, int dy, int vx, int vy) argument
5177 smoothScrollBy(int dx, int dy, int duration) argument
5181 smoothScrollBy(int dx, int dy, Interpolator interpolator) argument
5186 smoothScrollBy(int dx, int dy, int duration, Interpolator interpolator) argument
7769 collectAdjacentPrefetchPositions(int dx, int dy, State state, LayoutPrefetchRegistry layoutPrefetchRegistry) argument
8092 scrollVerticallyBy(int dy, Recycler recycler, State state) argument
8823 offsetChildrenVertical(@x int dy) argument
9658 isFocusedChildVisibleAfterScrolling(RecyclerView parent, int dx, int dy) argument
10584 onScrolled(@onNull RecyclerView recyclerView, int dx, int dy) argument
11273 dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) argument
11278 dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, int type) argument
11587 onAnimation(int dx, int dy) argument
11716 onSeekTargetStep(@x int dx, @Px int dy, @NonNull State state, @NonNull Action action) argument
11758 Action(@x int dx, @Px int dy) argument
11767 Action(@x int dx, @Px int dy, int duration) argument
11778 Action(@x int dx, @Px int dy, int duration, @Nullable Interpolator interpolator) argument
11866 setDy(@x int dy) argument
11904 update(@x int dx, @Px int dy, int duration, @Nullable Interpolator interpolator) argument
[all...]
H A DPagerSnapHelper.java134 final int dy = snapDistances[1];
135 final int time = calculateTimeForDeceleration(Math.max(Math.abs(dx), Math.abs(dy)));
137 action.update(dx, dy, time, mDecelerateInterpolator);
H A DItemTouchHelper.java170 * Re-use array to calculate dx dy for a ViewHolder
534 float dx = 0, dy = 0;
538 dy = mTmpPosition[1];
541 mRecoverAnimations, mActionState, dx, dy);
548 float dx = 0, dy = 0;
552 dy = mTmpPosition[1];
555 mRecoverAnimations, mActionState, dx, dy);
818 final int dy = Math.abs(centerY - (other.getTop() + other.getBottom()) / 2);
819 final int dist = dx * dx + dy * dy;
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintContentView.java402 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { argument
403 if ((isOptionsClosed() || isOptionsClosed()) && dy <= 0) {
407 mCurrentOptionsOffsetY += dy;
411 mPrintButton.offsetTopAndBottom(dy);
450 public int clampViewPositionVertical(View child, int top, int dy) { argument
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DNestedScrollView.java242 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);
1374 * @param dy the number of pixels to scroll by on the Y axis
1376 public final void smoothScrollBy(int dx, int dy) { argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/helper/
H A DItemTouchHelper.java167 * Re-use array to calculate dx dy for a ViewHolder
515 float dx = 0, dy = 0;
519 dy = mTmpPosition[1];
522 mRecoverAnimations, mActionState, dx, dy);
529 float dx = 0, dy = 0;
533 dy = mTmpPosition[1];
536 mRecoverAnimations, mActionState, dx, dy);
795 final int dy = Math.abs(centerY - (other.getTop() + other.getBottom()) / 2);
796 final int dist = dx * dx + dy * dy;
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp85 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...]
H A DMatrix.cpp169 static void setTranslate(jlong objHandle, jfloat dx, jfloat dy) { argument
171 obj->setTranslate(dx, dy);
226 static void preTranslate(jlong objHandle, jfloat dx, jfloat dy) { argument
228 obj->preTranslate(dx, dy);
270 static void postTranslate(jlong objHandle, jfloat dx, jfloat dy) { argument
272 obj->postTranslate(dx, dy);
/frameworks/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java257 /*package*/ static void nSetTranslate(long native_object, float dx, float dy) { argument
263 setTranslate(d.mValues, dx, dy);
392 /*package*/ static void nPreTranslate(long native_object, float dx, float dy) { argument
395 d.preTransform(getTranslate(dx, dy));
465 /*package*/ static void nPostTranslate(long native_object, float dx, float dy) { argument
468 d.postTransform(getTranslate(dx, dy));
951 * @param dy
954 /*package*/ static float[] getTranslate(float dx, float dy) { argument
955 return setTranslate(new float[9], dx, dy);
958 /*package*/ static float[] setTranslate(float[] dest, float dx, float dy) { argument
[all...]

Completed in 516 milliseconds

123456789