Home
last modified time | relevance | path

Searched refs:KeyguardState (Results 1 – 25 of 53) sorted by relevance

123

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
H A DKeyguardTransitionScenariosTest.kt219 runTransition(KeyguardState.OFF, KeyguardState.LOCKSCREEN)
304 runTransition(KeyguardState.GONE, KeyguardState.LOCKSCREEN)
335 runTransition(KeyguardState.GONE, KeyguardState.LOCKSCREEN)
363 runTransition(KeyguardState.GONE, KeyguardState.LOCKSCREEN)
390 runTransition(KeyguardState.GONE, KeyguardState.LOCKSCREEN)
632 runTransition(KeyguardState.LOCKSCREEN, KeyguardState.GONE)
659 runTransition(KeyguardState.LOCKSCREEN, KeyguardState.GONE)
682 runTransition(KeyguardState.LOCKSCREEN, KeyguardState.GONE)
713 runTransition(KeyguardState.LOCKSCREEN, KeyguardState.GONE)
744 runTransition(KeyguardState.LOCKSCREEN, KeyguardState.GONE)
[all …]
H A DWindowManagerLockscreenVisibilityInteractorTest.kt105 from = KeyguardState.AOD,
115 from = KeyguardState.AOD,
135 to = KeyguardState.GONE,
184 to = KeyguardState.GONE,
213 from = KeyguardState.AOD,
221 from = KeyguardState.AOD,
240 to = KeyguardState.GONE,
302 to = KeyguardState.GONE,
320 to = KeyguardState.AOD,
383 to = KeyguardState.GONE,
[all …]
H A DFromPrimaryBouncerTransitionInteractorTest.kt84 from = KeyguardState.PRIMARY_BOUNCER,
85 to = KeyguardState.LOCKSCREEN,
101 from = KeyguardState.PRIMARY_BOUNCER,
102 to = KeyguardState.GONE,
111 from = KeyguardState.PRIMARY_BOUNCER,
112 to = KeyguardState.GONE,
131 to = KeyguardState.GONE,
157 to = KeyguardState.LOCKSCREEN,
173 to = KeyguardState.GONE,
182 to = KeyguardState.GONE,
[all …]
H A DFromLockscreenTransitionInteractorTest.kt83 from = KeyguardState.LOCKSCREEN,
84 to = KeyguardState.AOD,
100 from = KeyguardState.LOCKSCREEN,
101 to = KeyguardState.GONE,
132 from = KeyguardState.LOCKSCREEN,
133 to = KeyguardState.AOD,
148 from = KeyguardState.LOCKSCREEN,
149 to = KeyguardState.GONE,
157 from = KeyguardState.LOCKSCREEN,
158 to = KeyguardState.GONE,
[all …]
H A DKeyguardSurfaceBehindInteractorTest.kt26 import com.android.systemui.keyguard.shared.model.KeyguardState
103 from = KeyguardState.AOD,
104 to = KeyguardState.LOCKSCREEN,
113 from = KeyguardState.AOD,
114 to = KeyguardState.LOCKSCREEN,
127 from = KeyguardState.LOCKSCREEN,
128 to = KeyguardState.GONE,
142 from = KeyguardState.PRIMARY_BOUNCER,
143 to = KeyguardState.GONE,
157 from = KeyguardState.PRIMARY_BOUNCER,
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/
H A DCollapsedStatusBarViewModelImplTest.kt66 KeyguardState.LOCKSCREEN,
67 KeyguardState.OCCLUDED,
86 KeyguardState.OCCLUDED,
105 KeyguardState.OCCLUDED,
124 KeyguardState.OCCLUDED,
142 KeyguardState.AOD,
162 KeyguardState.OCCLUDED,
174 KeyguardState.OCCLUDED,
194 KeyguardState.DREAMING,
211 KeyguardState.DREAMING,
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
H A DFromLockscreenTransitionInteractor.kt26 import com.android.systemui.keyguard.shared.model.KeyguardState
59 fromState = KeyguardState.LOCKSCREEN,
84 if (startedStep.to != KeyguardState.GONE) {
107 if (startedStep.to != KeyguardState.GONE) {
132 val invalidFromStates = setOf(KeyguardState.AOD, KeyguardState.DOZING)
272 startTransitionTo(KeyguardState.GONE)
286 startTransitionTo(KeyguardState.GONE)
303 startTransitionTo(KeyguardState.GONE)
322 startTransitionTo(KeyguardState.OCCLUDED)
343 startTransitionTo(KeyguardState.OCCLUDED)
[all …]
H A DFromOccludedTransitionInteractor.kt24 import com.android.systemui.keyguard.shared.model.KeyguardState
44 fromState = KeyguardState.OCCLUDED,
62 startTransitionTo(KeyguardState.DREAMING)
85 lastStartedKeyguardState.to == KeyguardState.OCCLUDED
87 startTransitionTo(KeyguardState.LOCKSCREEN)
110 lastStartedKeyguardState.to == KeyguardState.OCCLUDED
112 startTransitionTo(KeyguardState.GONE)
131 lastStartedStep.to == KeyguardState.OCCLUDED &&
135 if (isAodAvailable) KeyguardState.AOD else KeyguardState.DOZING
151 startTransitionTo(KeyguardState.ALTERNATE_BOUNCER)
[all …]
H A DLightRevealScrimInteractor.kt22 import com.android.systemui.keyguard.shared.model.KeyguardState
91 KeyguardState.OFF -> false
92 KeyguardState.DOZING -> false
93 KeyguardState.AOD -> false
94 KeyguardState.DREAMING -> true
95 KeyguardState.DREAMING_LOCKSCREEN_HOSTED -> true
96 KeyguardState.ALTERNATE_BOUNCER -> true
97 KeyguardState.PRIMARY_BOUNCER -> true
98 KeyguardState.LOCKSCREEN -> true
99 KeyguardState.GONE -> true
[all …]
H A DFromPrimaryBouncerTransitionInteractor.kt27 import com.android.systemui.keyguard.shared.model.KeyguardState
56 fromState = KeyguardState.PRIMARY_BOUNCER,
69 transitionInteractor.transitionStepsFromState(KeyguardState.PRIMARY_BOUNCER)
71 if (startedStep.to != KeyguardState.GONE) {
88 if (startedStep.to != KeyguardState.GONE) {
114 startTransitionTo(KeyguardState.GONE)
145 if (occluded) KeyguardState.OCCLUDED else KeyguardState.LOCKSCREEN
174 if (isAodAvailable) KeyguardState.AOD else KeyguardState.DOZING
198 startTransitionTo(KeyguardState.DREAMING_LOCKSCREEN_HOSTED)
218 lastStartedTransitionStep.to == KeyguardState.PRIMARY_BOUNCER
[all …]
H A DFromGoneTransitionInteractor.kt24 import com.android.systemui.keyguard.shared.model.KeyguardState
44 fromState = KeyguardState.GONE,
60 if (isKeyguardShowing && lastStartedStep.to == KeyguardState.GONE) {
61 startTransitionTo(KeyguardState.LOCKSCREEN)
73 startTransitionTo(KeyguardState.DREAMING_LOCKSCREEN_HOSTED)
93 lastStartedStep.to == KeyguardState.GONE &&
96 startTransitionTo(KeyguardState.DREAMING)
115 lastStartedStep.to == KeyguardState.GONE &&
119 if (isAodAvailable) KeyguardState.AOD else KeyguardState.DOZING
126 override fun getDefaultAnimatorForTransitionsToState(toState: KeyguardState): ValueAnimator {
[all …]
H A DFromDreamingLockscreenHostedTransitionInteractor.kt26 import com.android.systemui.keyguard.shared.model.KeyguardState
47 fromState = KeyguardState.DREAMING_LOCKSCREEN_HOSTED,
77 lastStartedTransition.to == KeyguardState.DREAMING_LOCKSCREEN_HOSTED
79 startTransitionTo(KeyguardState.LOCKSCREEN)
100 lastStartedTransition.to == KeyguardState.DREAMING_LOCKSCREEN_HOSTED
102 startTransitionTo(KeyguardState.OCCLUDED)
117 startTransitionTo(KeyguardState.PRIMARY_BOUNCER)
129 lastStartedTransitionStep.to == KeyguardState.DREAMING_LOCKSCREEN_HOSTED &&
132 startTransitionTo(KeyguardState.GONE)
150 startTransitionTo(KeyguardState.DOZING)
[all …]
H A DFromDreamingTransitionInteractor.kt26 import com.android.systemui.keyguard.shared.model.KeyguardState
47 fromState = KeyguardState.DREAMING,
58 if (transitionInteractor.startedKeyguardState.value == KeyguardState.DREAMING) {
59 startTransitionTo(KeyguardState.LOCKSCREEN)
82 (lastStartedTransition.to == KeyguardState.DREAMING ||
83 lastStartedTransition.to == KeyguardState.LOCKSCREEN)
89 startTransitionTo(KeyguardState.OCCLUDED)
101 lastStartedTransitionStep.to == KeyguardState.DREAMING &&
104 startTransitionTo(KeyguardState.GONE)
120 keyguardState == KeyguardState.DREAMING
[all …]
H A DFromAlternateBouncerTransitionInteractor.kt23 import com.android.systemui.keyguard.shared.model.KeyguardState
46 fromState = KeyguardState.ALTERNATE_BOUNCER,
82 lastStartedTransitionStep.to == KeyguardState.ALTERNATE_BOUNCER
90 KeyguardState.AOD
92 KeyguardState.DOZING
95 KeyguardState.LOCKSCREEN
108 if (isKeyguardGoingAway && keyguardState == KeyguardState.ALTERNATE_BOUNCER) {
109 startTransitionTo(KeyguardState.GONE)
122 startedKeyguardState.to == KeyguardState.ALTERNATE_BOUNCER
124 startTransitionTo(KeyguardState.PRIMARY_BOUNCER)
[all …]
H A DKeyguardTransitionInteractor.kt24 import com.android.systemui.keyguard.shared.model.KeyguardState
26 import com.android.systemui.keyguard.shared.model.KeyguardState.AOD
27 import com.android.systemui.keyguard.shared.model.KeyguardState.DOZING
28 import com.android.systemui.keyguard.shared.model.KeyguardState.DREAMING
30 import com.android.systemui.keyguard.shared.model.KeyguardState.GONE
32 import com.android.systemui.keyguard.shared.model.KeyguardState.OCCLUDED
33 import com.android.systemui.keyguard.shared.model.KeyguardState.OFF
168 val startedKeyguardState: StateFlow<KeyguardState> =
174 val finishedKeyguardState: StateFlow<KeyguardState> =
198 state: KeyguardState,
[all …]
H A DFromAodTransitionInteractor.kt26 import com.android.systemui.keyguard.shared.model.KeyguardState
44 fromState = KeyguardState.AOD,
65 if (lastStartedStep.to == KeyguardState.AOD) {
67 if (occluded) KeyguardState.OCCLUDED else KeyguardState.LOCKSCREEN
81 keyguardState == KeyguardState.AOD && isWakeAndUnlock(biometricUnlockState)
83 startTransitionTo(KeyguardState.GONE)
89 override fun getDefaultAnimatorForTransitionsToState(toState: KeyguardState): ValueAnimator {
H A DFromDozingTransitionInteractor.kt25 import com.android.systemui.keyguard.shared.model.KeyguardState
44 fromState = KeyguardState.DOZING,
66 lastStartedTransition.to == KeyguardState.DOZING
69 if (occluded) KeyguardState.OCCLUDED else KeyguardState.LOCKSCREEN
82 lastStartedTransition.to == KeyguardState.DOZING &&
85 startTransitionTo(KeyguardState.GONE)
91 override fun getDefaultAnimatorForTransitionsToState(toState: KeyguardState): ValueAnimator {
H A DWindowManagerLockscreenVisibilityInteractor.kt21 import com.android.systemui.keyguard.shared.model.KeyguardState
58 KeyguardState.LOCKSCREEN -> {
61 KeyguardState.PRIMARY_BOUNCER -> {
100 transitionInteractor.isInTransitionToState(KeyguardState.GONE),
107 isInTransitionToGone || (finishedState == KeyguardState.GONE && isAnimatingSurface)
154 fun isSurfaceVisible(state: KeyguardState): Boolean {
158 fun isLockscreenVisible(state: KeyguardState): Boolean {
159 return state != KeyguardState.GONE
H A DKeyguardInteractor.kt37 import com.android.systemui.keyguard.shared.model.KeyguardState
277 KeyguardState.OFF -> true
278 KeyguardState.DOZING -> true
279 KeyguardState.DREAMING -> true
280 KeyguardState.AOD -> true
281 KeyguardState.ALTERNATE_BOUNCER -> true
282 KeyguardState.PRIMARY_BOUNCER -> true
283 KeyguardState.LOCKSCREEN -> true
284 KeyguardState.GONE -> false
285 KeyguardState.OCCLUDED -> true
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
H A DLogContextInteractorImplTest.kt11 import com.android.systemui.keyguard.shared.model.KeyguardState
70 keyguardTransitionRepository.startTransitionTo(KeyguardState.OFF)
79 keyguardTransitionRepository.startTransitionTo(KeyguardState.AOD)
91 keyguardTransitionRepository.startTransitionTo(KeyguardState.GONE)
103 keyguardTransitionRepository.startTransitionTo(KeyguardState.OFF)
112 keyguardTransitionRepository.startTransitionTo(KeyguardState.AOD)
124 keyguardTransitionRepository.startTransitionTo(KeyguardState.GONE)
136 keyguardTransitionRepository.startTransitionTo(KeyguardState.OFF)
145 keyguardTransitionRepository.startTransitionTo(KeyguardState.AOD)
194 keyguardTransitionRepository.startTransitionTo(KeyguardState.AOD)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/viewmodel/
H A DUdfpsLockscreenViewModelTest.kt142 to = KeyguardState.AOD,
156 to = KeyguardState.AOD,
170 to = KeyguardState.AOD,
192 to = KeyguardState.AOD,
208 to = KeyguardState.AOD,
224 to = KeyguardState.AOD,
248 to = KeyguardState.AOD,
262 to = KeyguardState.AOD,
276 to = KeyguardState.AOD,
461 to = KeyguardState.AOD,
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DKeyguardCoordinatorTest.kt152 TransitionStep(from = KeyguardState.LOCKSCREEN, to = KeyguardState.GONE)
166 TransitionStep(from = KeyguardState.GONE, to = KeyguardState.AOD)
176 TransitionStep(from = KeyguardState.AOD, to = KeyguardState.GONE)
342 TransitionStep(from = KeyguardState.AOD, to = KeyguardState.LOCKSCREEN)
353 TransitionStep(from = KeyguardState.LOCKSCREEN, to = KeyguardState.GONE)
360 TransitionStep(from = KeyguardState.GONE, to = KeyguardState.AOD)
375 TransitionStep(from = KeyguardState.GONE, to = KeyguardState.LOCKSCREEN)
383 TransitionStep(from = KeyguardState.LOCKSCREEN, to = KeyguardState.GONE)
402 TransitionStep(from = KeyguardState.GONE, to = KeyguardState.LOCKSCREEN)
424 TransitionStep(from = KeyguardState.LOCKSCREEN, to = KeyguardState.GONE)
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/
H A DUdfpsLockscreenViewModel.kt53 if (it.from == KeyguardState.AOD) {
108 state: KeyguardState,
112 KeyguardState.OFF,
113 KeyguardState.DOZING,
114 KeyguardState.DREAMING,
115 KeyguardState.DREAMING_LOCKSCREEN_HOSTED,
116 KeyguardState.AOD,
117 KeyguardState.PRIMARY_BOUNCER,
118 KeyguardState.GONE,
119 KeyguardState.OCCLUDED -> false
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
H A DLogContextInteractor.kt28 import com.android.systemui.keyguard.shared.model.KeyguardState
93 KeyguardState.LOCKSCREEN,
94 KeyguardState.OCCLUDED,
95 KeyguardState.ALTERNATE_BOUNCER,
96 KeyguardState.PRIMARY_BOUNCER -> AuthenticateOptions.DISPLAY_STATE_LOCKSCREEN
97 KeyguardState.AOD -> AuthenticateOptions.DISPLAY_STATE_AOD
98 KeyguardState.OFF,
99 KeyguardState.DOZING -> AuthenticateOptions.DISPLAY_STATE_NO_UI
100 KeyguardState.DREAMING -> AuthenticateOptions.DISPLAY_STATE_SCREENSAVER
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
H A DTransitionStep.kt22 val from: KeyguardState = KeyguardState.OFF,
23 val to: KeyguardState = KeyguardState.OFF,

123