Home
last modified time | relevance | path

Searched refs:deltaX (Results 1 – 9 of 9) sorted by relevance

/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DCardStreamAnimator.java72 public abstract ObjectAnimator getSwipeInAnimator(View view, float deltaX, float deltaY); in getSwipeInAnimator() argument
83 public abstract ObjectAnimator getSwipeOutAnimator(View view, float deltaX, float deltaY); in getSwipeOutAnimator() argument
106 public ObjectAnimator getSwipeInAnimator(View view, float deltaX, float deltaY) { in getSwipeInAnimator() argument
111 public ObjectAnimator getSwipeOutAnimator(View view, float deltaX, float deltaY) { in getSwipeOutAnimator() argument
DCardStreamLinearLayout.java91 float deltaX = x - mDownX;
94 if (!mSwiping && isSwiping(deltaX, deltaY)) {
98 swipeView(v, deltaX, deltaY);
108 float deltaX = x - mDownX;
110 float deltaXAbs = Math.abs(deltaX);
115 handleViewSwipingOut(v, deltaX, deltaY);
117 handleViewSwipingIn(v, deltaX, deltaY);
271 protected boolean isSwiping(float deltaX, float deltaY) { in isSwiping() argument
279 float absDeltaX = Math.abs(deltaX); in isSwiping()
295 protected void swipeView(View child, float deltaX, float deltaY) { in swipeView() argument
[all …]
DDefaultCardStreamAnimator.java76 public ObjectAnimator getSwipeInAnimator(View view, float deltaX, float deltaY){ in getSwipeInAnimator() argument
78 float deltaXAbs = Math.abs(deltaX); in getSwipeInAnimator()
97 public ObjectAnimator getSwipeOutAnimator(View view, float deltaX, float deltaY){ in getSwipeOutAnimator() argument
102 float deltaXAbs = Math.abs(deltaX); in getSwipeOutAnimator()
107 endX = deltaX < 0 ? -view.getWidth() : view.getWidth(); in getSwipeOutAnimator()
108 if (deltaX > 0) in getSwipeOutAnimator()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java122 float deltaX = x - mDownX;
123 float deltaXAbs = Math.abs(deltaX);
132 setSwipePosition(v, deltaX);
147 float deltaX = x - mDownX;
148 float deltaXAbs = Math.abs(deltaX);
155 endX = deltaX < 0 ? -v.getWidth() : v.getWidth();
238 private void setSwipePosition(View view, float deltaX) { in setSwipePosition() argument
239 float fraction = Math.abs(deltaX) / view.getWidth(); in setSwipePosition()
241 view.setTranslationX(deltaX); in setSwipePosition()
245 TranslateAnimation swipeAnim = new TranslateAnimation(deltaX, deltaX, 0, 0); in setSwipePosition()
[all …]
/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DCurvedMotion.java71 int deltaX = left - oldLeft; in onCreate()
76 path.moveTo(-deltaX, -deltaY); in onCreate()
77 path.curveTo(-(deltaX/2), -deltaY, 0, -deltaY/2, 0, 0); in onCreate()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java98 float deltaX = x - mDownX;
99 float deltaXAbs = Math.abs(deltaX);
118 float deltaX = x - mDownX;
119 float deltaXAbs = Math.abs(deltaX);
127 endX = deltaX < 0 ? -v.getWidth() : v.getWidth();
/development/perftests/panorama/feature_mos/src/mosaic/
DBlend.cpp1102 double deltaX = X - m_wb.x; in FrameToMosaic() local
1104 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic()
1105 double deltaTheta = asin(deltaX / length); in FrameToMosaic()
1112 double deltaX = X - m_wb.x; in FrameToMosaic() local
1114 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic()
1220 double deltaX = currX - prevX; in SelectRelevantFrames() local
1222 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames()
1224 if (fabs(deltaX) > STRIP_SEPARATION_THRESHOLD_PXLS || in SelectRelevantFrames()
1278 double deltaX = currX - prevX; in ComputeBlendParameters() local
1283 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters()
[all …]
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/
DPlayerSetupActivity.java165 float deltaX = oldLocationInWindow[0] - locationInWindow[0]; in buttonClick()
168 buttonCopy.setTranslationX(deltaX); in buttonClick()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java359 private void moveTrackball(float deltaX, float deltaY) { in moveTrackball() argument
363 mCurX = Math.max(Math.min(mCurX + deltaX, curW - 1), 0); in moveTrackball()