/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelUnfoldAnimationControllerTest.kt | 96 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove() 99 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove() 102 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove() 105 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove() 116 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesMove() 119 assertThat(view.translationX).isEqualTo(xTranslationMax) in whenInShadeState_viewDoesMove() 122 assertThat(view.translationX).isEqualTo(0.5f * xTranslationMax) in whenInShadeState_viewDoesMove() 125 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesMove() 136 assertThat(view.translationX).isZero() in whenInShadeLockedState_viewDoesMove() 139 assertThat(view.translationX).isEqualTo(xTranslationMax) in whenInShadeLockedState_viewDoesMove() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUnfoldTransitionTest.kt | 95 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove() 98 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove() 101 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove() 104 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove() 117 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove() 120 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove() 123 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove() 126 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove() 140 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesMove() 143 assertThat(view.translationX).isEqualTo(xTranslationMax) in whenInKeyguardState_viewDoesMove() [all …]
|
D | KeyguardStatusAreaViewTest.kt | 27 assertEquals(10f, view.translationX) in checkTranslationX_AddedTotals() 30 assertEquals(30f, view.translationX) in checkTranslationX_AddedTotals() 33 assertEquals(60f, view.translationX) in checkTranslationX_AddedTotals()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
D | FloatingRotationButtonPositionCalculatorTest.kt | 78 translationX = MARGIN_DEFAULT, 89 translationX = -MARGIN_DEFAULT, 100 translationX = -MARGIN_DEFAULT, 111 translationX = MARGIN_DEFAULT, 122 translationX = MARGIN_TASKBAR_LEFT, 133 translationX = MARGIN_DEFAULT, 144 translationX = -MARGIN_TASKBAR_LEFT, 157 translationX = -MARGIN_DEFAULT, 168 translationX = -MARGIN_DEFAULT, 179 translationX = MARGIN_DEFAULT, [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | UnfoldMoveFromCenterAnimatorTest.kt | 69 assertThat(view.translationX).isWithin(0.01f).of(1.0f) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() 85 assertThat(view.translationX).isWithin(0.01f).of(2f) in testRegisterViewOnTheLeftOfVerticalFold_zeroProgress_viewTranslatedToTheRight() 101 assertThat(view.translationX).isEqualTo(0f) in testRegisterViewOnTheLeftOfVerticalFold_fullProgress_viewTranslatedToTheOriginalPosition() 107 val view = createView(x = 20, width = 10, height = 10, translationX = 100f) in testViewOnTheLeftOfVerticalFoldWithTranslation_halfProgress_viewTranslatedToTheRight() 117 assertThat(view.translationX).isWithin(0.01f).of(1.0f) in testViewOnTheLeftOfVerticalFoldWithTranslation_halfProgress_viewTranslatedToTheRight() 130 assertThat(view.translationX).isEqualTo(0f) in testRegisterViewAndUnregister_halfProgress_viewIsNotUpdated() 144 assertThat(view.translationX).isEqualTo(0f) in testRegisterViewUpdateProgressAndUnregister_halfProgress_viewIsNotUpdated() 172 assertThat(view.translationX).isWithin(0.1f).of(-1.4f) in testUpdateViewPositions_viewOnTheLeftAndMovedToTheRight_viewTranslatedToTheLeft() 180 translationX: Float = 0f, in createView() 194 view.updateMock(x, y, width, height, translationX, translationY) in createView() [all …]
|
D | UnfoldConstantTranslateAnimatorTest.kt | 96 verify(view).translationX = anyFloat() in <lambda>() 151 view.translationX.toInt() in <lambda>() 160 view.translationX.toInt() in <lambda>() 167 list.forEach { (view, _) -> assertEquals(0, view.translationX.toInt()) } in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/shared/animation/ |
D | PhysicsAnimatorTest.kt | 115 assertEquals(testView.translationX, 50f, 1f) in <lambda>() 126 assertEquals(10f, testView.translationX, 1f) in <lambda>() 146 assertTrue(testView.translationX > 0f) in <lambda>() 147 assertTrue(testView.translationX < 1000f * elapsedTimeSeconds) in <lambda>() 167 assertEquals(10f, testView.translationX, 1f) in <lambda>() 191 assertEquals(10f, testView.translationX, 1f) in <lambda>() 269 animator) { view -> view.translationX > 50f } in <lambda>() 272 val reversalTranslationX = testView.translationX in <lambda>() 295 assertEquals(0f, testView.translationX, 1f) in <lambda>() 318 animator) { view -> view.translationX > 50f } in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/ |
D | AodBurnInViewModelTest.kt | 90 assertThat(movement?.translationX).isEqualTo(0) in movement_initializedToDefaultValues() 113 translationX = 20, in translationAndScale_whenNotDozing() 118 assertThat(movement?.translationX).isEqualTo(0) in translationAndScale_whenNotDozing() 143 translationX = 20, in translationAndScale_whenFullyDozing() 148 assertThat(movement?.translationX).isEqualTo(20) in translationAndScale_whenFullyDozing() 163 assertThat(movement?.translationX).isEqualTo(0) in translationAndScale_whenFullyDozing() 195 translationX = 20, in translationAndScale_whenFullyDozing_MigrationFlagOff_staysOutOfTopInset() 199 assertThat(movement?.translationX).isEqualTo(20) in translationAndScale_whenFullyDozing_MigrationFlagOff_staysOutOfTopInset() 215 assertThat(movement?.translationX).isEqualTo(0) in translationAndScale_whenFullyDozing_MigrationFlagOff_staysOutOfTopInset() 247 translationX = 20, in translationAndScale_whenFullyDozing_MigrationFlagOn_staysOutOfTopInset() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarMoveFromCenterAnimationControllerTest.kt | 68 assertThat(view.translationX).isZero() in onTransitionProgressAndFinished_resetsTranslations() 77 assertThat(view.translationX).isZero() in onStatusBarWidthChangedWithNoTransitionBefore_noTranslation() 86 assertThat(view.translationX).isNonZero() in onTransitionProgress_updatesTranslations() 96 assertThat(view.translationX).isZero() in onTransitionProgress_whenDetached_doesNotUpdateTranslations() 106 assertThat(view.translationX).isZero() in detachedAfterProgress_resetsTranslations() 144 assertThat(view.translationX).isZero() in transitionFinished_viewReAttached_noChangesToTranslation()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/ |
D | FloatingRotationButtonPositionCalculator.kt | 31 val translationX = in calculatePosition() constant 46 translationX = translationX, in calculatePosition() 53 val translationX: Int, constant in com.android.systemui.shared.rotation.FloatingRotationButtonPositionCalculator.Position
|
D | FloatingRotationButton.java | 287 final int translationX = position.getTranslationX(); in updateTranslation() local 293 .translationX(translationX) in updateTranslation() 304 mKeyButtonView.setTranslationX(translationX); in updateTranslation()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/modifier/ |
D | BurnInModifiers.kt | 47 val translationX by in <lambda>() constant 48 burnIn.map { it.translationX.toFloat() }.collectAsStateWithLifecycle(initialValue = 0f) in <lambda>() 63 this.translationX = if (isClock) 0F else translationX in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | FooterViewButton.java | 57 float translationX = ((ViewGroup) mParent).getTranslationX(); in getDrawingRect() local 59 outRect.left += translationX; in getDrawingRect() 60 outRect.right += translationX; in getDrawingRect()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/ |
D | SwipeGestureListener.kt | 36 ev.offsetLocation(view.translationX, 0f) in onMotionEvent() 51 abs(view.translationX) > in onMotionEvent() 63 view.translationX = ev.rawX - startX in onMotionEvent()
|
D | ScreenshotAnimationController.kt | 223 val animator = ValueAnimator.ofFloat(view.translationX, 0f) in <lambda>() 224 animator.addUpdateListener { view.translationX = it.animatedValue as Float } in <lambda>() 241 val distance = endX - view.translationX in <lambda>() 242 val animator = ValueAnimator.ofFloat(view.translationX, endX) in <lambda>() 244 view.translationX = it.animatedValue as Float in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/view/ |
D | ModernStatusBarView.kt | 93 val translationX = translationX.toInt() in getDrawingRect() constant 95 outRect.left += translationX in getDrawingRect() 96 outRect.right += translationX in getDrawingRect()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/ |
D | PhysicsAnimationLayoutTest.java | 124 .translationX(100) in testUpdateValueNotChained() 170 .translationX(100) in testSetEndActions() 204 .translationX(100) in testRemoveEndListeners() 213 .translationX(1000) in testRemoveEndListeners() 266 .translationX(100f) in testSetController() 291 .translationX(100f) in testArePropertiesAnimating() 336 .translationX(100f) 387 .translationX(7, 100, after) 422 1, (index, animation) -> animation.translationX((index - 1) * 50))
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardStatusAreaView.kt | 18 translationX = translateXFromAod + translateXFromClockDesign + translateXFromUnfold 25 translationX = translateXFromAod + translateXFromClockDesign + translateXFromUnfold 32 translationX = translateXFromAod + translateXFromClockDesign + translateXFromUnfold
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | BubblePopupDrawable.kt | 172 var translationX = positionValue(position) - config.arrowWidth / 2 in <lambda>() variable 174 translationX = translationX.coerceIn(config.cornerRadius, in <lambda>() 177 matrix.setTranslate(-translationX, 0f) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationIconContainer.java | 444 private int findFirstViewIndexAfter(float translationX) { in findFirstViewIndexAfter() argument 447 if (view.getTranslationX() > translationX) { in findFirstViewIndexAfter() 492 boolean isOverflowing(boolean isLastChild, float translationX, float layoutEnd, in isOverflowing() argument 495 return translationX + iconSize > layoutEnd; in isOverflowing() 500 return translationX + iconSize * 2f > layoutEnd; in isOverflowing() 510 float translationX = getActualPaddingStart(); in calculateIconXTranslations() local 524 iconState.setXTranslation(translationX); in calculateIconXTranslations() 536 /* isLastChild= */ i == childCount - 1, translationX, layoutEnd, mIconSize); in calculateIconXTranslations() 541 mVisualOverflowStart = translationX; in calculateIconXTranslations() 545 translationX += iconState.iconAppearAmount * view.getWidth() * drawingScale; in calculateIconXTranslations() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardIndicationAreaBinder.kt | 81 viewModel.indicationAreaTranslationX.collect { translationX -> in <lambda>() method 82 view.translationX = translationX in <lambda>()
|
/frameworks/base/packages/SystemUI/docs/ |
D | physics-animation-layout.md | 40 - `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/ |
D | ChangeTransform.java | 417 private static void setTransforms(View view, float translationX, float translationY, in setTransforms() argument 420 view.setTranslationX(translationX); in setTransforms() 431 public final float translationX; field in ChangeTransform.Transforms 441 translationX = view.getTranslationX(); in Transforms() 452 setTransforms(view, translationX, translationY, translationZ, scaleX, scaleY, in restore() 462 return thatTransform.translationX == translationX && in equals()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BadgedImageView.java | 365 int translationX; in showBadge() local 367 translationX = -(mBubble.getBubbleIcon().getWidth() - appBadgeBitmap.getWidth()); in showBadge() 369 translationX = 0; in showBadge() 372 mAppIcon.setTranslationX(translationX); in showBadge()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/ |
D | BackTransformationTest.kt | 42 verify(targetView).translationX = 0f in applyTo_targetView_translateX_Y_Scale() 55 verify(targetView).translationX = 1f in applyTo_targetView_translateX()
|