Home
last modified time | relevance | path

Searched refs:Edge (Results 1 – 25 of 105) sorted by relevance

12345

/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DFixedSizeEdgeDetectorTest.kt37 fun horizontalEdge(position: Int): Edge? = in horizontalEdges()
45 assertThat(horizontalEdge(0)).isEqualTo(Edge.Left) in horizontalEdges()
46 assertThat(horizontalEdge(30)).isEqualTo(Edge.Left) in horizontalEdges()
49 assertThat(horizontalEdge(70)).isEqualTo(Edge.Right) in horizontalEdges()
50 assertThat(horizontalEdge(100)).isEqualTo(Edge.Right) in horizontalEdges()
55 fun verticalEdge(position: Int): Edge? = in verticalEdges()
63 assertThat(verticalEdge(0)).isEqualTo(Edge.Top) in verticalEdges()
64 assertThat(verticalEdge(30)).isEqualTo(Edge.Top) in verticalEdges()
67 assertThat(verticalEdge(70)).isEqualTo(Edge.Bottom) in verticalEdges()
68 assertThat(verticalEdge(100)).isEqualTo(Edge.Bottom) in verticalEdges()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DEdgeDetector.kt27 enum class Edge : SwipeSource { class
43 ): Edge? { in source()
46 val topOrLeft: Edge in source()
47 val bottomOrRight: Edge in source()
52 topOrLeft = Edge.Left in source()
53 bottomOrRight = Edge.Right in source()
58 topOrLeft = Edge.Top in source()
59 bottomOrRight = Edge.Bottom in source()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardTransitionInteractor.kt28 import com.android.systemui.keyguard.shared.model.Edge in <lambda>()
80 private val transitionMap = mutableMapOf<Edge.StateToState, MutableSharedFlow<TransitionStep>>() in <lambda>()
136 transitionMap[Edge.create(it.from, it.to)]?.emit(it) in <lambda>()
138 transitionMap[Edge.create(it.from, null)]?.emit(it) in <lambda>()
140 transitionMap[Edge.create(null, it.to)]?.emit(it) in <lambda>()
160 fun transition(edge: Edge, edgeWithoutSceneContainer: Edge): Flow<TransitionStep> { in <lambda>()
166 fun transition(edge: Edge): Flow<TransitionStep> { in <lambda>()
182 is Edge.StateToState -> edge.from?.mapToSceneContainerScene() in <lambda>()
183 is Edge.StateToScene -> edge.from?.mapToSceneContainerScene() in <lambda>()
184 is Edge.SceneToState -> edge.from in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/transformation/
DEdgeTranslate.kt20 import com.android.compose.animation.scene.Edge
30 private val edge: Edge,
48 Edge.Top -> in transform()
54 Edge.Left -> in transform()
60 Edge.Bottom -> in transform()
66 Edge.Right -> in transform()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/
DEdgeTranslateTest.kt30 import com.android.compose.animation.scene.Edge
44 edge: Edge, in testEdgeTranslate()
68 testEdgeTranslate(Edge.Top, startsOutsideLayoutBounds = true) { in testEntersFromTop_startsOutsideLayoutBounds()
79 testEdgeTranslate(Edge.Top, startsOutsideLayoutBounds = false) { in testEntersFromTop_startsInsideLayoutBounds()
90 testEdgeTranslate(Edge.Bottom, startsOutsideLayoutBounds = true) { in testEntersFromBottom_startsOutsideLayoutBounds()
101 testEdgeTranslate(Edge.Bottom, startsOutsideLayoutBounds = false) { in testEntersFromBottom_startsInsideLayoutBounds()
112 testEdgeTranslate(Edge.Left, startsOutsideLayoutBounds = true) { in testEntersFromLeft_startsOutsideLayoutBounds()
123 testEdgeTranslate(Edge.Left, startsOutsideLayoutBounds = false) { in testEntersFromLeft_startsInsideLayoutBounds()
134 testEdgeTranslate(Edge.Right, startsOutsideLayoutBounds = true) { in testEntersFromRight_startsOutsideLayoutBounds()
145 testEdgeTranslate(Edge.Right, startsOutsideLayoutBounds = false) { in testEntersFromRight_startsInsideLayoutBounds()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/transitions/
DFromLockscreenToCommunalTransition.kt20 import com.android.compose.animation.scene.Edge
28 translate(Scenes.Lockscreen.rootElementKey, Edge.Left) in TransitionBuilder()
31 translate(Scenes.Communal.rootElementKey, Edge.Right) in TransitionBuilder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/
DDreamingToGoneTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
40 edge = Edge.create(from = DREAMING, to = Scenes.Gone),
43 edge = Edge.create(from = DREAMING, to = GONE),
DBouncerToGoneFlows.kt22 import com.android.systemui.keyguard.shared.model.Edge in <lambda>()
80 edge = Edge.create(from = from, to = Scenes.Gone) in <lambda>()
83 edge = Edge.create(from = from, to = GONE), in <lambda>()
110 edge = Edge.create(from = fromState, to = Scenes.Gone), in <lambda>()
113 edge = Edge.create(from = fromState, to = GONE), in <lambda>()
DGoneToDreamingLockscreenHostedTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
45 edge = Edge.create(from = Scenes.Gone, to = DREAMING_LOCKSCREEN_HOSTED),
48 edge = Edge.create(from = GONE, to = DREAMING_LOCKSCREEN_HOSTED),
DGlanceableHubToOccludedTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
41 edge = Edge.create(from = Scenes.Communal, to = OCCLUDED),
43 .setupWithoutSceneContainer(edge = Edge.create(from = GLANCEABLE_HUB, to = OCCLUDED))
DOccludedToGlanceableHubTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
41 edge = Edge.create(OCCLUDED, Scenes.Communal)
43 .setupWithoutSceneContainer(edge = Edge.create(OCCLUDED, GLANCEABLE_HUB))
DAodToPrimaryBouncerTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
46 edge = Edge.create(from = AOD, to = Scenes.Bouncer),
49 edge = Edge.create(from = AOD, to = PRIMARY_BOUNCER),
DAlternateBouncerToPrimaryBouncerTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
46 edge = Edge.create(from = ALTERNATE_BOUNCER, to = Scenes.Bouncer),
49 edge = Edge.create(from = ALTERNATE_BOUNCER, to = PRIMARY_BOUNCER),
DGoneToGlanceableHubTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
40 .setup(duration = TO_GLANCEABLE_HUB_DURATION, edge = Edge.create(GONE, Scenes.Communal))
41 .setupWithoutSceneContainer(edge = Edge.create(GONE, GLANCEABLE_HUB))
DOccludedToGoneTransitionViewModel.kt20 import com.android.systemui.keyguard.shared.model.Edge
42 edge = Edge.create(from = OCCLUDED, to = Scenes.Gone),
45 edge = Edge.create(from = OCCLUDED, to = GONE),
DDozingToPrimaryBouncerTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
47 edge = Edge.create(from = DOZING, to = Scenes.Bouncer),
50 edge = Edge.create(from = DOZING, to = PRIMARY_BOUNCER),
DDozingToGoneTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
45 edge = Edge.create(from = DOZING, to = Scenes.Gone),
48 edge = Edge.create(from = DOZING, to = GONE),
DGoneToLockscreenTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
42 edge = Edge.create(from = Scenes.Gone, to = LOCKSCREEN),
45 edge = Edge.create(from = GONE, to = LOCKSCREEN),
DGoneToDreamingTransitionViewModel.kt22 import com.android.systemui.keyguard.shared.model.Edge
43 edge = Edge.create(from = Scenes.Gone, to = DREAMING),
46 edge = Edge.create(from = GONE, to = DREAMING),
DPrimaryBouncerToDozingTransitionViewModel.kt22 import com.android.systemui.keyguard.shared.model.Edge in <lambda>()
51 edge = Edge.create(from = Scenes.Bouncer, to = DOZING), in <lambda>()
54 edge = Edge.create(from = PRIMARY_BOUNCER, to = DOZING), in <lambda>()
DPrimaryBouncerToLockscreenTransitionViewModel.kt22 import com.android.systemui.keyguard.shared.model.Edge
48 edge = Edge.create(from = Scenes.Bouncer, to = LOCKSCREEN),
51 edge = Edge.create(from = PRIMARY_BOUNCER, to = LOCKSCREEN),
DLockscreenToPrimaryBouncerTransitionViewModel.kt21 import com.android.systemui.keyguard.shared.model.Edge
48 edge = Edge.create(from = LOCKSCREEN, to = Scenes.Bouncer),
51 edge = Edge.create(from = LOCKSCREEN, to = PRIMARY_BOUNCER),
DAodToGoneTransitionViewModel.kt22 import com.android.systemui.keyguard.shared.model.Edge
46 edge = Edge.create(from = AOD, to = Scenes.Gone),
49 edge = Edge.create(from = AOD, to = GONE),
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/
DCommunalDreamStartable.kt29 import com.android.systemui.keyguard.shared.model.Edge in <lambda>()
65 .transition(Edge.create(from = KeyguardState.OCCLUDED, to = KeyguardState.DREAMING)) in <lambda>()
76 edge = Edge.create(to = Scenes.Communal), in <lambda>()
77 edgeWithoutSceneContainer = Edge.create(to = KeyguardState.GLANCEABLE_HUB) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/
DCommunalTransitionViewModel.kt26 import com.android.systemui.keyguard.shared.model.Edge in <lambda>()
68 Edge.create(from = KeyguardState.OCCLUDED, to = KeyguardState.GLANCEABLE_HUB) in <lambda>()
79 edge = Edge.create(from = Scenes.Communal), in <lambda>()
80 edgeWithoutSceneContainer = Edge.create(from = KeyguardState.GLANCEABLE_HUB) in <lambda>()
127 .transition(Edge.create(from = KeyguardState.OCCLUDED)) in <lambda>()

12345