/frameworks/base/libs/hwui/ |
H A D | FrameBuilder.cpp | 185 float dx = contentDrawBounds.left - backdrop.left; local 189 contentLocalClip.translate(dx, dy); 190 deferRenderNode(-dx, -dy, contentLocalClip, *nodes[1]); 258 ATRACE_FORMAT("%s alpha caused saveLayer %dx%d", node.getName(), width, height);
|
H A D | RecordingCanvas.cpp | 215 void RecordingCanvas::translate(float dx, float dy) { argument 216 if (dx == 0 && dy == 0) return; 218 mState.translate(dx, dy, 0);
|
H A D | DisplayListOp.h | 254 shadow.translate(textShadow.dx, textShadow.dx); 391 TranslateOp(float dx, float dy) argument 392 : mDx(dx), mDy(dy) {} 674 OP_LOG("Draw bitmap %p of size %dx%d%s",
|
H A D | PathTessellator.cpp | 1034 static inline float getThreshold(const PathApproximationInfo& info, float dx, float dy) { argument 1036 float scale = (dx * dx * info.sqrInvScaleY + dy * dy * info.sqrInvScaleX); 1045 float dx = p2x - p1x; local 1047 float d1 = fabs((c1x - p2x) * dy - (c1y - p2y) * dx); 1048 float d2 = fabs((c2x - p2x) * dy - (c2y - p2y) * dx); 1052 || d * d <= getThreshold(approximationInfo, dx, dy)) { 1090 float dx = bx - ax; local 1093 float d = (cx - bx) * dy - (cy - by) * dx; 1096 || d * d <= getThreshold(approximationInfo, dx, d [all...] |
H A D | SkiaCanvas.cpp | 101 virtual void translate(float dx, float dy) override; 449 void SkiaCanvas::translate(float dx, float dy) { argument 450 mCanvas->translate(dx, dy); 674 const SkScalar dx = w / meshWidth; local 687 x += dx;
|
H A D | SpotShadow.cpp | 112 * @param dx The x vector of the ray 118 static float rayIntersectPoints(const Vector2& rayOrigin, float dx, float dy, 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; 827 float dx = umbraToCentroid.x; local 829 float distanceToIntersectPoly = rayIntersectPoints(centroid, dx, dy, 838 closerVertex.x = centroid.x + dx * distanceToIntersectPoly;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 233 /*package*/ static void native_rMoveTo(long nPath, float dx, float dy) { argument 239 pathDelegate.rMoveTo(dx, dy); 253 /*package*/ static void native_rLineTo(long nPath, float dx, float dy) { argument 259 pathDelegate.rLineTo(dx, dy); 406 /*package*/ static void native_addPath(long nPath, long src, float dx, float dy) { argument 407 addPath(nPath, src, AffineTransform.getTranslateInstance(dx, dy)); 426 /*package*/ static void native_offset(long nPath, float dx, float dy) { argument 432 pathDelegate.offset(dx, dy); 436 /*package*/ static void native_setLastPoint(long nPath, float dx, float dy) { argument 442 pathDelegate.mLastX = dx; 653 rMoveTo(float dx, float dy) argument 684 rLineTo(float dx, float dy) argument 856 offset(float dx, float dy) argument [all...] |
H A D | Canvas_Delegate.java | 271 public static void native_translate(long nativeCanvas, float dx, float dy) { argument 278 canvasDelegate.getSnapshot().translate(dx, dy);
|
H A D | Paint_Delegate.java | 442 /*package*/ static void nSetShadowLayer(long paint, float radius, float dx, float dy, argument
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | ViewDragHelper.java | 168 * @param dx Change in X position from the last call 171 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} argument 301 * @param dx Proposed change in position for left 304 public int clampViewPositionHorizontal(View child, int left, int dx) { argument 587 final int dx = finalLeft - startLeft; 590 if (dx == 0 && dy == 0) { 597 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); 598 mScroller.startScroll(startLeft, startTop, dx, dy, duration); 604 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { argument 607 final int absDx = Math.abs(dx); 920 canScroll(View v, boolean checkV, int dx, int dy, int x, int y) argument 1245 reportNewEdgeDrags(float dx, float dy, int pointerId) argument 1293 checkTouchSlop(View child, float dx, float dy) argument 1414 dragTo(int left, int top, int dx, int dy) argument [all...] |
H A D | NestedScrollView.java | 243 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument 244 return mChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow); 287 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 288 dispatchNestedPreScroll(dx, dy, consumed, null); 1297 * @param dx the number of pixels to scroll by on the X axis 1300 public final void smoothScrollBy(int dx, int dy) { argument 1319 scrollBy(dx, dy);
|
H A D | SlidingPaneLayout.java | 847 final float dx = x - mInitialMotionX; 850 if (dx * dx + dy * dy < slop * slop && 1207 final int dx = oldOffset - newOffset; 1209 v.offsetLeftAndRight(isLayoutRtl ? -dx : dx); 1219 * Tests scrollability within child views of v given a delta of dx. 1224 * @param dx Delta scrolled in pixels 1227 * @return true if child views of v can be scrolled by delta of dx. 1229 protected boolean canScroll(View v, boolean checkV, int dx, in argument 1342 onViewPositionChanged(View changedView, int left, int top, int dx, int dy) argument 1375 clampViewPositionHorizontal(View child, int left, int dx) argument [all...] |
H A D | SwipeRefreshLayout.java | 764 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 789 if (dispatchNestedPreScroll(dx - consumed[0], dy - consumed[1], parentConsumed, null)) { 868 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument 869 return mNestedScrollingChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionBarOverlayLayout.java | 512 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GridLayoutManager.java | 360 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, argument 364 return super.scrollHorizontallyBy(dx, recycler, state);
|
H A D | LinearLayoutManager.java | 1026 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, argument 1031 return scrollBy(dx, recycler, state);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseRecyclerViewAnimationsTest.java | 329 public void onScroll(int dx, RecyclerView.Recycler recycler, RecyclerView.State state) { argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollView.java | 1191 * @param dx the number of pixels to scroll by on the X axis 1194 public final void smoothScrollBy(int dx, int dy) { argument 1217 scrollBy(dx, dy);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 635 jfloat dx, jfloat dy, jint color) { 642 paint->setLooper(SkBlurDrawLooper::Create((SkColor)color, sigma, dx, dy))->unref(); 634 setShadowLayer(JNIEnv* env, jobject clazz, jlong paintHandle, jfloat radius, jfloat dx, jfloat dy, jint color) argument
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 392 float dx = x1 - x0; local 395 *pSphere++ = x0 + dx * 0.5f; 398 *pSphere++ = distance(dx, dy, dz) * 0.5f;
|
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 156 static void translate(JNIEnv*, jobject, jlong canvasHandle, jfloat dx, jfloat dy) { argument 157 get_canvas(canvasHandle)->translate(dx, dy);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | MultiSelectManager.java | 1396 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { argument 1533 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { argument 1538 mPointer.x += dx;
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | AppBarLayout.java | 800 View target, int dx, int dy, int[] consumed) { 799 onNestedPreScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, int dx, int dy, int[] consumed) argument
|
H A D | CoordinatorLayout.java | 1386 final int dx = desiredChildRect.left - childRect.left; 1389 if (dx != 0) { 1390 child.offsetLeftAndRight(dx); 1396 if (dx != 0 || dy != 0) { 1556 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 1572 viewBehavior.onNestedPreScroll(this, view, target, dx, dy, mTempIntPair); 1574 xConsumed = dx > 0 ? Math.max(xConsumed, mTempIntPair[0]) 2093 * @param dx the raw horizontal number of pixels that the user attempted to scroll 2095 * @param consumed out parameter. consumed[0] should be set to the distance of dx that 2102 int dx, in 2101 onNestedPreScroll(CoordinatorLayout coordinatorLayout, V child, View target, int dx, int dy, int[] consumed) argument [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewCompat.java | 464 boolean dispatchNestedPreScroll(View view, int dx, int dy, int[] consumed, argument 1020 public boolean dispatchNestedPreScroll(View view, int dx, int dy, argument 1023 return ((NestedScrollingChild) view).dispatchNestedPreScroll(dx, dy, consumed, 1655 public boolean dispatchNestedPreScroll(View view, int dx, int dy, argument 1657 return ViewCompatLollipop.dispatchNestedPreScroll(view, dx, dy, consumed, 3193 * @param dx Horizontal scroll distance in pixels 3195 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx 3204 public static boolean dispatchNestedPreScroll(View view, int dx, int dy, int[] consumed, argument 3206 return IMPL.dispatchNestedPreScroll(view, dx, dy, consumed, offsetInWindow);
|