/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationWakeUpCoordinatorLoggerTest.kt | 87 logger.logUpdateDozeAmount(0f, 0f, null, 0f, StatusBarState.SHADE, changed = false) in updateDozeAmountWillThrottleFractionalInputUpdates() 89 logger.logUpdateDozeAmount(0.1f, 0f, null, 0.1f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalInputUpdates() 91 logger.logUpdateDozeAmount(0.2f, 0f, null, 0.2f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalInputUpdates() 92 logger.logUpdateDozeAmount(0.3f, 0f, null, 0.3f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalInputUpdates() 93 logger.logUpdateDozeAmount(0.4f, 0f, null, 0.4f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalInputUpdates() 94 logger.logUpdateDozeAmount(0.5f, 0f, null, 0.5f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalInputUpdates() 96 logger.logUpdateDozeAmount(1f, 0f, null, 1f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalInputUpdates() 102 logger.logUpdateDozeAmount(0f, 0f, null, 0f, StatusBarState.SHADE, changed = false) in updateDozeAmountWillThrottleFractionalDelayUpdates() 104 logger.logUpdateDozeAmount(0f, 0.1f, null, 0.1f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalDelayUpdates() 106 logger.logUpdateDozeAmount(0f, 0.2f, null, 0.2f, StatusBarState.SHADE, changed = true) in updateDozeAmountWillThrottleFractionalDelayUpdates() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/ |
D | StatusBarStateControllerImplTest.kt | 121 underTest.state = StatusBarState.SHADE in testChangeState_logged() 146 underTest.state = StatusBarState.SHADE in testSetState_appliesState_sameStateButDifferentUpcomingState() 149 assertEquals(underTest.state, StatusBarState.SHADE) in testSetState_appliesState_sameStateButDifferentUpcomingState() 153 assertTrue(underTest.setState(StatusBarState.SHADE)) in testSetState_appliesState_sameStateButDifferentUpcomingState() 159 underTest.state = StatusBarState.SHADE in testSetState_appliesState_differentStateEqualToUpcomingState() 162 assertEquals(underTest.state, StatusBarState.SHADE) in testSetState_appliesState_differentStateEqualToUpcomingState() 171 underTest.state = StatusBarState.SHADE in testSetState_doesNotApplyState_currentAndUpcomingStatesSame() 172 underTest.setUpcomingState(StatusBarState.SHADE) in testSetState_doesNotApplyState_currentAndUpcomingStatesSame() 174 assertEquals(underTest.state, StatusBarState.SHADE) in testSetState_doesNotApplyState_currentAndUpcomingStatesSame() 178 assertFalse(underTest.setState(StatusBarState.SHADE)) in testSetState_doesNotApplyState_currentAndUpcomingStatesSame() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/ |
D | NotificationListViewModelTest.kt | 140 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in isImportantForAccessibility_trueWhenNotKeyguard() 247 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeEmptyShadeView_falseWhenStartingToSleep() 310 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeFooterView_trueWhenShade() 357 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeFooterView_falseWhenUserNotSetUp() 375 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeFooterView_falseWhenStartingToSleep() 393 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeFooterView_falseWhenQsExpandedDefault() 414 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeFooterView_trueWhenQsExpandedSplitShade() 433 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeFooterView_falseWhenRemoteInputActive() 451 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldIncludeFooterView_animatesWhenShade() 481 fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in shouldHideFooterView_trueWhenShadeIsClosed() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarState.java | 28 public static final int SHADE = 0; field in StatusBarState 48 case SHADE: in toString()
|
D | StatusBarStateEvent.java | 54 case StatusBarState.SHADE: in fromState()
|
D | StatusBarStateControllerImpl.java | 91 private static final int MIN_STATE = StatusBarState.SHADE; 263 if (mState == StatusBarState.SHADE && state == StatusBarState.SHADE_LOCKED) { in updateStateAndNotifyListeners() 534 return getState() == StatusBarState.SHADE && mLeaveOpenOnKeyguardHide; in goingToFullShade() 671 return StatusBarState.SHADE; in calculateStateFromSceneFramework() 696 Scenes.Gone, StatusBarState.SHADE
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/ |
D | FakeStatusBarStateController.kt | 7 @JvmField var state = StatusBarState.SHADE 9 @JvmField var upcomingState = StatusBarState.SHADE 11 @JvmField var lastState = StatusBarState.SHADE 138 override fun goingToFullShade() = state == StatusBarState.SHADE && leaveOpen in goingToFullShade()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/interactor/ |
D | ShadeInteractorLegacyImplTest.kt | 88 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in shadeExpansionWhenInSplitShadeAndQsExpanded() 105 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in shadeExpansionWhenNotInSplitShadeAndQsPartiallyExpanded() 121 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in shadeExpansionWhenNotInSplitShadeAndQsFullyExpanded() 137 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in shadeExpansionWhenNotInSplitShadeAndQsPartlyExpanded() 153 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in shadeExpansionWhenNotInSplitShadeAndQsCollapsed()
|
D | ShadeInteractorSceneContainerImplTest.kt | 80 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in qsExpansionWhenInSplitShadeAndQsExpanded() 92 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in qsExpansionWhenNotInSplitShadeAndQsExpanded() 121 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in qsFullscreen_falseWhenTransitioning() 146 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in qsFullscreen_falseWhenIdleNotQS() 164 keyguardRepository.setStatusBarState(StatusBarState.SHADE) in qsFullscreen_trueWhenIdleQS()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | SplitShadeLockScreenOverScrollerTest.kt | 70 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in setDragDownAmount_notOnKeyguard_doesNotApplyOverScroll() 86 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in setDragAmount_onKeyguard_thenNotOnKeyguard_resetsOverScrollToZero() 95 whenever(statusBarStateController.state).thenReturn(StatusBarState.SHADE) in setDragAmount_onKeyguard_thenNotOnKeyguard_multipleTimes_resetsOverScrollToZeroOnlyOnce()
|
D | StatusBarStateEventTest.kt | 39 StatusBarState.SHADE, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImplTest.java | 35 import static com.android.systemui.statusbar.StatusBarState.SHADE; 339 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotHeadsUp_bubble() 353 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldHeadsUp_bubble_bubblesCannotShowNotification() 571 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotFullScreen_notPendingIntent() 590 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotFullScreen_suppressedOnlyByDND() 609 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotFullScreen_suppressedByDNDAndOther() 625 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotFullScreen_notHighImportance() 695 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldFullScreen_notInteractive() 711 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldFullScreen_isDreaming() 742 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldFullscreen_suppressedInterruptionsWhenNotProvisioned() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/domain/interactor/ |
D | NotificationStackInteractorTest.kt | 51 kosmos.fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in testIsShowingOnLockscreen_falseWhenViewingShade() 77 kosmos.fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in testIsShowingOnLockscreen_trueWhenStartingToSleep()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
D | AmbientStateTest.kt | 105 sut.setStatusBarState(StatusBarState.SHADE) in <lambda>() 118 sut.setStatusBarState(StatusBarState.SHADE) in <lambda>() 229 sut.setStatusBarState(StatusBarState.SHADE) in <lambda>() 332 sut.setStatusBarState(StatusBarState.SHADE) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationPanelUnfoldAnimationController.kt | 23 import com.android.systemui.statusbar.StatusBarState.SHADE 42 private val filterShade: () -> Boolean = { statusBarStateController.getState() == SHADE || in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ui/viewmodel/ |
D | NotificationViewFlipperViewModelTest.kt | 54 kosmos.fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in testIsPaused_falseWhenViewingShade() 80 kosmos.fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) in testIsPaused_trueWhenStartingToSleep()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardVisibilityHelper.java | 20 import static com.android.systemui.statusbar.StatusBarState.SHADE; 140 if (oldStatusBarState != SHADE) { in setViewVisibility() 146 if (keyguardFadingAway && oldStatusBarState != SHADE) { in setViewVisibility()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/ |
D | StatusBarState.kt | 20 SHADE,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardKeyEventInteractor.kt | 105 (statusBarStateController.state != StatusBarState.SHADE) && in dispatchMenuKeyEvent() 116 StatusBarState.SHADE -> return false in collapseShadeLockedOrShowPrimaryBouncer()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImplTest.java | 160 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testClick_log() 163 verify(mQsLogger).logTileClick(eq(SPEC), eq(StatusBarState.SHADE), eq(Tile.STATE_ACTIVE), in testClick_log() 186 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testClick_Metrics_Status_Bar_Status() 189 assertEquals(StatusBarState.SHADE, mLogCaptor.getValue() in testClick_Metrics_Status_Bar_Status() 230 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testSecondaryClick_log() 233 verify(mQsLogger).logTileSecondaryClick(eq(SPEC), eq(StatusBarState.SHADE), in testSecondaryClick_log() 275 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE); in testLongClick_log() 278 verify(mQsLogger).logTileLongClick(eq(SPEC), eq(StatusBarState.SHADE), in testLongClick_log()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelUnfoldAnimationControllerTest.kt | 27 import com.android.systemui.statusbar.StatusBarState.SHADE 110 whenever(statusBarStateController.getState()).thenReturn(SHADE) in whenInShadeState_viewDoesMove() 170 whenever(statusBarStateController.getState()).thenReturn(SHADE) in whenInShadeState_statusBarViewDoesMove()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSImplTest.java | 22 import static com.android.systemui.statusbar.StatusBarState.SHADE; 163 setStatusBarCurrentAndUpcomingState(StatusBarState.SHADE); in transitionToFullShade_smallScreen_alphaAlways1() 177 setStatusBarCurrentAndUpcomingState(StatusBarState.SHADE); in transitionToFullShade_largeScreen_alphaLargeScreenShadeInterpolator() 327 when(mStatusBarStateController.getState()).thenReturn(SHADE); in setQsExpansion_inSplitShade_whenTransitioningToKeyguard_setsAlphaBasedOnShadeTransitionProgress() 519 setStatusBarCurrentAndUpcomingState(SHADE); in testQsUpdatesQsAnimatorWithUpcomingState() 541 assertThat(mUnderTest.getStatusBarState()).isEqualTo(SHADE); in testSceneContainerFlagsEnabled_statusBarStateIsShade() 544 assertThat(mUnderTest.getStatusBarState()).isEqualTo(SHADE); in testSceneContainerFlagsEnabled_statusBarStateIsShade()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | UdfpsKeyguardViewLegacyControllerTest.java | 157 sendStatusBarStateChanged(StatusBarState.SHADE); in testShouldPauseAuthOnShade() 169 mStatusBarStateListener.onStatePreChange(StatusBarState.SHADE, StatusBarState.KEYGUARD); in testShouldPauseAuthAnimatingScreenOffFromShade()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUnfoldTransitionTest.kt | 29 import com.android.systemui.statusbar.StatusBarState.SHADE 109 whenever(statusBarStateController.getState()).thenReturn(SHADE) in whenInShadeState_viewDoesNotMove()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/camera/ |
D | CameraGestureHelperTest.kt | 220 assertThat(underTest.canCameraGestureBeLaunched(StatusBarState.SHADE)).isTrue() in canCameraGestureBeLaunched_stateIsShade_noRunningTasks_returnsTrue() 227 assertThat(underTest.canCameraGestureBeLaunched(StatusBarState.SHADE)).isFalse() in canCameraGestureBeLaunched_stateIsShade_cameraActivityOnTop_returnsFalse() 232 assertThat(underTest.canCameraGestureBeLaunched(StatusBarState.SHADE)).isTrue() in canCameraGestureBeLaunched_stateIsShade_cameraActivityNotOnTop_true()
|