Home
last modified time | relevance | path

Searched refs:Velocity (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/
DPriorityNestedScrollConnection.kt23 import androidx.compose.ui.unit.Velocity in <lambda>()
40 private val canStartPostFling: (velocityAvailable: Velocity) -> Boolean, in <lambda>()
45 private val onStop: (velocityAvailable: Velocity) -> Velocity, in <lambda>()
89 onPriorityStop(velocity = Velocity.Zero) in <lambda>()
102 override suspend fun onPreFling(available: Velocity): Velocity { in <lambda>()
105 return Velocity.Zero in <lambda>()
112 override suspend fun onPostFling(consumed: Velocity, available: Velocity): Velocity { in <lambda>()
118 return Velocity.Zero in <lambda>()
135 onPriorityStop(velocity = Velocity.Zero) in <lambda>()
154 private fun onPriorityStop(velocity: Velocity): Velocity { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/ui/util/
DSpaceVectorConverter.kt21 import androidx.compose.ui.unit.Velocity
25 fun Velocity.toFloat(): Float in toFloat() method
27 fun Float.toVelocity(): Velocity in toFloat()
39 override fun Velocity.toFloat() = x in toFloat()
41 override fun Float.toVelocity() = Velocity(this, 0f) in toFloat()
47 override fun Velocity.toFloat() = y in toFloat()
49 override fun Float.toVelocity() = Velocity(0f, this) in toFloat()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/nestedscroll/
DPriorityNestedScrollConnectionTest.kt23 import androidx.compose.ui.unit.Velocity in <lambda>()
40 private var lastStop: Velocity? = null in <lambda>()
41 private var returnOnStop = Velocity.Zero in <lambda>()
63 private val velocity1 = Velocity(1f, 1f) in <lambda>()
64 private val velocity2 = Velocity(2f, 2f) in <lambda>()
77 scrollConnection.onPreFling(available = Velocity.Zero) in <lambda>()
80 scrollConnection.onPostFling(consumed = Velocity.Zero, available = Velocity.Zero) in <lambda>()
103 scrollConnection.onPreFling(available = Velocity.Zero) in <lambda>()
106 scrollConnection.onPostFling(consumed = Velocity.Zero, available = Velocity.Zero) in <lambda>()
168 scrollConnection.onPreFling(available = Velocity.Zero) in <lambda>()
[all …]
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/
DSwipeable.kt49 import androidx.compose.ui.unit.Velocity in <lambda>()
862 override suspend fun onPreFling(available: Velocity): Velocity { in onPreFling()
869 Velocity.Zero in onPreFling()
873 override suspend fun onPostFling(consumed: Velocity, available: Velocity): Velocity { in onPostFling()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DDraggableHandlerTest.kt28 import androidx.compose.ui.unit.Velocity
236 available: Velocity, in NestedScrollConnection()
615 nestedScroll.preFling(available = Velocity.Zero) in preScrollAfterSceneTransition()
671 nestedScroll.preFling(available = Velocity.Zero) in <lambda>()
687 nestedScroll.preFling(available = Velocity(0f, velocityThreshold)) in flingAfterScroll()
746 nestedScroll.preFling(available = Velocity(0f, velocityThreshold)) in flingAfterScrollStartedInScene()
802 nestedScroll.preFling(available = Velocity(0f, velocityThreshold)) in <lambda>()
808 nestedScroll.preFling(available = Velocity(0f, velocityThreshold)) in <lambda>()
838 nestedScroll.preFling(available = Velocity(0f, -velocityThreshold)) in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt75 import androidx.compose.ui.unit.Velocity in <lambda>()
576 ): Velocity { in settleAppBar()
582 return Velocity.Zero in settleAppBar()
620 return Velocity(0f, remainingVelocity) in settleAppBar()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DMultiPointerDraggable.kt47 import androidx.compose.ui.unit.Velocity in <lambda>()
196 viewConfiguration.maximumFlingVelocity.let { Velocity(it, it) } in onCancelPointerInput()