/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelViewControllerTest.java | 113 mStatusBarStateController.setState(KEYGUARD); in onNotificationHeightChangeWhileOnKeyguardWillComputeMaxKeyguardNotifications() 129 mStatusBarStateController.setState(SHADE); in onNotificationHeightChangeWhileInShadeWillNotComputeMaxKeyguardNotifications() 295 assertThat(mStatusBarStateController.getDozeAmount()).isEqualTo(1f); in testSetDozing_notifiesNsslAndStateController() 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 …]
|
D | NotificationPanelViewControllerWithCoroutinesTest.kt | 150 mStatusBarStateController.setState(KEYGUARD) in <lambda>() 163 mStatusBarStateController.setState(KEYGUARD) in <lambda>() 177 mStatusBarStateController.setState(SHADE_LOCKED) in <lambda>() 190 mStatusBarStateController.setState(SHADE_LOCKED) in <lambda>() 204 mStatusBarStateController.setState(KEYGUARD) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImplTest.java | 109 StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImplTest 156 mStatusBarStateController, in setup() 181 when(mStatusBarStateController.isDozing()).thenReturn(false); in ensureStateForHeadsUpWhenAwake() 182 when(mStatusBarStateController.isDreaming()).thenReturn(false); in ensureStateForHeadsUpWhenAwake() 192 when(mStatusBarStateController.isDozing()).thenReturn(true); in ensureStateForHeadsUpWhenDozing() 289 when(mStatusBarStateController.isDozing()).thenReturn(false); in testShouldNotHeadsUpWhenDozing_notDozing() 339 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldNotHeadsUp_bubble() 353 when(mStatusBarStateController.getState()).thenReturn(SHADE); in testShouldHeadsUp_bubble_bubblesCannotShowNotification() 416 when(mStatusBarStateController.isDreaming()).thenReturn(true); in testShouldNotHeadsUp_deviceNotInUse() 570 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldNotFullScreen_notPendingIntent() [all …]
|
D | KeyguardNotificationVisibilityProviderTest.java | 99 @Mock private SysuiStatusBarStateController mStatusBarStateController; field in KeyguardNotificationVisibilityProviderTest 121 mStatusBarStateController, in setup() 184 verify(mStatusBarStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onStatusBarUpcomingStateChanged() 199 verify(mStatusBarStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onStatusBarStateChanged() 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() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | KeyguardDismissUtilTest.java | 44 private SysuiStatusBarStateController mStatusBarStateController; field in KeyguardDismissUtilTest 56 mKeyguardStateController, mStatusBarStateController, mActivityStarter); in setUp() 66 verify(mStatusBarStateController).setLeaveOpenOnKeyguardHide(true); in testSetLeaveOpenOnKeyguardHideWhenKeyGuardStateControllerIsShowing() 80 verify(mStatusBarStateController, times(0)).setLeaveOpenOnKeyguardHide(true); in testSetLeaveOpenOnKeyguardHideWhenKeyGuardStateControllerIsNotShowing()
|
D | DozeScrimControllerTest.java | 49 private StatusBarStateController mStatusBarStateController; field in DozeScrimControllerTest 56 mStatusBarStateController); in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardDismissUtil.java | 34 private final SysuiStatusBarStateController mStatusBarStateController; field in KeyguardDismissUtil 43 mStatusBarStateController = statusBarStateController; in KeyguardDismissUtil() 51 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in executeWhenUnlocked()
|
D | DozeServiceHost.java | 91 private final SysuiStatusBarStateController mStatusBarStateController; field in DozeServiceHost 135 mStatusBarStateController = statusBarStateController; in DozeServiceHost() 235 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in startDozing() 248 && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in updateDozing() 262 mStatusBarStateController.setIsDozing(dozing); in updateDozing() 304 mStatusBarStateController.setPulsing(pulsing); in pulseWhileDozing() 324 mDozeLog.traceDozing(mStatusBarStateController.isDozing()); in stopDozing() 334 if (mStatusBarStateController.isDozing() && ignore) { in onIgnoreTouchWhilePulsing() 539 if (mStatusBarStateController.isDozing() && isHeadsUp) {
|
D | StatusBarHeadsUpChangeListener.java | 47 private final StatusBarStateController mStatusBarStateController; field in StatusBarHeadsUpChangeListener 68 mStatusBarStateController = statusBarStateController; in StatusBarHeadsUpChangeListener() 87 && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; in onHeadsUpPinnedModeChanged()
|
D | StatusBarRemoteInputCallback.java | 67 private final SysuiStatusBarStateController mStatusBarStateController; field in StatusBarRemoteInputCallback 107 mStatusBarStateController = (SysuiStatusBarStateController) statusBarStateController; in StatusBarRemoteInputCallback() 109 mStatusBarStateController.addCallback(this); in StatusBarRemoteInputCallback() 122 && (mStatusBarStateController.leaveOpenOnKeyguardHide() || hasPendingRemoteInput)) { in onStateChanged() 123 if (!mStatusBarStateController.isKeyguardRequested() in onStateChanged() 136 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedRemoteInput()
|
D | StatusBarNotificationPresenter.java | 86 private final SysuiStatusBarStateController mStatusBarStateController; field in StatusBarNotificationPresenter 150 mStatusBarStateController = sysuiStatusBarStateController; in StatusBarNotificationPresenter() 201 && mStatusBarStateController.getState() == StatusBarState.SHADE_LOCKED in maybeClosePanelForShadeEmptied() 203 mStatusBarStateController.setState(StatusBarState.KEYGUARD); in maybeClosePanelForShadeEmptied() 248 if (mStatusBarStateController.getState() == StatusBarState.KEYGUARD) { in onExpandClicked() 252 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onExpandClicked() 265 mStatusBarStateController.setLeaveOpenOnKeyguardHide(true); in onLockedNotificationImportanceChange()
|
D | LightBarTransitionsController.java | 100 private final StatusBarStateController mStatusBarStateController; field in LightBarTransitionsController 136 mStatusBarStateController = statusBarStateController; in LightBarTransitionsController() 140 mStatusBarStateController.addCallback(mCallback); in LightBarTransitionsController() 141 mDozeAmount = mStatusBarStateController.getDozeAmount(); in LightBarTransitionsController() 153 mStatusBarStateController.removeCallback(mCallback); in destroy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | RankingCoordinator.java | 50 private final StatusBarStateController mStatusBarStateController; field in RankingCoordinator 65 mStatusBarStateController = statusBarStateController; in RankingCoordinator() 74 mStatusBarStateController.addCallback(mStatusBarStateCallback); in attach() 184 if ((mStatusBarStateController.isDozing() 185 || mStatusBarStateController.getDozeAmount() == 1f) 190 return !mStatusBarStateController.isDozing() && entry.shouldSuppressNotificationList();
|
D | VisualStabilityCoordinator.java | 70 private final StatusBarStateController mStatusBarStateController; field in VisualStabilityCoordinator 120 mStatusBarStateController = statusBarStateController; in VisualStabilityCoordinator() 131 mFullyDozed = mStatusBarStateController.getDozeAmount() == 1f; in attach() 133 mStatusBarStateController.addCallback(mStatusBarStateControllerListener); in attach() 134 mPulsing = mStatusBarStateController.isPulsing(); in attach()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/ |
D | OnUserInteractionCallbackImpl.java | 50 private final StatusBarStateController mStatusBarStateController; field in OnUserInteractionCallbackImpl 64 mStatusBarStateController = statusBarStateController; in OnUserInteractionCallbackImpl() 73 } else if (mStatusBarStateController.isDozing()) { in getDismissedByUserStats() 75 } else if (mStatusBarStateController.getState() == KEYGUARD) { in getDismissedByUserStats()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | RankingCoordinatorTest.java | 73 @Mock private StatusBarStateController mStatusBarStateController; field in RankingCoordinatorTest 99 mStatusBarStateController, in setup() 113 verify(mStatusBarStateController, times(1)).addCallback(mStateListenerCaptor.capture()); in setup() 169 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressAmbient() 175 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressAmbient() 181 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressAmbient() 182 when(mStatusBarStateController.getDozeAmount()).thenReturn(1f); in filterDozingSuppressAmbient() 196 when(mStatusBarStateController.isDozing()).thenReturn(true); in filterDozingSuppressNotificationList() 202 when(mStatusBarStateController.isDozing()).thenReturn(false); in filterDozingSuppressNotificationList()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | LegacyLockIconViewControllerBaseTest.java | 88 protected @Mock StatusBarStateController mStatusBarStateController; field in LegacyLockIconViewControllerBaseTest 149 when(mStatusBarStateController.isDozing()).thenReturn(false); in setUp() 150 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setUp() 162 mStatusBarStateController, in setUp() 202 when(mStatusBarStateController.isDozing()).thenReturn(false); in setupShowLockIcon() 203 when(mStatusBarStateController.getDozeAmount()).thenReturn(0f); in setupShowLockIcon() 204 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setupShowLockIcon() 219 verify(mStatusBarStateController).addCallback(mStatusBarStateCaptor.capture()); in captureStatusBarStateListener()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingCollectorImplTest.java | 84 private SysuiStatusBarStateController mStatusBarStateController; field in FalsingCollectorImplTest 113 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in setUp() 124 mStatusBarStateController, mKeyguardStateController, in setUp() 202 verify(mStatusBarStateController).addCallback(stateListenerArgumentCaptor.capture()); in testUnregisterSensor_StateTransition() 217 verify(mStatusBarStateController).addCallback(stateListenerArgumentCaptor.capture()); in testRegisterSensor_OccludingActivity_sceneContainerDisabled() 232 verify(mStatusBarStateController).addCallback(stateListenerArgumentCaptor.capture()); in testRegisterSensor_OccludingActivity_sceneContainerEnabled() 359 when(mStatusBarStateController.isDozing()).thenReturn(true); in testGestureWhenDozing() 375 when(mStatusBarStateController.isDozing()).thenReturn(true); in testGestureWhenPulsing() 376 when(mStatusBarStateController.isPulsing()).thenReturn(true); in testGestureWhenPulsing()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/ |
D | DozeServiceHostTest.java | 79 @Mock private StatusBarStateControllerImpl mStatusBarStateController; field in DozeServiceHostTest 105 mStatusBarStateController, mDeviceProvisionedController, in setup() 123 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.KEYGUARD); in testStartStopDozing() 124 when(mStatusBarStateController.isKeyguardRequested()).thenReturn(true); in testStartStopDozing() 130 verify(mStatusBarStateController).setIsDozing(eq(true)); in testStartStopDozing() 135 verify(mStatusBarStateController).setIsDozing(eq(false)); in testStartStopDozing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | PhoneStateMonitor.java | 73 private final StatusBarStateController mStatusBarStateController; field in PhoneStateMonitor 85 mStatusBarStateController = statusBarStateController; in PhoneStateMonitor() 166 int statusBarState = mStatusBarStateController.getState(); in isShadeFullscreen() 172 return mStatusBarStateController.isDozing(); in isDozing()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | UdfpsKeyguardViewLegacyControllerTest.java | 68 verify(mStatusBarStateController).getState(); in testViewControllerQueriesSBStateOnAttached() 70 when(mStatusBarStateController.getState()).thenReturn(StatusBarState.SHADE_LOCKED); in testViewControllerQueriesSBStateOnAttached() 84 verify(mStatusBarStateController).removeCallback(mStatusBarStateListener); in testListenersUnregisteredOnDetached()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardIndicationRotateTextViewControllerTest.java | 73 private StatusBarStateController mStatusBarStateController; field in KeyguardIndicationRotateTextViewControllerTest 89 mStatusBarStateController, mLogger, flags); in setUp() 92 verify(mStatusBarStateController).addCallback(mStatusBarStateListenerCaptor.capture()); in setUp() 99 verify(mStatusBarStateController).removeCallback(mStatusBarStateListener); in onViewDetached_removesStatusBarStateListener() 120 verify(mStatusBarStateController).removeCallback(mStatusBarStateListener); in destroy_removesStatusBarStateListener()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardQsUserSwitchController.java | 76 protected final SysuiStatusBarStateController mStatusBarStateController; field in KeyguardQsUserSwitchController 94 boolean goingToFullShade = mStatusBarStateController.goingToFullShade(); 160 mStatusBarStateController = statusBarStateController; in KeyguardQsUserSwitchController() 215 mStatusBarStateController.addCallback(mStatusBarStateListener); in onViewAttached() 228 mStatusBarStateController.removeCallback(mStatusBarStateListener); in onViewDetached()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImpl.java | 73 private final StatusBarStateController mStatusBarStateController; field in NotificationInterruptStateProviderImpl 143 mStatusBarStateController = statusBarStateController; in NotificationInterruptStateProviderImpl() 230 if (mStatusBarStateController.isDozing()) { in checkHeadsUp() 327 if (mStatusBarStateController.isDreaming()) { in getFullScreenIntentDecision() 333 if (mStatusBarStateController.getState() == StatusBarState.KEYGUARD) { in getFullScreenIntentDecision() 447 boolean inShade = mStatusBarStateController.getState() == SHADE; in shouldHeadsUpWhenAwake() 465 boolean inUse = mPowerManager.isScreenOn() && !mStatusBarStateController.isDreaming(); in shouldHeadsUpWhenAwake()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | ShadeControllerImpl.java | 63 private final StatusBarStateController mStatusBarStateController; field in ShadeControllerImpl 103 mStatusBarStateController = statusBarStateController; in ShadeControllerImpl() 130 int statusBarState = mStatusBarStateController.getState(); in animateCollapseShade() 248 && mStatusBarStateController.getState() == StatusBarState.SHADE) { in cancelExpansionAndCollapseShade()
|