Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripLayout.java340 if (mFilmstripContentLayout.getTranslationX() == 0f && in onScroll()
345 if (dx < 0 && mFilmstripContentLayout.getTranslationX() == 0) { in onScroll()
356 if (dx > 0 && mFilmstripContentLayout.getTranslationX() == getMeasuredWidth()) { in onScroll()
362 float translate = mFilmstripContentLayout.getTranslationX() - dx; in onScroll()
446 if (mFilmstripContentLayout.getTranslationX() == 0f) { in onDown()
454 if (mFilmstripContentLayout.getTranslationX() == 0f) { in onUp()
461 if (mFilmstripContentLayout.getTranslationX() >= getMeasuredWidth() / 2) { in onUp()
479 if (mFilmstripContentLayout.getTranslationX() == 0f) { in onScaleEnd()
526 float translation = mFilmstripContentLayout.getTranslationX() - mOffset; in draw()
DFilmstripView.java274 public float getTranslationX() { in getTranslationX() method in FilmstripView.ViewItem
275 return mView.getTranslationX() / mFilmstrip.mScale; in getTranslationX()
331 runAnimation(mTranslationXAnimator, getTranslationX(), targetX, duration_ms, in animateTranslationX()
392 setTranslationX(getTranslationX() + transX * mFilmstrip.mScale); in translateXScaledBy()
545 float transX = mView.getTranslationX(); in postScale()
1206 currItem.setTranslationX(currItem.getTranslationX() * scaleFraction); in layoutViewItems()
1458 && mViewItems[i].getTranslationX() != 0f) { in animateItemRemoval()
2223 final float translationX = current.getTranslationX() * mScale;
2759 float transX = curr.getTranslationX() * mScale - dx;
DCling.java91 int currentLeft = mLocation[0] - (int) getTranslationX(); in adjustPosition()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeHelper.java150 float pos = view.getTranslationX(); in getAlphaForOffset()
164 float pos = view.getTranslationX(); in getTextAlphaForOffset()
244 mInitialTouchPosX = ev.getX() - mCurrAnimView.getTranslationX(); in onInterceptTouchEvent()
298 (int) (Math.abs(newPos - animView.getTranslationX()) * 1000f / Math in determineDuration()
308 if (velocity < 0 || (velocity == 0 && animView.getTranslationX() < 0) in determinePos()
310 || (velocity == 0 && animView.getTranslationX() == 0 && mSwipeDirection == Y)) { in determinePos()
412 float translation = Math.abs(mCurrAnimView.getTranslationX()); in onTouchEvent()
421 && (velocity > 0) == (mCurrAnimView.getTranslationX() > 0) in onTouchEvent()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DTranslationAnimationCreator.java57 float terminalX = view.getTranslationX(); in createAnimation()
99 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
109 mTransitionPosition = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
118 mPausedX = mMovingView.getTranslationX(); in onAnimationPause()
DFadeAndShortSlide.java63 x = view.getTranslationX() + distance;
65 x = view.getTranslationX() - distance;
80 x = view.getTranslationX() - distance;
82 x = view.getTranslationX() + distance;
229 float endX = view.getTranslationX(); in onAppear()
258 float startX = view.getTranslationX(); in onDisappear()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationMainView.java62 return view.mTextAndBackground.getTranslationX();
193 final float startTranslation = mTextAndBackground.getTranslationX(); in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java339 if (getTranslationX() + l < 0 || getTranslationX() + r > dragLayer.getWidth()) { in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAnimUtils.java106 return view.getTranslationX();
DPagedView.java1653 float left = child.getLeft() + child.getTranslationX() - getScrollX(); in getVisibleChildrenRange()
DCellLayout.java2003 initDeltaX = child.getTranslationX(); in setInitialAnimationValues()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewAnimationTestActivity.java125 if (mWebView.getTranslationX() == 0f) { in runTranslate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DButtonSwitcher.java161 final float innerX = button.getX() - button.getTranslationX(); in animateButton()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java228 ev.offsetLocation(getTranslationX(), 0); in dispatchTouchEvent()
232 ev.offsetLocation(-getTranslationX(), 0); in dispatchTouchEvent()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTaskViewUtils.java146 mThumbnailRect.offset(-v.getTranslationX(), -v.getTranslationY()); in getRecentsWindowAnimator()
DLauncherActivityControllerHelper.java310 fromTranslationX = recentsView.getTranslationX();
DWindowTransformSwipeHandler.java644 float prevTranslationX = mRecentsView.getTranslationX(); in maybeUpdateRecentsAttachedState()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationBaseViewHolder.java289 return itemView.getTranslationX(); in getSwipeTranslationX()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAnimator.java116 final float prevTranslationX = view.getTranslationX(); in animateMove()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListItemView.java513 return mSwipeableContainer.getTranslationX(); in getSwipeTranslationX()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java638 final float oldTranslateX = v.getTranslationX(); in realTimeReorder()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.java575 View.TRANSLATION_X, mAlarmButton.getTranslationX(), translationX, 0.0f); in getAlarmBounceAnimator()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownMethod.java118 view.setTranslationX(MathUtil.lerp(view.getTranslationX(), newX, SWIPE_LERP_PROGRESS_FACTOR)); in moveTowardX()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DRecentsView.java694 float pageCenter = page.getLeft() + page.getTranslationX() + halfPageWidth; in updateCurveProperties()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java2319 h.mLocationInParent = h.mLocation + view.getTranslationX();