/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | CardStreamAnimator.java | 72 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
|
D | CardStreamLinearLayout.java | 91 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 …]
|
D | DefaultCardStreamAnimator.java | 76 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/ |
D | ListViewItemAnimations.java | 122 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/ |
D | CurvedMotion.java | 71 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/ |
D | ListViewRemovalAnimation.java | 98 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/ |
D | Blend.cpp | 1102 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/ |
D | PlayerSetupActivity.java | 165 float deltaX = oldLocationInWindow[0] - locationInWindow[0]; in buttonClick() 168 buttonCopy.setTranslationX(deltaX); in buttonClick()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | TouchPaint.java | 359 private void moveTrackball(float deltaX, float deltaY) { in moveTrackball() argument 363 mCurX = Math.max(Math.min(mCurX + deltaX, curW - 1), 0); in moveTrackball()
|