Home
last modified time | relevance | path

Searched refs:KEYGUARD (Results 1 – 25 of 143) sorted by relevance

123456

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationPanelViewControllerTest.java25 import static com.android.systemui.statusbar.StatusBarState.KEYGUARD;
113 mStatusBarStateController.setState(KEYGUARD); in onNotificationHeightChangeWhileOnKeyguardWillComputeMaxKeyguardNotifications()
306 mNotificationPanelViewController.getStatusBarStateListener().onStateChanged(KEYGUARD); in testOnDozeAmountChanged_positionClockAndNotificationsUsesUdfpsLocation()
498 mStatusBarStateController.setState(KEYGUARD); in testKeyguardStatusViewInSplitShade_changesConstraintsDependingOnNotifications()
518 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_dozing_alwaysDozingOn_isCentered()
530 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_dozing_alwaysDozingOff_isNotCentered()
542 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_notDozing_alwaysDozingOn_isNotCentered()
555 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_pulsing_isNotCentered()
568 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_splitShade_notPulsing_isNotCentered()
584 mStatusBarStateController.setState(KEYGUARD); in keyguardStatusView_singleShade_isCentered()
[all …]
DNotificationPanelViewControllerWithCoroutinesTest.kt32 import com.android.systemui.statusbar.StatusBarState.KEYGUARD in <lambda>()
150 mStatusBarStateController.setState(KEYGUARD) in <lambda>()
163 mStatusBarStateController.setState(KEYGUARD) in <lambda>()
204 mStatusBarStateController.setState(KEYGUARD) in <lambda>()
209 KEYGUARD /*statusBarState*/, in <lambda>()
DNotificationPanelUnfoldAnimationControllerTest.kt26 import com.android.systemui.statusbar.StatusBarState.KEYGUARD
90 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in whenInKeyguardState_viewDoesNotMove()
150 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in whenInKeyguardState_statusBarViewDoesNotMove()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsKeyguardViewLegacyControllerTest.java51 sendStatusBarStateChanged(StatusBarState.KEYGUARD); in testShouldPauseAuth_bouncerShowing()
94 sendStatusBarStateChanged(StatusBarState.KEYGUARD); in testShouldPauseAuthUnpausedAlpha0()
104 sendStatusBarStateChanged(StatusBarState.KEYGUARD); in testShouldNotPauseAuthOnKeyguard()
114 sendStatusBarStateChanged(StatusBarState.KEYGUARD); in onBiometricAuthenticated_pauseAuth()
130 sendStatusBarStateChanged(StatusBarState.KEYGUARD); in testShouldPauseAuthIsLaunchTransitionFadingAway()
169 mStatusBarStateListener.onStatePreChange(StatusBarState.SHADE, StatusBarState.KEYGUARD); in testShouldPauseAuthAnimatingScreenOffFromShade()
182 sendStatusBarStateChanged(StatusBarState.KEYGUARD); in testDoNotPauseAuthAnimatingScreenOffFromLS()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockSwitchTest.java124 mKeyguardClockSwitch.setClock(null, StatusBarState.KEYGUARD); in noPluginConnected_showNothing()
131 mKeyguardClockSwitch.setClock(mClock, StatusBarState.KEYGUARD); in pluginConnectedThenDisconnected_showNothing()
135 mKeyguardClockSwitch.setClock(null, StatusBarState.KEYGUARD); in pluginConnectedThenDisconnected_showNothing()
142 mKeyguardClockSwitch.setClock(mClock, StatusBarState.KEYGUARD); in onPluginConnected_showClock()
158 mKeyguardClockSwitch.setClock(mClock, StatusBarState.KEYGUARD); in onPluginConnected_showSecondPluginClock()
159 mKeyguardClockSwitch.setClock(otherClock, StatusBarState.KEYGUARD); in onPluginConnected_showSecondPluginClock()
178 mKeyguardClockSwitch.setClock(otherClock, StatusBarState.KEYGUARD); in onPluginDisconnected_secondOfTwoDisconnected()
179 mKeyguardClockSwitch.setClock(mClock, StatusBarState.KEYGUARD); in onPluginDisconnected_secondOfTwoDisconnected()
181 mKeyguardClockSwitch.setClock(null, StatusBarState.KEYGUARD); in onPluginDisconnected_secondOfTwoDisconnected()
DKeyguardUnfoldTransitionTest.kt28 import com.android.systemui.statusbar.StatusBarState.KEYGUARD
86 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in onTransition_centeredViewDoesNotMove()
131 whenever(statusBarStateController.getState()).thenReturn(KEYGUARD) in whenInKeyguardState_viewDoesMove()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarState.java34 public static final int KEYGUARD = 1; field in StatusBarState
52 case KEYGUARD: in toString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DScrimControllerTest.java312 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in setup()
330 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in transitionToKeyguard()
479 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in transitionToAod_withFrontAlphaUpdates()
526 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in transitionToAod_afterDocked_ignoresAlwaysOnAndUpdatesFrontAlpha()
545 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in transitionToAod_afterDocked_ignoresAlwaysOnAndUpdatesFrontAlpha()
641 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in lockscreenToHubTransition_setsBehindScrimAlpha()
646 float expectedAlpha = ScrimState.KEYGUARD.getBehindAlpha(); in lockscreenToHubTransition_setsBehindScrimAlpha()
659 expectedAlpha = (1 - runningProgress) * ScrimState.KEYGUARD.getBehindAlpha(); in lockscreenToHubTransition_setsBehindScrimAlpha()
705 expectedAlpha = runningProgress * ScrimState.KEYGUARD.getBehindAlpha(); in hubToLockscreenTransition_setsViewAlpha()
718 expectedAlpha = finishedProgress * ScrimState.KEYGUARD.getBehindAlpha(); in hubToLockscreenTransition_setsViewAlpha()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardVisibilityHelper.java19 import static com.android.systemui.statusbar.StatusBarState.KEYGUARD;
100 if ((!keyguardFadingAway && oldStatusBarState == KEYGUARD in setViewVisibility()
101 && statusBarState != KEYGUARD) || goingToFullShade) { in setViewVisibility()
122 } else if (oldStatusBarState == StatusBarState.SHADE_LOCKED && statusBarState == KEYGUARD) { in setViewVisibility()
136 } else if (statusBarState == KEYGUARD) { in setViewVisibility()
DKeyguardUnfoldTransition.kt31 import com.android.systemui.statusbar.StatusBarState.KEYGUARD in <lambda>()
56 statusBarStateController.getState() == KEYGUARD && !statusViewCentered } in <lambda>()
57 private val filterKeyguard: () -> Boolean = { statusBarStateController.getState() == KEYGUARD } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardKeyEventInteractorTest.kt144 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEvent_menuActionUp_asleepKeyguard_neverCollapsesShade()
153 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEvent_spaceActionUp_awakeKeyguard_collapsesShade()
169 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEvent_enterActionUp_awakeKeyguard_showsPrimaryBouncer()
184 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEventPreIme_back_keyguard_onBackRequested()
199 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in dispatchKeyEventPreIme_back_keyguard_SBKVMdoesNotHandle_neverOnBackRequested()
220 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in interceptMediaKey_keyguard_SBKVMdoesNotHandle_doesNotHandleMediaKey()
230 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in interceptMediaKey_keyguard_handleMediaKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardKeyEventInteractor.kt88 statusBarStateController.state == StatusBarState.KEYGUARD && in dispatchKeyEventPreIme()
98 return statusBarStateController.state == StatusBarState.KEYGUARD && in interceptMediaKey()
121 StatusBarState.KEYGUARD -> { in collapseShadeLockedOrShowPrimaryBouncer()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DStatusBarStateControllerImplTest.kt120 underTest.state = StatusBarState.KEYGUARD in testChangeState_logged()
147 underTest.setUpcomingState(StatusBarState.KEYGUARD) in testSetState_appliesState_sameStateButDifferentUpcomingState()
160 underTest.setUpcomingState(StatusBarState.KEYGUARD) in testSetState_appliesState_differentStateEqualToUpcomingState()
165 assertTrue(underTest.setState(StatusBarState.KEYGUARD)) in testSetState_appliesState_differentStateEqualToUpcomingState()
262 assertThat(statusBarState).isEqualTo(StatusBarState.KEYGUARD) in start_hydratesStatusBarState_whileLocked()
280 assertThat(statusBarState).isEqualTo(StatusBarState.KEYGUARD) in start_hydratesStatusBarState_whileLocked()
288 assertThat(statusBarState).isEqualTo(StatusBarState.KEYGUARD) in start_hydratesStatusBarState_whileLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSImplTest.java21 import static com.android.systemui.statusbar.StatusBarState.KEYGUARD;
192 setStatusBarCurrentAndUpcomingState(KEYGUARD); in transitionToFullShade_onKeyguard_noBouncer_setsAlphaUsingLinearInterpolator()
207 setStatusBarCurrentAndUpcomingState(KEYGUARD); in transitionToFullShade_onKeyguard_bouncerActive_setsAlphaUsingBouncerInterpolator()
260 when(mStatusBarStateController.getState()).thenReturn(KEYGUARD); in setQsExpansion_whenShouldUpdateSquishinessTrue_setsSquishinessBasedOnFraction()
282 setStatusBarCurrentAndUpcomingState(KEYGUARD); in setQsExpansion_whenOnKeyguardAndShouldUpdateSquishinessFalse_setsSquishiness()
328 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in setQsExpansion_inSplitShade_whenTransitioningToKeyguard_setsAlphaBasedOnShadeTransitionProgress()
520 mUnderTest.onUpcomingStateChanged(KEYGUARD); in testQsUpdatesQsAnimatorWithUpcomingState()
540 mUnderTest.onStateChanged(KEYGUARD); in testSceneContainerFlagsEnabled_statusBarStateIsShade()
550 mUnderTest.onStateChanged(KEYGUARD); in testSceneContainerFlagsEnabled_isKeyguardState_alwaysFalse()
553 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in testSceneContainerFlagsEnabled_isKeyguardState_alwaysFalse()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DSplitShadeLockScreenOverScrollerTest.kt61 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setDragDownAmount_onKeyguard_appliesOverScroll()
81 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setDragAmount_onKeyguard_thenNotOnKeyguard_resetsOverScrollToZero()
93 whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) in setDragAmount_onKeyguard_thenNotOnKeyguard_multipleTimes_resetsOverScrollToZeroOnlyOnce()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/
DAccessibilityActionsViewModelTest.kt62 keyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) in isOnKeyguard_isFalse_whenTransitioningAwayFromLockscreen()
96 keyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) in isOnKeyguard_isFalse_whenTransitioningToLockscreenIsRunning()
135 keyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) in isOnKeyguard_isTrue_whenKeyguardStateIsLockscreen_andShadeIsNotOpened()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DLocationBasedMobileViewModel.kt59 StatusBarLocation.KEYGUARD -> KeyguardMobileIconViewModel(commonImpl) in <lambda>()
121 location = StatusBarLocation.KEYGUARD,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DAmbientStateTest.kt108 sut.setStatusBarState(StatusBarState.KEYGUARD) in <lambda>()
115 sut.setStatusBarState(StatusBarState.KEYGUARD) in <lambda>()
325 sut.setStatusBarState(StatusBarState.KEYGUARD) in <lambda>()
369 setStatusBarState(StatusBarState.KEYGUARD) in AmbientState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DKeyguardNotificationVisibilityProviderTest.java27 import static com.android.systemui.statusbar.StatusBarState.KEYGUARD;
222 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onReceiveUserSwitchCallback()
230 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_lockScreenShowNotifs()
241 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_lockScreenAllowPrivateNotifs()
252 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in hideSilentNotificationsPerUserSettingWithHighPriorityParent()
274 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in keyguardShowing_hideSilentNotifications_perUserSetting()
367 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_zenMode()
378 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in notifyListeners_onSettingChange_lockScreenShowSilentNotifs()
663 when(mStatusBarStateController.getCurrentOrUpcomingState()).thenReturn(KEYGUARD); in setupUnfilteredState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/camera/
DCameraGestureHelperTest.kt180 assertThat(underTest.canCameraGestureBeLaunched(StatusBarState.KEYGUARD)).isTrue() in canCameraGestureBeLaunched_statusBarStateIsKeyguard_returnsTrue()
192 assertThat(underTest.canCameraGestureBeLaunched(StatusBarState.KEYGUARD)).isTrue() in canCameraGestureBeLaunched_stateIsKeyguard_cameraActivityOnTop_returnsTrue()
206 assertThat(underTest.canCameraGestureBeLaunched(StatusBarState.KEYGUARD)).isFalse() in canCameraGestureBeLaunched_notAllowedByAdmin_returnsFalse()
213 assertThat(underTest.canCameraGestureBeLaunched(StatusBarState.KEYGUARD)).isFalse() in canCameraGestureBeLaunched_intentDoesNotResolveToAnyApp_returnsFalse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DStatusBarState.kt21 KEYGUARD,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarLocation.kt24 KEYGUARD,
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaHierarchyManager.kt309 if (bypassController.bypassEnabled || statusbarState != StatusBarState.KEYGUARD) {
335 statusbarState == StatusBarState.KEYGUARD
491 oldState == StatusBarState.KEYGUARD && in onStatePreChange()
729 (statusbarState == StatusBarState.KEYGUARD)) in updateDesiredLocation()
893 statusbarState == StatusBarState.KEYGUARD && in shouldAnimateTransition()
1040 if (statusbarState != StatusBarState.KEYGUARD && progress >= 0) { in getTransformationProgress()
1054 if (previousHost.visible || statusbarState != StatusBarState.KEYGUARD) { in getQSTransformationProgress()
1205 (!bypassController.bypassEnabled && (statusbarState == StatusBarState.KEYGUARD)) in calculateLocation()
1304 statusBarStateController.state == StatusBarState.KEYGUARD && in isLockScreenVisibleToUser()
1314 (statusBarStateController.state == StatusBarState.KEYGUARD && qsExpanded)) in isLockScreenShadeVisibleToUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DOnUserInteractionCallbackImpl.java21 import static com.android.systemui.statusbar.StatusBarState.KEYGUARD;
75 } else if (mStatusBarStateController.getState() == KEYGUARD) { in getDismissedByUserStats()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ui/viewmodel/
DKeyguardStatusBarViewModelTest.kt98 keyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) in isVisible_dozing_false()
133 keyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) in isVisible_headsUpStatusBarShown_false()
145 keyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) in isVisible_statusBarStateKeyguard_andNotDozing_andNotShowingHeadsUpStatusBar_true()

123456