Home
last modified time | relevance | path

Searched refs:dy (Results 1 – 20 of 20) sorted by relevance

/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
DMyGLSurfaceView.java59 float dy = y - mPreviousY; in onTouchEvent() local
68 dy = dy * -1 ; in onTouchEvent()
73 ((dx + dy) * TOUCH_SCALE_FACTOR)); // = 180.0f / 320 in onTouchEvent()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DMyGLSurfaceView.java62 float dy = y - mPreviousY; in onTouchEvent() local
71 dy = dy * -1 ; in onTouchEvent()
76 ((dx + dy) * TOUCH_SCALE_FACTOR)); // = 180.0f / 320 in onTouchEvent()
/development/perftests/panorama/feature_mos/src/mosaic/
DGeometry.h104 double dy = y2 - y0; in FindTriangleCentroid() local
106 double len1 = sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
107 double m1 = dy / dx; in FindTriangleCentroid()
119 dy = y1 - m1 * x + b1; in FindTriangleCentroid()
120 mass = len1 * sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
DBlend.cpp1135 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect() local
1137 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect()
1143 …if ((inter = m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / d… in ClipBlendRect()
1149 …if ((inter = -m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / … in ClipBlendRect()
1152 if (dy > epsilon) in ClipBlendRect()
1155 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) < brect.top) in ClipBlendRect()
1158 else if (dy < -epsilon) in ClipBlendRect()
1161 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) > brect.bot) in ClipBlendRect()
1306 double dy = prevY - firstY; in ComputeBlendParameters() local
1314 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
[all …]
DDelaunay.cpp475 double adx, ady, bdx, bdy, cdx, cdy, dx, dy, nad, nbd, ncd; in incircle() local
477 dy = sa[d].Y(); in incircle()
479 ady = sa[a].Y() - dy; in incircle()
481 bdy = sa[b].Y() - dy; in incircle()
483 cdy = sa[c].Y() - dy; in incircle()
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DRecyclerViewActivity.java145 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, in scrollVerticallyBy() argument
154 if (dy < 0) { in scrollVerticallyBy()
155 while (scrolled > dy) { in scrollVerticallyBy()
158 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
161 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
173 } else if (dy > 0) { in scrollVerticallyBy()
175 while (scrolled < dy) { in scrollVerticallyBy()
179 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); in scrollVerticallyBy()
182 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
DAnimatedRecyclerView.java283 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, in scrollVerticallyBy() argument
292 if (dy < 0) { in scrollVerticallyBy()
293 while (scrolled > dy) { in scrollVerticallyBy()
296 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
299 if (mFirstPosition > 0 && scrolled > dy) { in scrollVerticallyBy()
311 } else if (dy > 0) { in scrollVerticallyBy()
313 while (scrolled < dy) { in scrollVerticallyBy()
316 final int scrollBy = -Math.min(dy - scrolled, hangingBottom); in scrollVerticallyBy()
319 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapMesh.java93 float dy = cy - y; in warp() local
94 float dd = dx*dx + dy*dy; in warp()
106 dst[i+1] = y + dy * pull; in warp()
DWindowSurface.java100 float x, y, dx, dy; field in WindowSurface.MovingPoint
106 dy = (float)(Math.random()*minStep*2) + 1; in init()
125 y += dy; in step()
129 dy = adjDelta(-dy, minStep, maxStep); in step()
DTouchRotateActivity.java93 float dy = y - mPreviousY; in onTouchEvent() local
95 mRenderer.mAngleY += dy * TOUCH_SCALE_FACTOR; in onTouchEvent()
DFingerPaint.java102 float dy = Math.abs(y - mY); in touch_move() local
103 if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) { in touch_move()
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java286 float dy = ball.mPosY - curr.mPosY; in update() local
287 float dd = dx * dx + dy * dy; in update()
295 dy += ((float) Math.random() - 0.5f) * 0.0001f; in update()
296 dd = dx * dx + dy * dy; in update()
301 curr.mPosY -= dy * c; in update()
303 ball.mPosY += dy * c; in update()
/development/samples/browseable/ElevationDrag/src/com.example.android.elevationdrag/
DDragFrameLayout.java72 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { in DragFrameLayout()
73 super.onViewPositionChanged(changedView, left, top, dx, dy); in DragFrameLayout()
82 public int clampViewPositionVertical(View child, int top, int dy) { in DragFrameLayout()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java67 public void onDrag(float dx, float dy) { in onDrag() argument
69 mPosY += dy; in onDrag()
DVersionedGestureDetector.java50 public void onDrag(float dx, float dy); in onDrag() argument
/development/ndk/platforms/android-3/include/linux/
Dfb.h298 __u32 dy; member
307 __u32 dy; member
316 __u32 dy; member
/development/perftests/panorama/feature_stab/db_vlvm/
Ddb_feature_detection.cpp221 float dx,dy; in db_gxx_gxy_gyy_row_f() local
227 dy=Iy0[c]; in db_gxx_gxy_gyy_row_f()
229 Ixy0=dx*dy; in db_gxx_gxy_gyy_row_f()
230 Iyy0=dy*dy; in db_gxx_gxy_gyy_row_f()
233 dy=Iy1[c]; in db_gxx_gxy_gyy_row_f()
235 Ixy1=dx*dy; in db_gxx_gxy_gyy_row_f()
236 Iyy1=dy*dy; in db_gxx_gxy_gyy_row_f()
239 dy=Iy2[c]; in db_gxx_gxy_gyy_row_f()
241 Ixy2=dx*dy; in db_gxx_gxy_gyy_row_f()
242 Iyy2=dy*dy; in db_gxx_gxy_gyy_row_f()
[all …]
/development/ndk/platforms/android-L/include/linux/
Dfb.h345 __u32 dy; member
355 __u32 dy; member
365 __u32 dy; member
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetwork.java184 int dy = 0; in translateCommand() local
187 dy = Integer.parseInt(command.get(2)); in translateCommand()
194 .addPointer(0, dx, dy)); in translateCommand()
/development/cmds/monkey/
DREADME.NETWORK.txt71 trackball dx dy
74 simulates a user using the trackball. dx and dy indicates the amount