Home
last modified time | relevance | path

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

12

/development/samples/ApiDemos/src/com/example/android/apis/animation/
DCustomEvaluator.java76 public float getY() { in getY() method in CustomEvaluator.XYHolder
90 startXY.getY() + fraction * (endXY.getY() - startXY.getY())); in evaluate()
104 mBall.setY(xyHolder.getY()); in setXY()
108 return new XYHolder(mBall.getX(), mBall.getY()); in getXY()
164 canvas.translate(ball.getX(), ball.getY()); in onDraw()
DMultiPropertyAnimation.java90 ball.getY(), getHeight() - BALL_SIZE).setDuration(DURATION); in createAnimation()
95 PropertyValuesHolder pvhY = PropertyValuesHolder.ofFloat("y", ball.getY(), in createAnimation()
112 PropertyValuesHolder pvTY = PropertyValuesHolder.ofFloat("y", ball.getY(), in createAnimation()
113 ball.getY() - BALL_SIZE/2f); in createAnimation()
120 pvhY = PropertyValuesHolder.ofFloat("y", ball.getY(), getHeight() - BALL_SIZE); 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()
87 float startY = newBall.getY(); in onTouchEvent()
90 float eventY = event.getY(); in onTouchEvent()
178 canvas.translate(shapeHolder.getX(), shapeHolder.getY()); in onDraw()
DReversingAnimation.java80 bounceAnim = ObjectAnimator.ofFloat(ball, "y", ball.getY(), getHeight() - 50f). in createAnimation()
125 canvas.translate(ball.getX(), ball.getY()); in onDraw()
DAnimationSeeking.java110 ball.getY(), getHeight() - BALL_SIZE).setDuration(1500); in createAnimation()
149 canvas.translate(ball.getX(), ball.getY()); in onDraw()
DShapeHolder.java53 public float getY() { in getY() method in ShapeHolder
DAnimationLoading.java185 canvas.translate(ball.getX(), ball.getY()); in onDraw()
187 canvas.translate(-ball.getX(), -ball.getY()); in onDraw()
DAnimatorEvents.java121 ball.getY(), getHeight() - 50f).setDuration(1500); in createAnimation()
193 canvas.translate(ball.getX(), ball.getY()); in onDraw()
/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.java51 final float y = event.getY(pointerIndex); in onResolvePointerIcon()
DLivePointerIconButton.java69 final float relativeY = (event.getY(pointerIndex) / getHeight()) - 0.5f; in onResolvePointerIcon()
/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()
107 mPreviousY = e.getY(); in onTouchEvent()
116 updateAngles(e.getX(), e.getY(), TOUCH_SCALE_FACTOR); in onCapturedPointerEvent()
DShadowCardDrag.java216 downY = event.getY() - mCard.getTranslationY(); in onCreate()
224 mDragState.onDown(event.getDownTime(), event.getX(), event.getY()); in onCreate()
229 mCard.setTranslationY(event.getY() - downY); in onCreate()
231 mDragState.onMove(event.getEventTime(), event.getX(), event.getY()); in onCreate()
DVertices.java94 float[] pt = { event.getX(), event.getY() }; in onTouchEvent()
DPatterns.java102 float y = event.getY(); in onTouchEvent()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DVersionedGestureDetector.java63 return ev.getY(); in getActiveY()
107 return ev.getY(mActivePointerIndex); in getActiveY()
131 mLastTouchY = ev.getY(newPointerIndex); in onTouchEvent()
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/
DScalingOffsettingHelper.java42 float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset; in updateChild()
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
DMyGLSurfaceView.java53 float y = e.getY(); in onTouchEvent()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DMyGLSurfaceView.java56 float y = e.getY(); in onTouchEvent()
/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/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DCardLayout.java82 mDownY = event.getY(); in onInterceptTouchEvent()
/development/samples/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/
DImageDragListener.java45 processLocation(event.getX(), event.getY()); in onDrag()
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/
DImageDragListener.java53 processLocation(event.getX(), event.getY()); in onDrag()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayoutActivity.java386 if (e2.getY() - mParentPositionY <= mFoldLayout.getHeight() in onScroll()
387 && e2.getY() - mParentPositionY >= 0) { in onScroll()
388 if ((e2.getY() - mParentPositionY) > mFoldLayout.getHeight() * mAnchorFactor) { in onScroll()
/development/samples/Snake/src/com/example/android/snake/
DSnake.java84 float y = event.getY() / v.getHeight(); in onCreate()

12