Home
last modified time | relevance | path

Searched refs:dx (Results 1 – 19 of 19) sorted by relevance

/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
DMyGLSurfaceView.java58 float dx = x - mPreviousX; in onTouchEvent() local
63 dx = dx * -1 ; in onTouchEvent()
73 ((dx + dy) * TOUCH_SCALE_FACTOR)); // = 180.0f / 320 in onTouchEvent()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DMyGLSurfaceView.java61 float dx = x - mPreviousX; in onTouchEvent() local
66 dx = dx * -1 ; in onTouchEvent()
76 ((dx + dy) * TOUCH_SCALE_FACTOR)); // = 180.0f / 320 in onTouchEvent()
/development/samples/SampleInputMethodAccessibilityService/src/com/example/android/sampleinputmethodaccessibilityservice/
DDragToMoveTouchListener.java25 void onMove(int dx, int dy); in onMove() argument
58 final float dx = x - mLastTouchX; in onTouch() local
60 mCallback.onMove((int) dx, (int) dy); in onTouch()
DOverlayWindowBuilder.java92 contentFrame.setOnTouchListener(new DragToMoveTouchListener((dx, dy) -> { in show()
95 lp.x += dx; in show()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapMesh.java91 float dx = cx - x; in warp() local
93 float dd = dx*dx + dy*dy; in warp()
104 dst[i+0] = x + dx * pull; in warp()
DWindowSurface.java100 float x, y, dx, dy; field in WindowSurface.MovingPoint
105 dx = (float)(Math.random()*minStep*2) + 1; in init()
119 x += dx; in step()
123 dx = adjDelta(-dx, minStep, maxStep); in step()
DTouchRotateActivity.java128 private void updateAngles(float dx, float dy, float scaleFactor) { in updateAngles() argument
129 if (dx != 0 && dy != 0) { in updateAngles()
130 mRenderer.mAngleX += dx * scaleFactor; in updateAngles()
DFingerPaint.java101 float dx = Math.abs(x - mX); in touch_move() local
103 if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) { in touch_move()
/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()
77 public int clampViewPositionHorizontal(View child, int left, int dx) { in DragFrameLayout()
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java285 float dx = ball.mPosX - curr.mPosX; in update() local
287 float dd = dx * dx + dy * dy; in update()
294 dx += ((float) Math.random() - 0.5f) * 0.0001f; in update()
296 dd = dx * dx + dy * dy; in update()
300 curr.mPosX -= dx * c; in update()
302 ball.mPosX += dx * c; in update()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java67 public void onDrag(float dx, float dy) { in onDrag() argument
68 mPosX += dx; in onDrag()
DVersionedGestureDetector.java50 public void onDrag(float dx, float dy); in onDrag() argument
/development/tools/winscope/src/viewers/components/rects/
Dtypes3d.ts24 constructor(public dx: number, public dy: number) {} property in Distance2D
Dmapper3d.ts94 this.panScreenDistance.dx += distance.dx;
102 this.panScreenDistance.dx = 0;
Dcanvas.ts66 const panFactorX = scene.camera.panScreenDistance.dx / this.canvasRects.clientWidth;
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetwork.java184 int dx = 0; in translateCommand() local
187 dx = Integer.parseInt(command.get(1)); in translateCommand()
195 .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
/development/tools/idegen/
Dexcluded-paths24 ^dalvik/dx/src/junit$
/development/tools/apkcheck/
DREADME.txt174 dalvik.annotation.InnerClass. These are emitted by "dx", and referenced