Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardStatusViewTest.kt39 val translationY = 1234f in setChildrenTranslationYExcludingMediaView_mediaViewIsNotTranslated() constant
41 keyguardStatusView.setChildrenTranslationY(translationY, /* excludeMedia= */ true) in setChildrenTranslationYExcludingMediaView_mediaViewIsNotTranslated()
43 assertThat(mediaView.translationY).isEqualTo(0) in setChildrenTranslationYExcludingMediaView_mediaViewIsNotTranslated()
45 childrenExcludingMedia.forEach { assertThat(it.translationY).isEqualTo(translationY) } in setChildrenTranslationYExcludingMediaView_mediaViewIsNotTranslated()
50 val translationY = 1234f in setChildrenTranslationYIncludeMediaView() constant
52 keyguardStatusView.setChildrenTranslationY(translationY, /* excludeMedia= */ false) in setChildrenTranslationYIncludeMediaView()
54 statusViewContainer.children.forEach { assertThat(it.translationY).isEqualTo(translationY) } in setChildrenTranslationYIncludeMediaView()
DKeyguardStatusAreaViewTest.kt39 assertEquals(10f, view.translationY) in checkTranslationY_AddedTotals()
42 assertEquals(30f, view.translationY) in checkTranslationY_AddedTotals()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/
DAodBurnInViewModel.kt88 aodToLockscreenTransitionViewModel.translationY(params.translationY).onStart { in <lambda>()
97 val translationY = in <lambda>() constant
101 (goneToAod.value ?: 0f) + burnInModel.translationY in <lambda>()
103 burnInModel.translationY + occludedToLockscreen + keyguardTranslationY in <lambda>()
105 burnInModel.copy(translationY = translationY.toInt()) in <lambda>()
132 val burnInY = MathUtils.lerp(0, burnIn.translationY, interpolated).toInt() in <lambda>()
133 val translationY = in <lambda>() constant
141 translationY = translationY, in <lambda>()
156 val translationY: () -> Float? = { null } in <lambda>() constant in com.android.systemui.keyguard.ui.viewmodel.BurnInParameters
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
DFloatingRotationButtonPositionCalculatorTest.kt79 translationY = -MARGIN_DEFAULT
90 translationY = -MARGIN_DEFAULT
101 translationY = MARGIN_DEFAULT
112 translationY = MARGIN_DEFAULT
123 translationY = -MARGIN_TASKBAR_BOTTOM
134 translationY = -MARGIN_DEFAULT
145 translationY = -MARGIN_TASKBAR_BOTTOM
158 translationY = -MARGIN_DEFAULT
169 translationY = MARGIN_DEFAULT
180 translationY = MARGIN_DEFAULT
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsAnimations.kt47 private var translationY: Float = -1f in <lambda>() variable
68 if (translationY == -1f) { in <lambda>()
70 translationY = view.context.resources.getDimensionPixelSize( in <lambda>()
73 translationY = 0f in <lambda>()
99 view.translationY = 0f in <lambda>()
110 view.translationY = translationY in <lambda>()
143 view.translationY = 0.0f in <lambda>()
144 val yAnimator = ObjectAnimator.ofFloat(view, "translationY", -translationY).apply { in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/modifier/
DBurnInModifiers.kt45 val copiedParams = params.copy(translationY = { translationYState.value }) in <lambda>()
49 val translationY by in <lambda>() constant
50 burnIn.map { it.translationY.toFloat() }.collectAsStateWithLifecycle(initialValue = 0f) in <lambda>()
51 translationYState.value = translationY in <lambda>()
64 this.translationY = translationY in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/
DAodBurnInViewModelTest.kt89 assertThat(movement?.translationY).isEqualTo(0) in movement_initializedToDefaultValues()
114 translationY = 30, in translationAndScale_whenNotDozing()
119 assertThat(movement?.translationY).isEqualTo(0) in translationAndScale_whenNotDozing()
144 translationY = 30, in translationAndScale_whenFullyDozing()
149 assertThat(movement?.translationY).isEqualTo(30) in translationAndScale_whenFullyDozing()
164 assertThat(movement?.translationY).isEqualTo(0) in translationAndScale_whenFullyDozing()
196 translationY = -30, in translationAndScale_whenFullyDozing_MigrationFlagOff_staysOutOfTopInset()
201 assertThat(movement?.translationY).isEqualTo(-20) in translationAndScale_whenFullyDozing_MigrationFlagOff_staysOutOfTopInset()
216 assertThat(movement?.translationY).isEqualTo(0) in translationAndScale_whenFullyDozing_MigrationFlagOff_staysOutOfTopInset()
248 translationY = -30, in translationAndScale_whenFullyDozing_MigrationFlagOn_staysOutOfTopInset()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLockscreenShadeKeyguardTransitionController.kt54 private var translationY = 0 variable
74 translationY = calculateKeyguardTranslationY(dragDownAmount) in onDragDownAmountChanged()
75 shadeLockscreenInteractor.setKeyguardTransitionProgress(alpha, translationY) in onDragDownAmountChanged()
92 val translationY = translationYProgress * keyguardTransitionOffset in calculateKeyguardTranslationY() constant
93 return translationY.toInt() in calculateKeyguardTranslationY()
113 it.println("translationY: $translationY") in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DKeyguardSurfaceBehindModel.kt40 val translationY: Float = 0f, constant in com.android.systemui.keyguard.shared.model.KeyguardSurfaceBehindModel
46 val animateFromTranslationY: Float = translationY,
56 return animateFromTranslationY != translationY in willAnimateTranslationY()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/
DFloatingRotationButtonPositionCalculator.kt37 val translationY = in calculatePosition() constant
47 translationY = translationY in calculatePosition()
54 val translationY: Int constant in com.android.systemui.shared.rotation.FloatingRotationButtonPositionCalculator.Position
DFloatingRotationButton.java288 final int translationY = position.getTranslationY(); in updateTranslation() local
294 .translationY(translationY) in updateTranslation()
305 mKeyButtonView.setTranslationY(translationY); in updateTranslation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DFooterViewButton.java58 float translationY = ((ViewGroup) mParent).getTranslationY(); in getDrawingRect() local
61 outRect.top += translationY; in getDrawingRect()
62 outRect.bottom += translationY; in getDrawingRect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DKeyguardSurfaceBehindParamsApplier.kt168 translateYSpring.animateToFinalPosition(viewParams.translationY) in <lambda>()
191 val translationY = in <lambda>() constant
193 else viewParams.translationY in <lambda>()
209 matrix.apply { setTranslate(/* dx= */ 0f, translationY) }, in <lambda>()
218 .withMatrix(matrix.apply { setTranslate(/* dx= */ 0f, translationY) }) in <lambda>()
DKeyguardRootViewBinder.kt222 viewModel.translationY.collect { y -> in <lambda>()
223 childViews[burnInLayerId]?.translationY = y in <lambda>()
224 childViews[largeClockId]?.translationY = y in <lambda>()
225 childViews[aodNotificationIconContainerId]?.translationY = y in <lambda>()
353 current.copy(translationY = { childViews[burnInLayerId]?.translationY }) in <lambda>()
526 translationY = 0f in <lambda>()
576 translationY = -iconAppearTranslation.toFloat() in <lambda>()
589 translationY = 0f in <lambda>()
601 setInterpolator(Interpolators.DECELERATE_QUINT).translationY(0f) in <lambda>()
DKeyguardIndicationAreaBinder.kt106 .collect { translationY -> view.translationY = translationY } in <lambda>() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DSectionHeaderView.java110 protected void applyContentTransformation(float contentAlpha, float translationY) { in applyContentTransformation() argument
111 super.applyContentTransformation(contentAlpha, translationY); in applyContentTransformation()
113 mLabelView.setTranslationY(translationY); in applyContentTransformation()
115 mClearAllButton.setTranslationY(translationY); in applyContentTransformation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/binder/
DKeyguardSurfaceBehindParamsApplierTest.kt87 translationY = 300f, in <lambda>()
107 translationY = 300f, in <lambda>()
133 translationY = 300f, in <lambda>()
147 translationY = 300f, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/view/
DModernStatusBarView.kt94 val translationY = translationY.toInt() in getDrawingRect() constant
97 outRect.top += translationY in getDrawingRect()
98 outRect.bottom += translationY in getDrawingRect()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusView.java99 public void setChildrenTranslationY(float translationY, boolean excludeMedia) { in setChildrenTranslationY() argument
100 setChildrenTranslationYExcluding(translationY, in setChildrenTranslationY()
105 private void setChildrenTranslationYExcluding(float translationY, Set<View> excludedViews) { in setChildrenTranslationYExcluding() argument
110 child.setTranslationY(translationY); in setChildrenTranslationYExcluding()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DAppearAnimationCreator.java31 float translationY, boolean appearing, Interpolator interpolator, in createAnimation() argument
38 float translationY, boolean appearing, Interpolator interpolator, in createAnimation() argument
DAppearAnimationUtils.java181 public void createAnimation(final View view, long delay, long duration, float translationY, in createAnimation() argument
184 view, delay, duration, translationY, appearing, interpolator, endRunnable, null); in createAnimation()
189 long duration, float translationY, boolean appearing, Interpolator interpolator, in createAnimation() argument
193 float targetTranslationY = appearing ? 0 : translationY; in createAnimation()
195 view.setTranslationY(translationY - targetTranslationY); in createAnimation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/
DUnfoldMoveFromCenterAnimatorTest.kt157 assertThat(view.translationY).isWithin(0.01f).of(1f) in testRegisterViewOnTheTopOfHorizontalFold_halfProgress_viewTranslatedToTheBottom()
181 translationY: Float = 0f in createView()
194 view.updateMock(x, y, width, height, translationX, translationY) in createView()
205 translationY: Float = 0f in updateMock()
219 setTranslationY(translationY) in updateMock()
/frameworks/base/tests/Assist/src/com/android/test/assist/
DAssistInteractionSession.java131 .translationY(0) in playAssistAnimation()
158 .translationY(0) in playAssistAnimation()
163 .translationY(0) in playAssistAnimation()
/frameworks/base/core/java/android/transition/
DChangeTransform.java417 private static void setTransforms(View view, float translationX, float translationY, in setTransforms() argument
421 view.setTranslationY(translationY); in setTransforms()
432 public final float translationY; field in ChangeTransform.Transforms
442 translationY = view.getTranslationY(); in Transforms()
452 setTransforms(view, translationX, translationY, translationZ, scaleX, scaleY, in restore()
463 thatTransform.translationY == translationY && in equals()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DNotificationShadeActivity.java144 int translationY = expectedHeight - mFullHeight; in updateState() local
145 lastChild.setTranslationY(translationY); in updateState()
146 float p = - ((float) translationY) / lastChildHeight(); in updateState()

123456