/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | HandleView.java | 148 final int deltaX = Math.round((ev.getX() - mStartMoveX)); in onTouchEvent() local 149 if (deltaX != mLastDeltaX) { in onTouchEvent() 150 mLastDeltaX = deltaX; in onTouchEvent() 154 mListener.onMove(this, getLeft(), deltaX + getWidth()); in onTouchEvent() 156 mListener.onMove(this, getLeft(), deltaX); in onTouchEvent() 190 final int deltaX = Math.round((eventX - mStartMoveX)); in endActionMove() local 192 mListener.onMoveEnd(this, getLeft(), deltaX + getWidth()); in endActionMove() 194 mListener.onMoveEnd(this, getLeft(), deltaX); in endActionMove()
|
D | ImageViewTouchBase.java | 490 float deltaX = 0, deltaY = 0; in center() local 506 deltaX = (viewWidth - width) / 2 - rect.left; in center() 508 deltaX = -rect.left; in center() 510 deltaX = viewWidth - rect.right; in center() 514 mSuppMatrix.postTranslate(deltaX, deltaY); in center()
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
D | CropView.java | 143 private void moveEdges(float deltaX, float deltaY) { in moveEdges() argument 147 deltaX = (deltaX > 0) ? Math.min(displayBounds.right - cropped.right, deltaX) in moveEdges() 148 : Math.max(displayBounds.left - cropped.left, deltaX); in moveEdges() 151 cropped.offset(deltaX, deltaY); in moveEdges() 157 cropped.left = Math.min(cropped.left + deltaX, cropped.right - minWidth); in moveEdges() 163 cropped.right = Math.max(cropped.right + deltaX, cropped.left + minWidth); in moveEdges()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AppWidgetResizeFrame.java | 168 public void updateDeltas(int deltaX, int deltaY) { in updateDeltas() argument 170 mDeltaX = Math.max(-mBaselineX, deltaX); in updateDeltas() 173 mDeltaX = Math.min(mDragLayer.getWidth() - (mBaselineX + mBaselineWidth), deltaX); in updateDeltas() 186 public void visualizeResizeForDelta(int deltaX, int deltaY) { in visualizeResizeForDelta() argument 187 visualizeResizeForDelta(deltaX, deltaY, false); in visualizeResizeForDelta() 193 private void visualizeResizeForDelta(int deltaX, int deltaY, boolean onDismiss) { in visualizeResizeForDelta() argument 194 updateDeltas(deltaX, deltaY); in visualizeResizeForDelta() 222 int deltaX = mDeltaX + mDeltaXAddOn; in resizeWidgetIfNeeded() local 225 float hSpanIncF = 1.0f * deltaX / xThreshold - mRunningHInc; in resizeWidgetIfNeeded()
|
D | PagedView.java | 1201 final float deltaX = mLastMotionX + mLastMotionXRemainder - x; in onTouchEvent() local 1203 mTotalMotionX += Math.abs(deltaX); in onTouchEvent() 1208 if (Math.abs(deltaX) >= 1.0f) { in onTouchEvent() 1209 mTouchX += deltaX; in onTouchEvent() 1212 scrollBy((int) deltaX, 0); in onTouchEvent() 1213 if (DEBUG) Log.d(TAG, "onTouchEvent().Scrolling: " + deltaX); in onTouchEvent() 1218 mLastMotionXRemainder = deltaX - (int) deltaX; in onTouchEvent() 1235 final int deltaX = (int) (x - mDownMotionX); in onTouchEvent() local 1237 boolean isSignificantMove = Math.abs(deltaX) > pageWidth * in onTouchEvent() 1249 if (Math.abs(deltaX) > pageWidth * RETURN_TO_ORIGINAL_PAGE_THRESHOLD && in onTouchEvent() [all …]
|
D | DragView.java | 86 final int deltaX = (int) ((value * offsetX) - mOffsetX); in DragView() 89 mOffsetX += deltaX; in DragView() 100 setTranslationX(getTranslationX() + deltaX); in DragView()
|
D | CellLayout.java | 1586 int deltaX = 0; in addViewInDirection() local 1596 deltaX = -1; in addViewInDirection() 1599 deltaX = 1; in addViewInDirection() 1616 boolean inBounds = x - deltaX >= 0 && x -deltaX < mCountX in addViewInDirection() 1618 if (inBounds && occupied[x - deltaX][y - deltaY]) { in addViewInDirection() 1685 int deltaX = mTempLocation[0] - boundingRect.left; 1689 c.x += deltaX; 1861 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument 1862 double angle = Math.atan(((float) deltaY) / deltaX); in computeDirectionVector() 1867 result[0] = (int) Math.signum(deltaX); in computeDirectionVector() [all …]
|
D | Workspace.java | 702 float deltaX = Math.abs(ev.getX() - mXDown); in determineScrollingStart() local 705 if (Float.compare(deltaX, 0f) == 0) return; in determineScrollingStart() 707 float slope = deltaY / deltaX; in determineScrollingStart() 710 if (deltaX > mTouchSlop || deltaY > mTouchSlop) { in determineScrollingStart()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 202 float deltaX = 0, deltaY = 0; in center() local 218 deltaX = (viewWidth - width) / 2 - rect.left; in center() 220 deltaX = -rect.left; in center() 222 deltaX = viewWidth - rect.right; in center() 226 postTranslate(deltaX, deltaY); in center()
|
D | Util.java | 156 int deltaX = source.getWidth() - targetWidth; in transform() local 158 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform() 169 int deltaXHalf = Math.max(0, deltaX / 2); in transform()
|
D | CropImage.java | 611 protected void postTranslate(float deltaX, float deltaY) { in postTranslate() argument 612 super.postTranslate(deltaX, deltaY); in postTranslate() 615 hv.mMatrix.postTranslate(deltaX, deltaY); in postTranslate()
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1120 double deltaX = X - m_wb.x; in FrameToMosaic() local 1122 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1123 double deltaTheta = asin(deltaX / length); in FrameToMosaic() 1130 double deltaX = X - m_wb.x; in FrameToMosaic() local 1132 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1238 double deltaX = currX - prevX; in SelectRelevantFrames() local 1240 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames() 1242 if (fabs(deltaX) > STRIP_SEPARATION_THRESHOLD_PXLS || in SelectRelevantFrames() 1296 double deltaX = currX - prevX; in ComputeBlendParameters() local 1301 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1100 double deltaX = X - m_wb.x; in FrameToMosaic() local 1102 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1103 double deltaTheta = asin(deltaX / length); in FrameToMosaic() 1110 double deltaX = X - m_wb.x; in FrameToMosaic() local 1112 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1218 double deltaX = currX - prevX; in SelectRelevantFrames() local 1220 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames() 1222 if (fabs(deltaX) > STRIP_SEPARATION_THRESHOLD_PXLS || in SelectRelevantFrames() 1276 double deltaX = currX - prevX; in ComputeBlendParameters() local 1281 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters() [all …]
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
D | fall.rs | 88 float deltaX; 117 leaf->deltaX = rsRand(-0.01f, 0.01f); 259 leaf->x = x + leaf->deltaX * g_DT; 285 leaf->deltaX = rsRand(-0.01f, 0.01f);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | KeyboardView.java | 388 float deltaX = me2.getX() - me1.getX(); in initGestureDetector() 396 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector() 403 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 3964 private void doScroll(MotionEvent e1, MotionEvent e2, float deltaX, float deltaY) { in doScroll() argument 3972 mInitialScrollX += deltaX; in doScroll() 4065 int deltaX = (int) e2.getX() - (int) e1.getX(); in doFling() local 4066 switchViews(deltaX < 0, mViewStartX, mViewWidth, velocityX); in doFling() 4103 private boolean initNextView(int deltaX) { in initNextView() argument 4109 if (deltaX > 0) { in initNextView()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionsView.java | 812 public boolean onScroll(MotionEvent down, MotionEvent me, float deltaX, float deltaY) {
|