Home
last modified time | relevance | path

Searched refs:startX (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DBackground.java91 final int startX; in goToOverviewUnchecked() local
99 startX = endX = mLauncher.getDevice().getDisplayWidth() / 2; in goToOverviewUnchecked()
103 startX = getSwipeStartX(); in goToOverviewUnchecked()
104 endX = startX - swipeLength; in goToOverviewUnchecked()
108 mLauncher.swipeToState(startX, startY, endX, endY, 10, expectedState); in goToOverviewUnchecked()
141 final int startX; in quickSwitchToPreviousApp() local
147 startX = 0; in quickSwitchToPreviousApp()
153 startX = getSwipeStartX(); in quickSwitchToPreviousApp()
155 endX = startX; in quickSwitchToPreviousApp()
158 mLauncher.swipeToState(startX, startY, endX, endY, 20, expectedState); in quickSwitchToPreviousApp()
DLauncherInstrumentation.java778 void swipeToState(int startX, int startY, int endX, int endY, int steps, int expectedState) { in swipeToState() argument
780 () -> linearGesture(startX, startY, endX, endY, steps), in swipeToState()
826 final int startX; in scroll() local
833 startX = endX = rect.centerX(); in scroll()
841 startX = endX = rect.centerX(); in scroll()
852 startX = (int) (horizCenter - halfGestureWidth) + 1; in scroll()
860 startX = (int) (horizCenter + halfGestureWidth) - 1; in scroll()
870 () -> linearGesture(startX, startY, endX, endY, steps), in scroll()
872 "Didn't receive a scroll end message: " + startX + ", " + startY in scroll()
878 void linearGesture(int startX, int startY, int endX, int endY, int steps) { in linearGesture() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java83 public final int startX; field in MultiAttachmentLayout.Tile
88 private Tile(final int startX, final int startY, final int endX, final int endY) { in Tile() argument
89 this.startX = startX; in Tile()
96 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2, in getWidthMeasureSpec()
105 public static Tile large(final int startX, final int startY) { in large() argument
106 return new Tile(startX, startY, startX + 1, startY + 1); in large()
109 public static Tile wide(final int startX, final int startY) { in wide() argument
110 return new Tile(startX, startY, startX + 1, startY); in wide()
113 public static Tile small(final int startX, final int startY) { in small() argument
114 return new Tile(startX, startY, startX, startY); in small()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DTranslationAnimationCreator.java53 float startX, in createAnimation() argument
60 startX = startPosition - viewPosX + terminalX; in createAnimation()
64 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation()
66 view.setTranslationX(startX); in createAnimation()
67 if (startX == endX) { in createAnimation()
71 path.moveTo(startX, 0); in createAnimation()
96 View movingView, View viewInHierarchy, int startX, float terminalX) { in TransitionPositionListener() argument
99 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
DFadeAndShortSlide.java230 float startX = mSlideCalculator.getGoneX(sceneRoot, view, position, mDistance); in onAppear() local
233 view, endValues, left, startX, endX, APPEAR_INTERPOLATOR, this); in onAppear()
258 float startX = view.getTranslationX(); in onDisappear() local
262 view, startValues, left, startX, endX, DISAPPEAR_INTERPOLATOR, this); in onDisappear()
/packages/apps/Camera2/jni/
Djpegutil.h204 int startX; in LoadAt() local
206 transform_.Map(0, y, &startX, &startY); in LoadAt()
213 startX = min(startX, plane_.width - 1); in LoadAt()
217 startX = max(startX, 0); in LoadAt()
225 int dx = sgn(endX - startX); in LoadAt()
229 int plane_start = startX * plane_.pixel_stride + startY * plane_.row_stride; in LoadAt()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java356 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument
357 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll()
373 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
375 mScrollerX.startScroll(startX, dx, duration); in startScroll()
391 public boolean springBack(int startX, int startY, int minX, int maxX, int minY, int maxY) { in springBack() argument
395 final boolean spingbackX = mScrollerX.springback(startX, minX, maxX); in springBack()
400 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
402 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
432 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
446 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
[all …]
DScroller.java316 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument
317 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll()
333 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
338 mStartX = startX; in startScroll()
340 mFinalX = startX + dx; in startScroll()
366 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
397 mStartX = startX; in fling()
411 mFinalX = startX + Math.round(totalDistance * coeffX); in fling()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DRectFSpringAnim.java151 float startX = mCurrentCenterX; local
153 float minXValue = Math.min(startX, endX);
154 float maxXValue = Math.max(startX, endX);
155 mRectXAnim = new FlingSpringAnim(this, RECT_CENTER_X, startX, endX,
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialFavoritesViewHolderOnTouchListener.java37 private float startX; field in SpeedDialFavoritesViewHolderOnTouchListener
55 startX = event.getX(); in onTouch()
92 return Math.abs(startX - event.getX()) > configuration.getScaledTouchSlop() in moveEventExceedsTouchSlop()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DPageIndicatorDots.java244 float startX = (getWidth() - mNumPages * circleGap + mDotRadius) / 2; in onDraw() local
246 float x = startX + mDotRadius; in onDraw()
277 float startX = (getWidth() - mNumPages * circleGap + mDotRadius) / 2; in getActiveRect() local
281 sTempRect.left = startX + startCircle * circleGap; in getActiveRect()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTrimTimeBar.java149 private boolean inScrubber(float x, float y, int startX, int startY, Bitmap scrubber) { in inScrubber() argument
150 int scrubberRight = startX + scrubber.getWidth(); in inScrubber()
152 return startX < x && x < scrubberRight && startY < y && y < scrubberBottom; in inScrubber()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java76 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
78 mStartX = startX; in fling()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java2563 int startX, int startY,
2567 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY);
2571 public void startScroll(int startX, int startY, int dx, int dy) {
2572 mScroller.startScroll(startX, startY, dx, dy);
2577 public void startScroll(int startX, int dx, int duration) {
2580 mXScrollAnimator.setIntValues(startX, startX + dx);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java1433 public void setHandlesSwipeForView(View view, float startX, float startY) { in setHandlesSwipeForView() argument
1442 mSwipeStartX = location[0] + startX; in setHandlesSwipeForView()