Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuListViewTouchHandlerTest.java122 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionDownEvent_shouldCancelAnimations()
137 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition()
141 MotionEvent.ACTION_MOVE, mStubMenuView.getTranslationX() + offset, in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition()
148 assertThat(mStubMenuView.getTranslationX()).isEqualTo(offset); in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition()
158 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionMoveEvent_shouldShowDismissView()
162 MotionEvent.ACTION_MOVE, mStubMenuView.getTranslationX() + offset, in onActionMoveEvent_shouldShowDismissView()
177 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionMoveEvent_shouldShowInteractView()
181 MotionEvent.ACTION_MOVE, mStubMenuView.getTranslationX() + offset, in onActionMoveEvent_shouldShowInteractView()
195 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in dragAndDrop_shouldFlingMenuThenSpringToEdge()
199 MotionEvent.ACTION_MOVE, mStubMenuView.getTranslationX() + offset, in dragAndDrop_shouldFlingMenuThenSpringToEdge()
[all …]
DMenuItemAccessibilityDelegateTest.java140 assertThat(mMenuView.getTranslationX()).isEqualTo(mDraggableBounds.left); in performMoveTopLeftAction_matchPosition()
151 assertThat(mMenuView.getTranslationX()).isEqualTo(mDraggableBounds.right); in performMoveTopRightAction_matchPosition()
162 assertThat(mMenuView.getTranslationX()).isEqualTo(mDraggableBounds.left); in performMoveBottomLeftAction_matchPosition()
173 assertThat(mMenuView.getTranslationX()).isEqualTo(mDraggableBounds.right); in performMoveBottomRightAction_matchPosition()
/frameworks/base/core/java/android/transition/
DSlide.java79 return view.getTranslationX(); in getGoneX()
86 return view.getTranslationX() - sceneRoot.getWidth() * fraction;
96 x = view.getTranslationX() + sceneRoot.getWidth() * fraction;
98 x = view.getTranslationX() - sceneRoot.getWidth() * fraction;
114 return view.getTranslationX() + sceneRoot.getWidth() * fraction;
124 x = view.getTranslationX() - sceneRoot.getWidth() * fraction;
126 x = view.getTranslationX() + sceneRoot.getWidth() * fraction;
240 float endX = view.getTranslationX(); in onAppear()
256 float startX = view.getTranslationX(); in onDisappear()
DTranslationAnimationCreator.java54 float terminalX = view.getTranslationX(); in createAnimation()
102 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
117 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
128 mPausedX = mMovingView.getTranslationX(); in onAnimationPause()
DExplode.java86 float endX = view.getTranslationX(); in onAppear()
105 float startX = view.getTranslationX(); in onDisappear()
135 + Math.round(sceneRoot.getTranslationX()); in calculateOut()
DVisibilityPropagation.java52 loc[0] += Math.round(view.getTranslationX()); in captureValues()
DCircularPropagation.java84 + sceneRoot.getTranslationX()); in getStartDelay()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayoutTest.java116 assertEquals(0, mLayout.getChildAt(0).getTranslationX(), .1f); in testUpdateValueNotChained()
117 assertEquals(0, mLayout.getChildAt(1).getTranslationX(), .1f); in testUpdateValueNotChained()
129 assertEquals(100, mLayout.getChildAt(0).getTranslationX(), .1f); in testUpdateValueNotChained()
130 assertEquals(0, mLayout.getChildAt(1).getTranslationX(), .1f); in testUpdateValueNotChained()
322 assertTrue(mViews.get(0).getTranslationX() < 1000); in testCancelAllAnimations()
332 assertEquals(0, mLayout.getChildAt(0).getTranslationX(), .1f);
333 assertEquals(0, mLayout.getChildAt(1).getTranslationX(), .1f);
344 mLayout.getChildAt(i).getTranslationX(), .1f);
392 assertEquals(7, mViews.get(0).getTranslationX(), .01f);
405 assertEquals(100, mViews.get(0).getTranslationX(), .01f);
[all …]
DStackAnimationControllerTest.java88 assertEquals(200, mViews.get(0).getTranslationX(), .1f); in testMoveFirstBubbleWithStackFollowing()
90 assertEquals(0, mViews.get(1).getTranslationX(), .1f); in testMoveFirstBubbleWithStackFollowing()
103 assertEquals(1000, mViews.get(0).getTranslationX(), .1f); in testMoveFirstBubbleWithStackFollowing()
105 assertEquals(200 + -mStackOffset, mViews.get(1).getTranslationX(), .1f); in testMoveFirstBubbleWithStackFollowing()
131 assertEquals(0f, mViews.get(0).getTranslationX(), 1f); in testFlingSideways()
165 assertEquals(mWidth / 2f, mViews.get(0).getTranslationX(), .1f); in testFlingUpFromBelowBottomCenter()
199 assertEquals(0f, newView.getTranslationX(), .1f); in testChildAdded()
225 assertEquals(0, mLayout.getChildAt(0).getTranslationX(), .1f); in testChildRemoved()
276 mViews.get(i).getTranslationX(), 2f); in testStackedAtPosition()
DExpandedAnimationControllerTest.java167 assertEquals(x, mLayout.getChildAt(i).getTranslationX(), 2f); in testStackedAtPosition()
181 mLayout.getChildAt(i).getTranslationX(), in testBubblesInCorrectExpandedPositions()
/frameworks/base/core/tests/coretests/src/android/transition/
DSlideTransitionTest.java162 minX = maxX = mView.getTranslationX(); in onPreDraw()
166 minX = Math.min(minX, mView.getTranslationX()); in onPreDraw()
168 maxX = Math.max(maxX, mView.getTranslationX()); in onPreDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DDraggableConstraintLayout.java272 if (mView.getTranslationX() * velocityX > 0 in onFling()
285 float translationX = mView.getTranslationX(); in isPastDismissThreshold()
345 float startX = mView.getTranslationX(); in createSwipeDismissAnimation()
374 float startX = mView.getTranslationX(); in createSwipeReturnAnimation()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleFlyoutViewTest.java107 assertNotSame(0f, mFlyoutText.getTranslationX()); // Should have moved to collapse. in testSetCollapsePercent()
111 assertEquals(0f, mFlyoutText.getTranslationX()); in testSetCollapsePercent()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/
DFloatingRotationButton.java232 if (newPosition.getTranslationX() != mPosition.getTranslationX() in onTaskbarStateChanged()
287 final int translationX = position.getTranslationX(); in updateTranslation()
/frameworks/base/libs/hwui/
DRenderProperties.cpp136 output << indent << "(Translate " << getTranslationX() << ", " << getTranslationY() in debugOutputProperties()
207 transform->setTranslate(getTranslationX(), getTranslationY()); in updateMatrix()
219 transform3D.postTranslate(getPivotX() + getTranslationX(), in updateMatrix()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DExpandedAnimationController.java274 path.moveTo(bubble.getTranslationX(), bubble.getTranslationY()); in startOrUpdatePathAnimation()
280 path.lineTo(bubble.getTranslationX(), p.y); in startOrUpdatePathAnimation()
310 (expanding && !mLayout.isFirstChildXLeftOfCenter(bubble.getTranslationX())) in startOrUpdatePathAnimation()
318 (expanding && mLayout.isFirstChildXLeftOfCenter(bubble.getTranslationX())) in startOrUpdatePathAnimation()
374 loc[0] = (int) bubble.getTranslationX(); in prepareForBubbleDrag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DFooterViewButton.java57 float translationX = ((ViewGroup) mParent).getTranslationX(); in getDrawingRect()
DExpandableView.java421 return getTranslationX(); in getTranslation()
442 outRect.left += getTranslationX(); in getDrawingRect()
443 outRect.right += getTranslationX(); in getDrawingRect()
669 mViewState.setXTranslation(getTranslationX()); in resetViewState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
DAodBurnInLayer.kt83 override fun getTranslationX(): Float { in getTranslationX() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DViewState.java237 mXTranslation = view.getTranslationX(); in initFrom()
259 } else if (view.getTranslationX() != this.mXTranslation) { in applyToView()
391 if (child.getTranslationX() != this.mXTranslation) { in animateTo()
615 child.getTranslationX(), newEndValue); in startXTranslationAnimation()
643 child.setTag(TAG_START_TRANSLATION_X, child.getTranslationX()); in startXTranslationAnimation()
770 return view.getTranslationX(); in getFinalTranslationX()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationController.java287 onSpringAnimationsEnd(new PointF(mMenuView.getTranslationX(),
312 new PointF(mMenuView.getTranslationX(), mMenuView.getTranslationY()), in maybeMoveToEdgeAndHide()
322 return mMenuView.getTranslationX() < mMenuView.getMenuDraggableBounds().centerX(); in isOnLeftSide()
DMenuListViewTouchHandler.java69 mMenuTranslationDown.set(menuView.getTranslationX(), menuView.getTranslationY()); in onInterceptTouchEvent()
DMenuView.java171 if (getTranslationX() != draggableBounds.left in onEdgeChangedIfNeeded()
172 && getTranslationX() != draggableBounds.right) { in onEdgeChangedIfNeeded()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DBackdropBlurActivity.java103 mDownOffsetX = event.getRawX() - getTranslationX(); in onTouchEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockSwitchTest.java249 assertThat(mStatusArea.getTranslationX()).isEqualTo(0); in switchingToSmallClockAnimation_resetsStatusArea()
259 assertThat(mStatusArea.getTranslationX()).isEqualTo(0); in switchingToSmallClockNoAnimation_resetsStatusArea()

123