Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DFooterViewButton.java57 float translationX = ((ViewGroup) mParent).getTranslationX(); in getDrawingRect() local
59 outRect.left += translationX; in getDrawingRect()
60 outRect.right += translationX; in getDrawingRect()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayoutTest.java123 .translationX(100) in testUpdateValueNotChained()
169 .translationX(100) in testSetEndActions()
203 .translationX(100) in testRemoveEndListeners()
212 .translationX(1000) in testRemoveEndListeners()
265 .translationX(100f) in testSetController()
288 .translationX(100f) in testArePropertiesAnimating()
329 .translationX(100f)
380 .translationX(7, 100, after)
415 1, (index, animation) -> animation.translationX((index - 1) * 50))
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationIconContainer.java352 private int findFirstViewIndexAfter(float translationX) { in findFirstViewIndexAfter() argument
355 if (view.getTranslationX() > translationX) { in findFirstViewIndexAfter()
378 float translationX = getActualPaddingStart(); in calculateIconTranslations() local
391 iconState.xTranslation = translationX; in calculateIconTranslations()
407 (translationX > (noOverflowAfter ? layoutEnd - mIconSize in calculateIconTranslations()
413 mVisualOverflowStart = Math.min(translationX, mVisualOverflowStart); in calculateIconTranslations()
416 translationX += iconState.iconAppearAmount * view.getWidth() * drawingScale; in calculateIconTranslations()
420 translationX = mVisualOverflowStart; in calculateIconTranslations()
425 iconState.xTranslation = translationX; in calculateIconTranslations()
433 translationX += (mNumDots == MAX_DOTS ? MAX_DOTS * dotWidth : dotWidth) in calculateIconTranslations()
[all …]
DStatusIconContainer.java267 float translationX = width - getPaddingEnd(); in calculateIconTranslations() local
271 if (DEBUG) android.util.Log.d(TAG, "calculateIconTranslations: start=" + translationX in calculateIconTranslations()
288 childState.xTranslation = translationX - getViewTotalWidth(child); in calculateIconTranslations()
291 translationX -= getViewTotalWidth(child); in calculateIconTranslations()
DSettingsButton.java104 .translationX(((View) getParent().getParent()).getWidth() - getX()) in startExitAnimation()
/frameworks/layoutlib/bridge/src/android/graphics/
DRenderNode_Delegate.java94 /*package*/ static boolean nSetTranslationX(long renderNode, float translationX) { in nSetTranslationX() argument
96 if (delegate != null && delegate.mTranslationX != translationX) { in nSetTranslationX()
97 delegate.mTranslationX = translationX; in nSetTranslationX()
174 float translationX = renderNode.getTranslationX(); in getMatrix() local
181 outMatrix.setTranslate(translationX, translationY); in getMatrix()
/frameworks/base/packages/SystemUI/docs/
Dphysics-animation-layout.md40 - `translationX/Y/Z(float)`
44 - `position(float, float, Runnable…)`, which starts translationX and translationY animations, and c…
45 …the given path using a traditional Animator. As the target moves, the translationX/Y physics anima…
58 .translationX(100)
71 …like `translationX` have an overloaded variant: `translationX(from, to)`. When `start()` is called…
72 … `position(x, y, endAction)`, where the endAction is called when both translationX and translation…
73 …PhysicsPropertyAnimator` for each child, where calls to methods like `translationX` and `withStart…
100 animationsForChildrenFromIndex(1, (index, anim) -> anim.translationX((index - 1) * 50))
/frameworks/base/core/java/android/transition/
DChangeTransform.java413 private static void setTransforms(View view, float translationX, float translationY, in setTransforms() argument
416 view.setTranslationX(translationX); in setTransforms()
427 public final float translationX; field in ChangeTransform.Transforms
437 translationX = view.getTranslationX(); in Transforms()
448 setTransforms(view, translationX, translationY, translationZ, scaleX, scaleY, in restore()
458 return thatTransform.translationX == translationX && in equals()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayout.java712 public PhysicsPropertyAnimator translationX(float translationX, Runnable... endActions) {
714 return property(DynamicAnimation.TRANSLATION_X, translationX, endActions);
718 public PhysicsPropertyAnimator translationX(
721 return translationX(to, endActions);
742 float translationX, float translationY, Runnable... endActions) {
744 translationX(translationX);
DExpandedAnimationController.java255 .translationX(x) in dragBubbleOut()
304 .translationX(mLayout.getWidth() / 2f - mBubbleSizePx / 2f)
318 .translationX(x)
489 .translationX(getBubbleLeft(i)) in updateBubblePositions()
DStackAnimationController.java680 .translationX(mStackPosition.x - (-xOffset * ANIMATE_TRANSLATION_FACTOR))
685 animationForChildAtIndex(0).translationX(mStackPosition.x).start();
822 .translationX(mStackPosition.x + xOffset * (index + 1))
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarWifiView.java147 float translationX = getTranslationX(); in getDrawingRect() local
149 outRect.left += translationX; in getDrawingRect()
150 outRect.right += translationX; in getDrawingRect()
DStatusBarMobileView.java94 float translationX = getTranslationX(); in getDrawingRect() local
96 outRect.left += translationX; in getDrawingRect()
97 outRect.right += translationX; in getDrawingRect()
DHeadsUpStatusBarView.java219 public void setPanelTranslation(float translationX) { in setPanelTranslation() argument
220 setTranslationX(translationX); in setPanelTranslation()
DStatusBarIconView.java882 float translationX = getTranslationX(); in getDrawingRect() local
884 outRect.left += translationX; in getDrawingRect()
885 outRect.right += translationX; in getDrawingRect()
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/
DSubActivity.java48 child.animate().translationX(0).setDuration(MainActivity.DURATION); in onResume()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistOrbView.java228 … float translationX = (mCircleRect.left + mCircleRect.right) / 2.0f - mLogo.getWidth() / 2.0f;
236 mLogo.setTranslationX(translationX);
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java203 public void setTranslationX(float translationX) { in setTranslationX() argument
207 super.setTranslationX(translationX); in setTranslationX()
/frameworks/base/graphics/java/android/graphics/
DRenderNode.java943 public boolean setTranslationX(float translationX) { in setTranslationX() argument
944 return nSetTranslationX(mNativeRenderNode, translationX); in setTranslationX()
1652 private static native boolean nSetTranslationX(long renderNode, float translationX); in nSetTranslationX() argument
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java283 view.animate().translationX(0); in animateMoveImpl()
357 oldViewAnim.translationX(changeInfo.toX - changeInfo.fromX); in animateChangeImpl()
380 newViewAnimation.translationX(0).translationY(0).setDuration(getChangeDuration()) in animateChangeImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java239 final int translationX = mQsPanel.isLayoutRtl() ? xDiff - width : xDiff + width; in updateAnimators() local
241 translationX); in updateAnimators()
/frameworks/base/libs/hwui/
DRenderProperties.h246 bool setTranslationX(float translationX) { in setTranslationX() argument
247 return RP_SET_AND_DIRTY(mPrimitiveFields.mTranslationX, translationX); in setTranslationX()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransition.java843 private long calculateClipRevealTransitionDuration(boolean cutOff, float translationX, in calculateClipRevealTransitionDuration() argument
848 final float fraction = Math.max(Math.abs(translationX) / displayFrame.width(), in calculateClipRevealTransitionDuration()
870 int translationX = 0; in createClipRevealAnimationLocked() local
890 translationX = (centerX - halfWidth) - appFrame.left; in createClipRevealAnimationLocked()
895 translationX = (centerX + halfWidth) - appFrame.right; in createClipRevealAnimationLocked()
899 final long duration = calculateClipRevealTransitionDuration(cutOff, translationX, in createClipRevealAnimationLocked()
908 TranslateAnimation translate = new TranslateAnimation(translationX, 0, translationY, 0); in createClipRevealAnimationLocked()
941 ? Math.max(Math.abs(translationY), Math.abs(translationX)) : 0; in createClipRevealAnimationLocked()
/frameworks/base/core/java/android/widget/
DStackView.java353 … PropertyValuesHolder translationX = PropertyValuesHolder.ofFloat("translationX", transX); in transformViewAtIndex() local
359 translationY, translationX); in transformViewAtIndex()
1432 float translationX = v.getTranslationX();
1441 v.setTranslationX(translationX);
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewController.java1032 .translationX(0).translationY(0).setDuration(ENTER_ANIMATION_DURATION_MS); in runEnterAnimation()
1119 .translationX(translateX).translationY(translateY) in runExitAnimation()
1123 .translationX(translateX).translationY(translateY) in runExitAnimation()

12