Home
last modified time | relevance | path

Searched refs:xTranslation (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationIconContainerTest.kt104 assertEquals(10f, iconState.xTranslation) in calculateIconXTranslations_shortShelfOneIcon_atCorrectXWithoutOverflowDot()
129 assertEquals(10f, iconContainer.getIconState(iconOne).xTranslation) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot()
130 assertEquals(20f, iconContainer.getIconState(iconTwo).xTranslation) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot()
131 assertEquals(30f, iconContainer.getIconState(iconThree).xTranslation) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot()
132 assertEquals(40f, iconContainer.getIconState(iconFour).xTranslation) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot()
160 assertEquals(10f, iconContainer.getIconState(iconOne).xTranslation) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot()
161 assertEquals(20f, iconContainer.getIconState(iconTwo).xTranslation) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot()
162 assertEquals(30f, iconContainer.getIconState(iconThree).xTranslation) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot()
183 assertEquals(0f, iconContainer.getIconState(iconOne).xTranslation) in calculateIconXTranslations_givenWidthEnoughForThreeIcons_atCorrectXWithoutOverflowDot()
184 assertEquals(10f, iconContainer.getIconState(iconTwo).xTranslation) in calculateIconXTranslations_givenWidthEnoughForThreeIcons_atCorrectXWithoutOverflowDot()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DViewStateTest.kt41 viewState.xTranslation = 0f in testWtfs()
52 assertLogsWtf { viewState.xTranslation = Float.NaN } in testWtfs()
53 Assert.assertEquals(viewState.xTranslation, 0f) in testWtfs()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanelController.kt415 private fun updateArrowStateOnMove(yTranslation: Float, xTranslation: Float) { in <lambda>()
416 val isWithinYActivationThreshold = xTranslation * 2 >= yTranslation in <lambda>()
417 val isPastStaticThreshold = xTranslation > params.staticTriggerThreshold in <lambda>()
471 val xTranslation = max(0f, if (mView.isLeftPanel) x - startX else startX - x) in <lambda>() constant
475 val xDelta = xTranslation - previousXTranslation in <lambda>()
476 previousXTranslation = xTranslation in <lambda>()
499 updateArrowStateOnMove(yTranslation, xTranslation) in <lambda>()
503 GestureState.ACTIVE -> fullScreenProgress(xTranslation) in <lambda>()
504 GestureState.ENTRY -> staticThresholdProgress(xTranslation) in <lambda>()
566 private fun fullScreenProgress(xTranslation: Float): Float { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DViewState.java153 public void setXTranslation(float xTranslation) { in setXTranslation() argument
154 if (isValidFloat(xTranslation, "xTranslation")) { in setXTranslation()
155 this.mXTranslation = xTranslation; in setXTranslation()