/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | GapWorker.java | 71 void setPrefetchVector(int dx, int dy) { argument 73 mPrefetchDy = dy;
|
H A D | LinearSmoothScroller.java | 111 final int dy = calculateDyToMakeVisible(targetView, getVerticalSnapPreference()); 112 final int distance = (int) Math.sqrt(dx * dx + dy * dy); 115 action.update(-dx, -dy, time, mDecelerateInterpolator); 123 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { argument 133 && ((mTargetVector.x * dx < 0 || mTargetVector.y * dy < 0))) { 138 mInterimTargetDy = clampApplyScroll(mInterimTargetDy, dy);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewParent.java | 590 * report how any pixels of the scroll reported by dx, dy were consumed in the 591 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy. 597 * @param dy Vertical scroll distance in pixels 600 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed); argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Region.java | 218 * 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/libs/hwui/ |
H A D | Matrix.cpp | 437 float dy = x * data[kSkewY] + y * data[kScaleY] + data[kTranslateY]; local 442 y = dy * dz;
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FatalTestCanvas.h | 90 void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkPaint*) { argument 104 void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const SkPaint*) { argument
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | TextViewBindingAdapter.java | 285 float dy = view.getShadowDy(); 287 view.setShadowLayer(r, dx, dy, color); 295 float dy = view.getShadowDy(); 297 view.setShadowLayer(r, dx, dy, color); 302 public static void setShadowDy(TextView view, float dy) { argument 307 view.setShadowLayer(r, dx, dy, color); 316 float dy = view.getShadowDy(); 317 view.setShadowLayer(r, dx, dy, color);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 245 public static void nTranslate(long nativeCanvas, float dx, float dy) { argument 252 canvasDelegate.getSnapshot().translate(dx, dy);
|
H A D | Matrix_Delegate.java | 257 /*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...] |
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
H A D | Swarm.java | 240 public void onJoystick(float dx, float dy) { argument 241 if (Math.abs(dx) + Math.abs(dy) > 0.1) { 245 mDrag_y = dy * h * 2;
|
/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/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/ |
H A D | GridModelTest.java | 295 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/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/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);
|
H A D | TestedFrameLayout.java | 185 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);
|
/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
H A D | SwipeDismissLayout.java | 299 * @param dy distance traveled in the y direction, from the initial touch down 302 private boolean isPotentialSwipe(float dx, float dy) { argument 303 return (dx * dx) + (dy * dy) > mSlop * mSlop;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | motion_comp.cpp | 109 Int dx, dy; local 134 dy = mot[0].y; 139 ypred = (ypos << 1) + dy ; 148 if ((dy & 3) == 0) dy = dy >> 1; 149 else dy = (dy >> 1) | 1; 152 ypred = ypos + dy; 175 dy [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Scroller.java | 133 float y, dy; 137 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y; 138 if (Math.abs(dy - alpha) < 1E-5) break; 139 if (dy > alpha) y_max = y; 365 * @param dy Vertical distance to travel. Positive numbers will scroll the 368 public void startScroll(int startX, int startY, int dx, int dy) { argument 369 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); 382 * @param dy Vertical distance to travel. Positive numbers will scroll the 386 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument 394 mFinalY = startY + dy; [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Matrix.cpp | 169 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/base/libs/hwui/pipeline/skia/ |
H A D | SkiaPipeline.cpp | 430 float dy = backdrop.top - contentDrawBounds.top; local 433 canvas->translate(dx, dy);
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/ |
H A D | OctopusDrawable.java | 286 private float dx, dy; field in class:OctopusDrawable.Link 290 Link(int index, float x1, float y1, float dx, float dy) { argument 294 this.dy = dy; 314 return new PointF(coords[0].getValue()+dx,coords[1].getValue()+dy); 319 0.5f*dy+(coords[1].getValue()));
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PrintContentView.java | 402 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/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/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/native/libs/ui/ |
H A D | Region.cpp | 376 Region& Region::orSelf(const Region& rhs, int dx, int dy) { argument 377 return operationSelf(rhs, dx, dy, op_or); 379 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { argument 380 return operationSelf(rhs, dx, dy, op_xor); 382 Region& Region::andSelf(const Region& rhs, int dx, int dy) { argument 383 return operationSelf(rhs, dx, dy, op_and); 385 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { argument 386 return operationSelf(rhs, dx, dy, op_nand); 388 Region& Region::operationSelf(const Region& rhs, int dx, int dy, uint32_t op) { argument 390 boolean_operation(op, *this, lhs, rhs, dx, dy); 408 operation(const Region& rhs, int dx, int dy, uint32_t op) const argument 592 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Region& rhs, int dx, int dy) argument 702 boolean_operation(uint32_t op, Region& dst, const Region& lhs, const Rect& rhs, int dx, int dy) argument 743 translate(Region& reg, int dx, int dy) argument 762 translate(Region& dst, const Region& reg, int dx, int dy) argument [all...] |
/frameworks/support/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()) {
|