Home
last modified time | relevance | path

Searched refs:getX (Results 1 – 25 of 45) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/animation/
DCustomEvaluator.java68 public float getX() { in getX() method in CustomEvaluator.XYHolder
89 return new XYHolder(startXY.getX() + fraction * (endXY.getX() - startXY.getX()), in evaluate()
103 mBall.setX(xyHolder.getX()); in setXY()
108 return new XYHolder(mBall.getX(), mBall.getY()); in getXY()
164 canvas.translate(ball.getX(), ball.getY()); in onDraw()
DMultiPropertyAnimation.java110 PropertyValuesHolder pvTX = PropertyValuesHolder.ofFloat("x", ball.getX(), in createAnimation()
111 ball.getX() - BALL_SIZE/2f); in createAnimation()
121 float ballX = ball.getX(); in createAnimation()
167 canvas.translate(ball.getX(), ball.getY()); in onDraw()
169 canvas.translate(-ball.getX(), -ball.getY()); in onDraw()
DBouncingBalls.java84 ShapeHolder newBall = addBall(event.getX(), event.getY()); in onTouchEvent()
95 ValueAnimator squashAnim1 = ObjectAnimator.ofFloat(newBall, "x", newBall.getX(), in onTouchEvent()
96 newBall.getX() - 25f); in onTouchEvent()
178 canvas.translate(shapeHolder.getX(), shapeHolder.getY()); in onDraw()
DAnimatorEvents.java129 ball.getX(), ball.getX() + 300).setDuration(1000); in createAnimation()
193 canvas.translate(ball.getX(), ball.getY()); in onDraw()
DAnimationLoading.java185 canvas.translate(ball.getX(), ball.getY()); in onDraw()
187 canvas.translate(-ball.getX(), -ball.getY()); in onDraw()
DShapeHolder.java47 public float getX() { in getX() method in ShapeHolder
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchRotateActivity.java90 updateAngles(e.getX(), e.getY(), TRACKBALL_SCALE_FACTOR); in onTrackballEvent()
98 updateAngles(e.getX() - mPreviousX, e.getY() - mPreviousY, TOUCH_SCALE_FACTOR); in onTouchEvent()
106 mPreviousX = e.getX(); in onTouchEvent()
116 updateAngles(e.getX(), e.getY(), TOUCH_SCALE_FACTOR); in onCapturedPointerEvent()
DShadowCardDrag.java215 downX = event.getX() - mCard.getTranslationX(); in onCreate()
224 mDragState.onDown(event.getDownTime(), event.getX(), event.getY()); in onCreate()
228 mCard.setTranslationX(event.getX() - downX); in onCreate()
231 mDragState.onMove(event.getEventTime(), event.getX(), event.getY()); in onCreate()
DTouchPaint.java354 moveTrackball(event.getX() * scaleX, event.getY() * scaleY); in onTrackballEvent()
421 event.getX(j), in onTouchOrHoverEvent()
430 mCurX = event.getX(); in onTouchOrHoverEvent()
DVertices.java94 float[] pt = { event.getX(), event.getY() }; in onTouchEvent()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DHover.java82 event.getX(), event.getY())); in onCreate()
87 event.getX(), event.getY())); in onCreate()
92 event.getX(), event.getY())); in onCreate()
DSystemPointerIconButton.java50 final float x = event.getX(pointerIndex); in onResolvePointerIcon()
DLivePointerIconButton.java68 final float relativeX = (event.getX(pointerIndex) / getWidth()) - 0.5f; in onResolvePointerIcon()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DVersionedGestureDetector.java59 return ev.getX(); in getActiveX()
102 return ev.getX(mActivePointerIndex); in getActiveX()
130 mLastTouchX = ev.getX(newPointerIndex); in onTouchEvent()
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DCardLayout.java77 mSwiping = Math.abs(mDownX - event.getX()) > mTouchSlop; in onInterceptTouchEvent()
81 mDownX = event.getX(); in onInterceptTouchEvent()
DCardStreamLinearLayout.java75 mDownX = event.getX();
86 float x = event.getX() + v.getTranslationX();
106 float x = event.getX() + v.getTranslationX();
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java88 mDownX = event.getX();
97 float x = event.getX() + v.getTranslationX();
117 float x = event.getX() + v.getTranslationX();
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
DTouchDisplayView.java154 TouchHistory data = TouchHistory.obtain(event.getX(0), event.getY(0), in onTouchEvent()
184 TouchHistory data = TouchHistory.obtain(event.getX(index), event.getY(index), in onTouchEvent()
268 data.setTouch(event.getX(index), event.getY(index), in onTouchEvent()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java107 mDownX = event.getX();
118 float x = event.getX();
143 float x = event.getX();
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
DMyGLSurfaceView.java52 float x = e.getX(); in onTouchEvent()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DMyGLSurfaceView.java55 float x = e.getX(); in onTouchEvent()
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/
DImageDragListener.java53 processLocation(event.getX(), event.getY()); in onDrag()
/development/samples/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/
DImageDragListener.java45 processLocation(event.getX(), event.getY()); in onDrag()
/development/samples/Snake/src/com/example/android/snake/
DSnake.java83 float x = event.getX() / v.getWidth(); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DSpriteTextRenderer.java224 float x = mTriangle.getX(triangleVertex); in drawLabel()
334 public float getX(int vertex) { in getX() method in Triangle

12