Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DBaseRecentsViewStateController.java66 float translationX = scaleAndTranslation.translationX; in setState() local
68 translationX = -translationX; in setState()
70 mRecentsView.setTranslationX(translationX); in setState()
109 float translationX = scaleAndTranslation.translationX; in setStateWithAnimationInternal() local
111 translationX = -translationX; in setStateWithAnimationInternal()
113 setter.setFloat(mRecentsView, View.TRANSLATION_X, translationX, translateXInterpolator); in setStateWithAnimationInternal()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java193 final float translationX = mListItemView.getSwipeTranslationX(); in onTouchEvent() local
196 if (translationX != 0) { in onTouchEvent()
198 translationX > 0 ? SWIPE_DIRECTION_RIGHT : SWIPE_DIRECTION_LEFT; in onTouchEvent()
367 final float translationX = itemView.getSwipeTranslationX(); in animateRestore() local
370 && velocityX > 0 != translationX > 0) { // Right direction. in animateRestore()
371 duration = calculateTranslationDuration(translationX, velocityX); in animateRestore()
406 final float translationX = mListItemView.getSwipeTranslationX(); in isTargetSwipedFastEnough() local
410 && (velocityX > 0) == (translationX > 0) // Right direction. in isTargetSwipedFastEnough()
411 && Math.abs(translationX) > in isTargetSwipedFastEnough()
422 final float translationX = mListItemView.getSwipeTranslationX(); in isTargetSwipedFarEnough() local
[all …]
DConversationListItemView.java517 public void setSwipeTranslationX(final float translationX) { in setSwipeTranslationX() argument
518 mSwipeableContainer.setTranslationX(translationX); in setSwipeTranslationX()
519 if (translationX == 0) { in setSwipeTranslationX()
527 if (translationX > 0) { in setSwipeTranslationX()
DConversationListFragment.java408 return getNormalizedFabAnimator().translationX(direction * fabWidthWithLeftRightMargin); in dismissFab()
412 return getNormalizedFabAnimator().translationX(0).withEndAction(new Runnable() { in showFab()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java332 float translationX = mViewHolder.getSwipeTranslationX(); in onTouchEvent() local
336 if (translationX != 0) { in onTouchEvent()
338 (translationX > 0) in onTouchEvent()
416 float translationX = mViewHolder.getSwipeTranslationX(); in isTargetSwipedFastEnough() local
422 boolean isSameDirection = (velocityX > 0) == (translationX > 0); in isTargetSwipedFastEnough()
423 boolean hasEnoughMovement = Math.abs(translationX) > minWidthToTranslate; in isTargetSwipedFastEnough()
443 float translationX = mViewHolder.getSwipeTranslationX(); in isTargetSwipedFarEnough() local
450 boolean isSameDirection = !isVelocityHighEnough || ((velocityX > 0) == (translationX > 0)); in isTargetSwipedFarEnough()
451 boolean hasEnoughMovement = Math.abs(translationX) > minWidthToTranslate; in isTargetSwipedFarEnough()
DDismissAnimationHelper.java102 .translationX(swipeDirection == Direction.RIGHT ? viewWidth : -viewWidth) in animateDismiss()
120 .translationX(0) in animateRestore()
DHeadsUpNotificationOnTouchListener.java115 .translationX(dismissRight ? viewWidth : -viewWidth) in onTouch()
182 .translationX(0) in animateToCenter()
/packages/apps/Dialer/java/com/android/dialer/widget/
DFloatingActionButtonController.java133 int translationX = getTranslationXForAlignment(align); in align() local
138 .translationX(translationX + offsetX) in align()
144 fab.setTranslationX(translationX + offsetX); in align()
/packages/apps/Contacts/src/com/android/contacts/widget/
DFloatingActionButtonController.java132 int translationX = getTranslationXForAlignment(align); in align() local
137 .translationX(translationX + offsetX) in align()
143 mFloatingActionButtonContainer.setTranslationX(translationX + offsetX); in align()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.kt426 val translationX = (Math.max(mSnoozeButton.getLeft() - alarmRight, 0) + in hintSnooze() constant
428 getAlarmBounceAnimator(translationX, if (translationX < 0.0f) { in hintSnooze()
438 val translationX = (Math.max(mDismissButton.getLeft() - alarmRight, 0) + in hintDismiss() constant
440 getAlarmBounceAnimator(translationX, if (translationX < 0.0f) { in hintDismiss()
551 private fun getAlarmBounceAnimator(translationX: Float, hintResId: Int): ValueAnimator { in getAlarmBounceAnimator()
553 View.TRANSLATION_X, mAlarmButton.getTranslationX(), translationX, 0.0f) in getAlarmBounceAnimator()
DAlarmActivity.java454 final float translationX = Math.max(mSnoozeButton.getLeft() - alarmRight, 0) in hintSnooze() local
456 getAlarmBounceAnimator(translationX, translationX < 0.0f ? in hintSnooze()
463 final float translationX = Math.max(mDismissButton.getLeft() - alarmRight, 0) in hintDismiss() local
465 getAlarmBounceAnimator(translationX, translationX < 0.0f ? in hintDismiss()
573 private ValueAnimator getAlarmBounceAnimator(float translationX, final int hintResId) { in getAlarmBounceAnimator() argument
575 View.TRANSLATION_X, mAlarmButton.getTranslationX(), translationX, 0.0f); in getAlarmBounceAnimator()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSurfaceViewVideoCallFragment.java357 .translationX(0) in exitFullscreenMode()
366 .translationX(0) in exitFullscreenMode()
382 .translationX(0) in exitFullscreenMode()
396 .translationX(0) in exitFullscreenMode()
417 .translationX(previewOffsetStartShown.x) in exitFullscreenMode()
530 .translationX(offset.x) in enterFullscreenMode()
540 .translationX(offset.x) in enterFullscreenMode()
550 .translationX(offset.x) in enterFullscreenMode()
561 .translationX(offset.x) in enterFullscreenMode()
582 .translationX(0) in enterFullscreenMode()
DVideoCallFragment.java449 .translationX(0) in exitFullscreenMode()
465 .translationX(0) in exitFullscreenMode()
481 .translationX(0) in exitFullscreenMode()
495 .translationX(0) in exitFullscreenMode()
516 .translationX(previewOffsetStartShown.x) in exitFullscreenMode()
631 .translationX(offset.x) in enterFullscreenMode()
641 .translationX(offset.x) in enterFullscreenMode()
651 .translationX(offset.x) in enterFullscreenMode()
662 .translationX(offset.x) in enterFullscreenMode()
683 .translationX(0) in enterFullscreenMode()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderAnimationManager.java334 Animator translationX = getAnimator(btv, View.TRANSLATION_X, xDistance, 0f); in addPreviewItemAnimators() local
335 translationX.setInterpolator(previewItemInterpolator); in addPreviewItemAnimators()
336 play(animatorSet, translationX); in addPreviewItemAnimators()
351 translationX.setStartDelay(delay); in addPreviewItemAnimators()
355 translationX.setDuration(translationX.getDuration() - delay); in addPreviewItemAnimators()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java347 public float translationX;
350 public ScaleAndTranslation(float scale, float translationX, float translationY) {
352 this.translationX = translationX;
DWorkspaceStateTransitionAnimation.java127 scaleAndTranslation.translationX, translationInterpolator); in setWorkspaceProperty()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/
DOverviewPeekState.java37 result.translationX = NORMAL.getOverviewScaleAndTranslation(launcher).translationX in getOverviewScaleAndTranslation()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewAnimationTestActivity.java126 mWebView.animate().translationX(100f).translationY(100f); in runTranslate()
128 mWebView.animate().translationX(0f).translationY(0f); in runTranslate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DButtonSwitcher.java165 return button.animate().translationX(0); in animateButton()
168 return button.animate().translationX(outerX - innerX); in animateButton()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationBaseViewHolder.java295 public void setSwipeTranslationX(float translationX) { in setSwipeTranslationX() argument
296 itemView.setTranslationX(translationX); in setSwipeTranslationX()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DNoButtonQuickSwitchTouchController.java239 fromScaleAndTranslation.translationX = recentsView.getOffscreenTranslationX(startScale); in setupOverviewAnimators()
244 recentsView.setTranslationX(fromScaleAndTranslation.translationX); in setupOverviewAnimators()
253 toScaleAndTranslation.translationX)); in setupOverviewAnimators()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageView.java203 public void setTranslationX(float translationX) { in setTranslationX() argument
207 super.setTranslationX(translationX); in setTranslationX()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DPropertyListBuilder.java16 public PropertyListBuilder translationX(float value) { in translationX() method in PropertyListBuilder
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java501 final float translationX = in layoutWithTranslationX() local
505 (int) (drawArea.centerX() + (mLeftPosition - refCenter + translationX) * scale); in layoutWithTranslationX()
2223 final float translationX = current.getTranslationX() * mScale;
2226 final ValueAnimator decelerationX = ValueAnimator.ofFloat(translationX,
2227 translationX + duration / factor * velocityX);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseDialogFragment.java212 v.animate().alpha(1f).translationX(0).setDuration(duration).setStartDelay(delay); in prepareAndAnimateView()

12