Home
last modified time | relevance | path

Searched refs:mStatusBar (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarTest.java176 private StatusBar mStatusBar; field in StatusBarTest
357 () -> mStatusBar, () -> mAssistManager, Optional.of(mBubbles)); in setup()
359 mStatusBar = new StatusBar( in setup()
462 mStatusBar.mNotificationShadeWindowView = mNotificationShadeWindowView; in setup()
463 mStatusBar.mNotificationPanelViewController = mNotificationPanelViewController; in setup()
464 mStatusBar.mDozeScrimController = mDozeScrimController; in setup()
465 mStatusBar.mPresenter = mNotificationPresenter; in setup()
466 mStatusBar.mKeyguardIndicationController = mKeyguardIndicationController; in setup()
467 mStatusBar.mBarService = mBarService; in setup()
468 mStatusBar.mStackScroller = mStackScroller; in setup()
[all …]
DDozeServiceHostTest.java84 @Mock private StatusBar mStatusBar; field in DozeServiceHostTest
105 mStatusBar, in setup()
121 verify(mStatusBar).updateIsKeyguard(); in testStartStopDozing()
130 mStatusBar.setBarStateForTest(StatusBarState.KEYGUARD); in testPulseWhileDozing_updatesScrimController()
131 mStatusBar.showKeyguardImpl(); in testPulseWhileDozing_updatesScrimController()
156 verify(mStatusBar).updateScrimController(); in testPulseWhileDozing_updatesScrimController()
157 reset(mStatusBar); in testPulseWhileDozing_updatesScrimController()
161 verify(mStatusBar).updateScrimController(); in testPulseWhileDozing_updatesScrimController()
DStatusBarKeyguardViewManagerTest.java79 private StatusBar mStatusBar; field in StatusBarKeyguardViewManagerTest
137 mStatusBarKeyguardViewManager.registerStatusBar(mStatusBar, mContainer, in setUp()
178 when(mStatusBar.isFullScreenUserSwitcherState()).thenReturn(true); in onPanelExpansionChanged_neverHidesFullscreenBouncer()
247 when(mStatusBar.isInLaunchTransition()).thenReturn(true); in onPanelExpansionChanged_neverTranslatesBouncerWhenLaunchingApp()
256 verify(mStatusBar).animateKeyguardUnoccluding(); in setOccluded_animatesPanelExpansion_onlyIfBouncerHidden()
259 clearInvocations(mStatusBar); in setOccluded_animatesPanelExpansion_onlyIfBouncerHidden()
261 verify(mStatusBar, never()).animateKeyguardUnoccluding(); in setOccluded_animatesPanelExpansion_onlyIfBouncerHidden()
DKeyguardBottomAreaTest.kt28 private lateinit var mStatusBar: StatusBar variable in com.android.systemui.statusbar.phone.KeyguardBottomAreaTest
45 mKeyguardBottomArea.setStatusBar(mStatusBar) in setup()
DStatusBarNotificationActivityStarterTest.java116 private StatusBar mStatusBar; field in StatusBarNotificationActivityStarterTest
226 .setStatusBar(mStatusBar) in setUp()
261 when(mStatusBar.isOccluded()).thenReturn(true); in testOnNotificationClicked_keyGuardShowing()
320 when(mStatusBar.isOccluded()).thenReturn(true); in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing()
350 when(mStatusBar.isOccluded()).thenReturn(true); in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing()
DCollapsedStatusBarFragmentTest.java70 private final StatusBar mStatusBar = mock(StatusBar.class); field in CollapsedStatusBarFragmentTest
80 when(mStatusBar.getPanelController()).thenReturn( in setup()
251 mStatusBar, in instantiate()
DStatusBarNotificationPresenterTest.java85 private StatusBar mStatusBar = mock(StatusBar.class); field in StatusBarNotificationPresenterTest
130 mock(KeyguardIndicationController.class), mStatusBar, in setup()
200 when(mStatusBar.areNotificationAlertsDisabled()).thenReturn(true); in testSuppressInterruptions_statusBarAlertsDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoHideController.java39 private AutoHideUiElement mStatusBar; field in AutoHideController
65 mStatusBar = element; in setStatusBar()
83 if (mStatusBar != null) { in hideTransientBars()
84 mStatusBar.hide(); in hideTransientBars()
122 if (mStatusBar != null) { in getCheckBarModesRunnable()
123 return () -> mStatusBar.synchronizeState(); in getCheckBarModesRunnable()
146 if (mStatusBar != null) { in checkUserAutoHide()
147 shouldHide &= mStatusBar.shouldHideOnTouch(); in checkUserAutoHide()
164 if (mStatusBar != null && mStatusBar.isVisible()) { in isAnyTransientBarShown()
DStatusBarKeyguardViewManager.java118 mStatusBar.wakeUpIfDozing(SystemClock.uptimeMillis(), mContainer, "BOUNCER_VISIBLE");
168 protected StatusBar mStatusBar; field in StatusBarKeyguardViewManager
272 mStatusBar = statusBar; in registerStatusBar()
354 if (!isWakeAndUnlocking() && !mStatusBar.isInLaunchTransition()) { in onPanelExpansionChanged()
365 mStatusBar.wakeUpIfDozing(SystemClock.uptimeMillis(), mContainer, "BOUNCER_VISIBLE"); in onPanelExpansionChanged()
399 mStatusBar.hideKeyguard(); in showBouncerOrKeyguard()
402 mStatusBar.showKeyguard(); in showBouncerOrKeyguard()
528 mStatusBar.hideKeyguard(); in reset()
558 mStatusBar.updateScrimController(); in updateAlternateAuthShowing()
564 mStatusBar.getNotificationShadeWindowView().getWindowInsetsController() in onStartedWakingUp()
[all …]
DCollapsedStatusBarFragment.java77 private PhoneStatusBarView mStatusBar; field in CollapsedStatusBarFragment
151 mStatusBar = (PhoneStatusBarView) view; in onViewCreated()
152 View contents = mStatusBar.findViewById(R.id.status_bar_contents); in onViewCreated()
156 mStatusBar.restoreHierarchyState( in onViewCreated()
166 mSystemIconArea = mStatusBar.findViewById(R.id.system_icon_area); in onViewCreated()
167 mClockView = mStatusBar.findViewById(R.id.clock); in onViewCreated()
168 mOngoingCallChip = mStatusBar.findViewById(R.id.ongoing_call_chip); in onViewCreated()
181 mStatusBar.saveHierarchyState(states); in onSaveInstanceState()
213 ViewGroup notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area); in initNotificationIconArea()
222 ViewGroup statusBarCenteredIconArea = mStatusBar.findViewById(R.id.centered_icon_area); in initNotificationIconArea()
[all …]
DStatusBarNotificationActivityStarter.java123 private final StatusBar mStatusBar; field in StatusBarNotificationActivityStarter
199 mStatusBar = statusBar; in StatusBarNotificationActivityStarter()
260 && mStatusBar.shouldAnimateLaunch(isActivityIntent); in onNotificationClicked()
304 && mStatusBar.isOccluded()) { in handleNotificationClickAfterKeyguardDismissed()
438 mNotificationAnimationProvider.getAnimatorController(row), mStatusBar, in startNotificationIntent()
446 mStatusBar.getDisplayId(), in startNotificationIntent()
450 : getActivityOptions(mStatusBar.getDisplayId(), adapter); in startNotificationIntent()
465 boolean animate = mStatusBar.shouldAnimateLaunch(true /* isActivityIntent */); in startNotificationGutsIntent()
473 mStatusBar, true /* isActivityIntent */); in startNotificationGutsIntent()
480 mStatusBar.getDisplayId(), in startNotificationGutsIntent()
[all …]
DDozeServiceHost.java94 private StatusBar mStatusBar; field in DozeServiceHost
145 mStatusBar = statusBar; in initialize()
199 mStatusBar.updateIsKeyguard(); in startDozing()
243 mStatusBar.updateNotificationPanelTouchState(); in pulseWhileDozing()
251 mStatusBar.updateNotificationPanelTouchState(); in pulseWhileDozing()
265 mStatusBar.updateScrimController(); in pulseWhileDozing()
272 mStatusBar.updateScrimController(); in pulseWhileDozing()
407 mStatusBar.updateScrimController(); in prepareForGentleSleep()
414 mStatusBar.updateScrimController(); in cancelGentleSleep()
DPanelViewController.java109 protected StatusBar mStatusBar; field in PanelViewController
322 float width = mStatusBar.getDisplayWidth(); in startOpening()
323 float height = mStatusBar.getDisplayHeight(); in startOpening()
324 int rot = mStatusBar.getRotation(); in startOpening()
395 mStatusBar.isFalsingThresholdNeeded(), mStatusBar.isWakeUpComingFromTouch()); in endMotionEvent()
398 float displayDensity = mStatusBar.getDisplayDensity(); in endMotionEvent()
415 } else if (!mStatusBar.isBouncerShowing() in endMotionEvent()
430 float factor = mStatusBar.isWakeUpComingFromTouch() ? 1.5f : 1.0f; in getFalsingThreshold()
517 if (!mStatusBar.isFalsingThresholdNeeded()) { in isFalseTouch()
884 if (mStatusBar.getNotificationShadeWindowView().isVisibleToUser()) { in expand()
[all …]
DStatusBarNotificationPresenter.java116 private final StatusBar mStatusBar; field in StatusBarNotificationPresenter
155 mStatusBar = statusBar; in StatusBarNotificationPresenter()
348 mStatusBar.setLockscreenUser(newUserId); in onUserSwitched()
402 mStatusBar.wakeUpIfDozing(SystemClock.uptimeMillis(), clickedView, "NOTIFICATION_CLICK"); in onExpandClicked()
470 if (mStatusBar.isOccluded()) {
493 if (mKeyguardStateController.isShowing() && !mStatusBar.isOccluded()) {
518 return mStatusBar.areNotificationAlertsDisabled();
DStatusBarTouchableRegionManager.java61 private StatusBar mStatusBar; field in StatusBarTouchableRegionManager
123 mStatusBar = statusBar; in setup()
249 if (mIsStatusBarExpanded || mStatusBar.isBouncerShowing()) {
DNotificationPanelViewController.java1016 mStatusBar = bar; in setStatusBar()
1017 mKeyguardBottomArea.setStatusBar(mStatusBar); in setStatusBar()
1178 mKeyguardBottomArea.setStatusBar(mStatusBar); in initBottomArea()
1359 lockIconPadding = mStatusBar.getDisplayHeight() - mLockIconViewController.getTop() in computeMaxKeyguardNotifications()
1506 mStatusBar.getGutsManager().closeAndSaveGuts(true /* leavebehind */, true /* force */, in resetViews()
1779 (int) ((y - mInitialTouchY) / mStatusBar.getDisplayDensity()), in logQsSwipeDown()
1780 (int) (vel / mStatusBar.getDisplayDensity())); in logQsSwipeDown()
2051 float factor = mStatusBar.isWakeUpComingFromTouch() ? 1.5f : 1.0f; in getFalsingThreshold()
2078 mStatusBar.requestFaceAuth(false); in onQsExpansionStarted()
2089 mStatusBar.setQsExpanded(expanded); in setQsExpanded()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/toast/
DTextToastRecord.java40 private final StatusBarManagerInternal mStatusBar; field in TextToastRecord
51 mStatusBar = statusBarManager; in TextToastRecord()
61 if (mStatusBar == null) { in show()
65 mStatusBar.showToast(uid, pkg, token, text, windowToken, getDuration(), mCallback); in show()
72 checkNotNull(mStatusBar, "Cannot hide toast that wasn't shown"); in hide()
74 mStatusBar.hideToast(pkg, token); in hide()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsAnimationViewController.java45 @NonNull final StatusBar mStatusBar; field in UdfpsAnimationViewController
57 mStatusBar = statusBar; in UdfpsAnimationViewController()
65 mStatusBar.addExpansionChangedListener(mStatusBarExpansionChangedListener); in onViewAttached()
71 mStatusBar.removeExpansionChangedListener(mStatusBarExpansionChangedListener); in onViewDetached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DActionProxyReceiver.java52 private final StatusBar mStatusBar; field in ActionProxyReceiver
60 mStatusBar = statusBar.orElse(null); in ActionProxyReceiver()
92 if (mStatusBar != null) { in onReceive()
93 mStatusBar.executeRunnableDismissingKeyguard(startActivityRunnable, null, in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DUdfpsKeyguardViewControllerTest.java66 private StatusBar mStatusBar; field in UdfpsKeyguardViewControllerTest
109 mStatusBar, in setUp()
156 verify(mStatusBar).removeExpansionChangedListener(mExpansionListener); in testListenersUnregisteredOnDetached()
286 verify(mStatusBar).addExpansionChangedListener(mExpansionListenerCaptor.capture()); in captureExpansionListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DSystemActions.java145 private final Lazy<StatusBar> mStatusBar; field in SystemActions
166 mStatusBar = statusBar; in SystemActions()
245 StatusBar statusBar = mStatusBar.get(); in registerOrUnregisterDismissNotificationShadeAction()
375 mStatusBar.get().animateExpandNotificationsPanel(); in handleNotifications()
379 mStatusBar.get().animateExpandSettingsPanel(null); in handleQuickSettings()
428 mStatusBar.get().animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, false /* force */); in handleAccessibilityDismissNotificationShade()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsDialogLiteTest.java114 @Mock private StatusBar mStatusBar; field in GlobalActionsDialogLiteTest
159 mStatusBar in setUp()
228 doReturn(true).when(mStatusBar).isKeyguardShowing(); in testSwipeDownLockscreen_logAndOpenQS()
243 verify(mStatusBar).animateExpandSettingsPanel(null); in testSwipeDownLockscreen_logAndOpenQS()
252 doReturn(false).when(mStatusBar).isKeyguardShowing(); in testSwipeDown_logAndOpenNotificationShade()
267 verify(mStatusBar).animateExpandNotificationsPanel(); in testSwipeDown_logAndOpenNotificationShade()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayPolicy.java269 private WindowState mStatusBar = null; field in DisplayPolicy
456 if (mStatusBar != null) { in DisplayPolicy()
457 requestTransientBars(mStatusBar); in DisplayPolicy()
960 if ((mStatusBar != null && mStatusBar.isAlive()) in validateAddingWindowLw()
1015 if ((mStatusBar != null && mStatusBar.isAlive()) in validateAddingWindowLw()
1079 mStatusBar = win; in addWindowLw()
1229 if (mStatusBar == win || mStatusBarAlt == win) {
1230 mStatusBar = null;
1260 return mStatusBar != null ? mStatusBar : mStatusBarAlt;
1288 if (win == mStatusBar) {
[all …]
DRecentsAnimationController.java115 final StatusBarManagerInternal mStatusBar; field in RecentsAnimationController
419 mStatusBar = LocalServices.getService(StatusBarManagerInternal.class); in RecentsAnimationController()
496 if (mStatusBar != null) { in initialize()
497 mStatusBar.onRecentsAnimationStateChanged(true /* running */); in initialize()
664 if (mStatusBar != null) { in attachNavigationBarToApp()
665 mStatusBar.setNavigationBarLumaSamplingEnabled(mDisplayId, false); in attachNavigationBarToApp()
676 if (mStatusBar != null) { in restoreNavigationBarFromApp()
677 mStatusBar.setNavigationBarLumaSamplingEnabled(mDisplayId, true); in restoreNavigationBarFromApp()
1007 if (mStatusBar != null) {
1008 mStatusBar.onRecentsAnimationStateChanged(false /* running */);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentsAnimationControllerTest.java536 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testRestoreNavBarWhenEnteringRecents_expectAnimation()
544 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testRestoreNavBarWhenEnteringRecents_expectAnimation()
560 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testRestoreNavBarWhenBackToApp_expectNoAnimation()
570 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testRestoreNavBarWhenBackToApp_expectNoAnimation()
587 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testAddTaskToTargets_expectAnimation()
598 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testAddTaskToTargets_expectAnimation()
630 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testAttachNavBarInSplitScreenMode()
639 verify(mController.mStatusBar).setNavigationBarLumaSamplingEnabled( in testAttachNavBarInSplitScreenMode()

12