Home
last modified time | relevance | path

Searched refs:SHADE (Results 1 – 25 of 98) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationWakeUpCoordinatorLoggerTest.kt87 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/
DStatusBarStateControllerImplTest.kt121 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/
DNotificationListViewModelTest.kt140 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/
DStatusBarState.java28 public static final int SHADE = 0; field in StatusBarState
48 case SHADE: in toString()
DStatusBarStateEvent.java54 case StatusBarState.SHADE: in fromState()
DStatusBarStateControllerImpl.java91 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/
DFakeStatusBarStateController.kt7 @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/
DShadeInteractorLegacyImplTest.kt88 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()
DShadeInteractorSceneContainerImplTest.kt80 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/
DSplitShadeLockScreenOverScrollerTest.kt70 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()
DStatusBarStateEventTest.kt39 StatusBarState.SHADE, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java35 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/
DNotificationStackInteractorTest.kt51 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/
DAmbientStateTest.kt105 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/
DNotificationPanelUnfoldAnimationController.kt23 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/
DNotificationViewFlipperViewModelTest.kt54 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/
DKeyguardVisibilityHelper.java20 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/
DStatusBarState.kt20 SHADE,
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardKeyEventInteractor.kt105 (statusBarStateController.state != StatusBarState.SHADE) && in dispatchMenuKeyEvent()
116 StatusBarState.SHADE -> return false in collapseShadeLockedOrShowPrimaryBouncer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java160 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/
DNotificationPanelUnfoldAnimationControllerTest.kt27 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/
DQSImplTest.java22 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/
DUdfpsKeyguardViewLegacyControllerTest.java157 sendStatusBarStateChanged(StatusBarState.SHADE); in testShouldPauseAuthOnShade()
169 mStatusBarStateListener.onStatePreChange(StatusBarState.SHADE, StatusBarState.KEYGUARD); in testShouldPauseAuthAnimatingScreenOffFromShade()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUnfoldTransitionTest.kt29 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/
DCameraGestureHelperTest.kt220 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()

1234