Searched defs:dy (Results 101 - 125 of 128) sorted by relevance

123456

/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp148 static void translate(jlong canvasHandle, jfloat dx, jfloat dy) { argument
149 get_canvas(canvasHandle)->translate(dx, dy);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java647 * @param dy The distance to translate in Y
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
H A DPaint.java1318 public void setShadowLayer(float radius, float dx, float dy, int shadowColor) { argument
1321 mShadowLayerDy = dy;
1323 nSetShadowLayer(mNativePaint, radius, dx, dy, shadowColor);
2932 float radius, float dx, float dy, int color);
2931 nSetShadowLayer(long paintPtr, float radius, float dx, float dy, int color) argument
/frameworks/base/libs/hwui/
H A DPathTessellator.cpp995 static inline float getThreshold(const PathApproximationInfo& info, float dx, float dy) { argument
997 float scale = (dx * dx * info.sqrInvScaleY + dy * dy * info.sqrInvScaleX);
1006 float dy = p2y - p1y; local
1007 float d1 = fabs((c1x - p2x) * dy - (c1y - p2y) * dx);
1008 float d2 = fabs((c2x - p2x) * dy - (c2y - p2y) * dx);
1011 if (depth >= MAX_DEPTH || d * d <= getThreshold(approximationInfo, dx, dy)) {
1044 float dy = by - ay; local
1046 float d = (cx - bx) * dy - (cy - by) * dx;
1048 if (depth >= MAX_DEPTH || d * d <= getThreshold(approximationInfo, dx, dy)) {
[all...]
H A DSkiaCanvas.cpp351 void SkiaCanvas::translate(float dx, float dy) { argument
352 mCanvas->translate(dx, dy);
622 const SkScalar dy = h / meshHeight; local
638 y += dy;
H A DSpotShadow.cpp113 * @param dy The y vector of the ray
118 static float rayIntersectPoints(const Vector2& rayOrigin, float dx, float dy, const Vector2& p1, 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;
803 float dy = umbraToCentroid.y; local
805 rayIntersectPoints(centroid, dx, dy, poly2d[previousPolyIndex],
815 closerVertex.y = centroid.y + dy * distanceToIntersectPol
[all...]
/frameworks/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java465 /*package*/ static void nSetShadowLayer(long paint, float radius, float dx, float dy, argument
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DPagedListView.java1210 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
1212 mOnScrollListener.onScrolled(recyclerView, dx, dy);
1268 public void onScrolled(RecyclerView recyclerView, int dx, 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/support/slidingpanelayout/src/main/java/androidx/slidingpanelayout/widget/
H A DSlidingPaneLayout.java836 final float dy = y - mInitialMotionY;
838 if (dx * dx + dy * dy < slop * slop
1359 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { argument
1410 public int clampViewPositionVertical(View child, int top, int dy) { argument
/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/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DBaseRecyclerViewInstrumentationTest.java702 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument
704 mScrollVerticallyAmount += dy;
705 return dy;
H A DRecyclerViewLayoutTest.java861 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler,
863 super.scrollVerticallyBy(dy, recycler, state);
864 // offset by -dy because the views translate opposite of the scrolling direction
865 mRecyclerView.offsetChildrenVertical(-dy);
866 return dy;
1105 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler,
1111 return dy;
1164 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler,
1168 return dy;
1599 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
5250 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed, @ViewCompat.NestedScrollType int type) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DLinearLayoutManager.java1070 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument
1075 return scrollBy(dy, recycler, state);
1306 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, argument
1308 int delta = (mOrientation == HORIZONTAL) ? dx : dy;
1321 int scrollBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state) { argument
1322 if (getChildCount() == 0 || dy == 0) {
1327 final int layoutDirection = dy > 0 ? LayoutState.LAYOUT_END : LayoutState.LAYOUT_START;
1328 final int absDy = Math.abs(dy);
1338 final int scrolled = absDy > consumed ? layoutDirection * consumed : dy;
1341 Log.d(TAG, "scroll req: " + dy
[all...]
H A DStaggeredGridLayoutManager.java1495 public void offsetChildrenVertical(int dy) { argument
1496 super.offsetChildrenVertical(dy);
1498 mSpans[i].onOffset(dy);
2039 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument
2041 return scrollBy(dy, recycler, state);
2112 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, argument
2125 int delta = (mOrientation == HORIZONTAL) ? dx : dy;
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java2323 int dx = 0, dy = 0;
2332 dy = -count;
2335 dy = count;
2338 onExtractedCursorMovement(dx, dy);
2570 * @param dy The amount of cursor movement in the y dimension.
2572 public void onExtractedCursorMovement(int dx, int dy) { argument
2573 if (mExtractEditText == null || dy == 0) {
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp994 jfloat dx, jfloat dy, jint color) {
1001 paint->setLooper(SkBlurDrawLooper::Make((SkColor)color, sigma, dx, dy));
993 setShadowLayer(jlong paintHandle, jfloat radius, jfloat dx, jfloat dy, jint color) argument
/frameworks/support/compat/src/main/java/androidx/core/view/
H A DViewCompat.java2575 * @param dy Vertical scroll distance in pixels
2577 * and consumed[1] the consumed dy.
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,
2726 * @param dy Vertical scroll distance in pixels
2728 * and consumed[1] the consumed dy.
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, dy, consume
[all...]
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/
H A DCoordinatorLayout.java1472 final int dy = offsetY - lp.mInsetOffsetY;
1473 ViewCompat.offsetTopAndBottom(child, dy);
1635 final int dy = desiredChildRect.top - childRect.top;
1640 if (dy != 0) {
1641 ViewCompat.offsetTopAndBottom(child, dy);
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);
1879 yConsumed = dy >
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/support/drawerlayout/src/main/java/androidx/drawerlayout/widget/
H A DDrawerLayout.java1595 final float dy = y - mInitialMotionY;
1597 if (dx * dx + dy * dy < slop * slop) {
2180 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { argument
2305 public int clampViewPositionVertical(View child, int top, int dy) { argument
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DGridLayoutManager.java261 int dx, dy;
264 dy = sTwoInts[1];
267 dy = sTwoInts[0];
269 final int distance = (int) Math.sqrt(dx * dx + dy * dy);
271 action.update(dx, dy, time, mDecelerateInterpolator);
2396 public int scrollVerticallyBy(int dy, Recycler recycler, RecyclerView.State state) { argument
2397 if (DEBUG) Log.v(getTag(), "scrollVerticallyBy " + dy);
2405 result = scrollDirectionPrimary(dy);
2407 result = scrollDirectionSecondary(dy);
2480 scrollDirectionSecondary(int dy) argument
2492 collectAdjacentPrefetchPositions(int dx, int dy, State state, LayoutPrefetchRegistry layoutPrefetchRegistry) argument
[all...]
/frameworks/base/core/java/android/view/
H A DViewGroup.java3950 private static void drawCorner(Canvas c, Paint paint, int x1, int y1, int dx, int dy, int lw) { argument
3951 fillRect(c, paint, x1, y1, x1 + dx, y1 + lw * sign(dy));
3952 fillRect(c, paint, x1, y1, x1 + lw * sign(dx), y1 + dy);
6134 final int dy = child.mTop - mScrollY;
6136 rect.offset(dx, dy);
6149 offset.y += dy;
7479 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
7481 dispatchNestedPreScroll(dx, dy, consumed, null);
H A DViewRootImpl.java7807 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
/frameworks/native/services/inputflinger/
H A DInputReader.h1733 float dx, dy; member in struct:android::TouchInputMapper::PointerGesture::Delta
/frameworks/base/core/java/android/widget/
H A DTextView.java4398 public void setShadowLayer(float radius, float dx, float dy, int color) { argument
4399 mTextPaint.setShadowLayer(radius, dx, dy, color);
4403 mShadowDy = dy;
9160 int dy = vs - mScrollY;
9163 mScroller.startScroll(mScrollX, mScrollY, dx, dy);
9171 scrollBy(dx, dy);

Completed in 527 milliseconds

123456