Searched refs:dy (Results 101 - 125 of 205) sorted by relevance

123456789

/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java286 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/av/include/media/
H A DInterpolator.h179 const T dy = high->second - low->second; local
182 const S c2 = 3 * dy - 2 * m0 - m1;
183 const S c3 = m0 + m1 - 2 * dy;
/frameworks/base/libs/hwui/
H A DRect.h153 void translate(float dx, float dy) { argument
156 top += dy;
157 bottom += dy;
H A DCanvasState.h106 void translate(float dx, float dy, float dz = 0.0f);
H A DCanvasState.cpp161 void CanvasState::translate(float dx, float dy, float dz) { argument
162 mSnapshot->transform->translate(dx, dy, dz);
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...]
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 DSkiaCanvasProxy.h70 virtual void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkPaint*);
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DSwipeDismissLayout.java299 * @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/base/core/java/android/view/
H A DViewParent.java590 * 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDoubleTapHelper.java172 void onDoubleTapLog(boolean accepted, float dx, float dy); argument
/frameworks/support/car/src/main/java/androidx/car/app/
H A DCarListDialog.java174 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
175 super.onScrolled(recyclerView, dx, dy);
229 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
230 super.onScrolled(recyclerView, dx, dy);
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DAnimatedRecyclerView.java520 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()) {
H A DAsyncListUtilActivity.java160 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DAnimatedRecyclerView.java520 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/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java305 final float dy = y - mLastTouchY + mTouchRemainderY;
306 final int deltaY = (int) dy;
307 mTouchRemainderY = dy - deltaY;
309 if (Math.abs(dy) > mTouchSlop) {
341 final float dy = y - mLastTouchY + mTouchRemainderY;
342 final int deltaY = (int) dy;
343 mTouchRemainderY = dy - deltaY;
345 if (Math.abs(dy) > mTouchSlop) {
545 final int dy = (int) (y - mLastTouchY);
547 final boolean stopped = !trackMotionScroll(dy, fals
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dmp4dec_lib.h180 int dy, /* i */
198 int dy, /* i */
/frameworks/base/core/jni/android/graphics/
H A DCamera.cpp35 jfloat dx, jfloat dy, jfloat dz) {
38 v->translate(dx, dy, dz);
34 Camera_translate(JNIEnv* env, jobject obj, jfloat dx, jfloat dy, jfloat dz) argument
/frameworks/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java161 RectF edgeShadowRect, float dx, float dy, int rotations) {
166 canvas.translate(dx, dy);
160 sideShadow(Canvas canvas, Paint edgePaint, RectF edgeShadowRect, float dx, float dy, int rotations) argument
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A Dvr.rs27 float3 dy;
49 dy = rsMatrixMultiply(&matrix3, (float3) {0.f, 1.f, 0.f});
59 mLight = mLightRelitvePos.x + dx + mLightRelitvePos.y * dy + mLightRelitvePos.z * dz;
112 float3 p = s + x * dx + y * dy + dz * zstart;
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewOnGenericMotionEventTest.java165 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, argument
167 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/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
H A DSwarm.java240 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/main/java/androidx/core/graphics/
H A DPathParser.java637 double dy = y0p - y1p;
641 double dsq = dx * dx + dy * dy;
656 double sdy = s * dy;
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DRecyclerViewParallax.java40 public void onScrolled(RecyclerView recyclerView, int dx, int dy) {

Completed in 4016 milliseconds

123456789