/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemBars.java | 34 private SystemUI mStatusBar; field in SystemBars 44 if (mStatusBar != null) { in dump() 45 mStatusBar.dump(fd, pw, args); in dump() 62 mStatusBar = (SystemUI) cls.newInstance(); in createStatusBarFromConfig() 66 mStatusBar.mContext = mContext; in createStatusBarFromConfig() 67 mStatusBar.mComponents = mComponents; in createStatusBarFromConfig() 68 if (mStatusBar instanceof StatusBar) { in createStatusBarFromConfig() 71 .createStatusBar((StatusBar) mStatusBar); in createStatusBarFromConfig() 73 mStatusBar.start(); in createStatusBarFromConfig() 74 if (DEBUG) Log.d(TAG, "started " + mStatusBar.getClass().getSimpleName()); in createStatusBarFromConfig()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImplTest.java | 43 StatusBar mStatusBar; field in VolumeDialogControllerImplTest 48 mStatusBar = mock(StatusBar.class); in setup() 49 mVolumeController = new TestableVolumeDialogControllerImpl(mContext, mCallback, mStatusBar); in setup() 55 when(mStatusBar.isDeviceInteractive()).thenReturn(false); in testVolumeChangeW_deviceNotInteractiveAOD() 56 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceNotInteractiveAOD() 63 when(mStatusBar.isDeviceInteractive()).thenReturn(true); in testVolumeChangeW_deviceInteractive() 64 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive() 71 when(mStatusBar.isDeviceInteractive()).thenReturn(true); in testVolumeChangeW_deviceInteractive_StartedSleeping() 72 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive_StartedSleeping() 74 when(mStatusBar.isDeviceInteractive()).thenReturn(false); in testVolumeChangeW_deviceInteractive_StartedSleeping() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarTest.java | 176 private TestableStatusBar mStatusBar; field in StatusBarTest 255 mStatusBar = new TestableStatusBar(mStatusBarKeyguardViewManager, mUnlockMethodCache, in setup() 267 mStatusBar.mContext = mContext; in setup() 268 mStatusBar.mComponents = mContext.getComponents(); in setup() 271 .createStatusBar(mStatusBar); in setup() 272 mStatusBar.putComponent(StatusBar.class, mStatusBar); in setup() 280 if (m.getCallback() == mStatusBar.mNotificationLogger.getVisibilityReporter()) { in setup() 289 mStatusBar.mCommandQueue = mock(CommandQueue.class); in testSetBouncerShowing_noCrash() 290 mStatusBar.setBouncerShowing(true); in testSetBouncerShowing_noCrash() 298 mStatusBar.executeRunnableDismissingKeyguard(null, null, false, false, false); in executeRunnableDismissingKeyguard_nullRunnable_showingAndOccluded() [all …]
|
D | StatusBarKeyguardViewManagerTest.java | 61 private StatusBar mStatusBar; field in StatusBarKeyguardViewManagerTest 84 mStatusBarKeyguardViewManager.registerStatusBar(mStatusBar, mContainer, in setUp() 102 mStatusBar.showBouncer(true /* scrimmed */); in showBouncer_onlyWhenShowing() 111 mStatusBar.showBouncer(true /* scrimmed */); in showBouncer_notWhenBouncerAlreadyShowing() 125 when(mStatusBar.isFullScreenUserSwitcherState()).thenReturn(true); in onPanelExpansionChanged_neverHidesFullscreenBouncer() 157 when(mStatusBar.isKeyguardCurrentlySecure()).thenReturn(true); in onPanelExpansionChanged_showsBouncerWhenSwiping() 194 when(mStatusBar.isInLaunchTransition()).thenReturn(true); in onPanelExpansionChanged_neverTranslatesBouncerWhenLaunchingApp() 203 verify(mStatusBar).animateKeyguardUnoccluding(); in setOccluded_animatesPanelExpansion_onlyIfBouncerHidden() 206 clearInvocations(mStatusBar); in setOccluded_animatesPanelExpansion_onlyIfBouncerHidden() 208 verify(mStatusBar, never()).animateKeyguardUnoccluding(); in setOccluded_animatesPanelExpansion_onlyIfBouncerHidden()
|
D | StatusBarNotificationPresenterTest.java | 59 private StatusBarNotificationPresenter mStatusBar; field in StatusBarNotificationPresenterTest 74 mStatusBar = new StatusBarNotificationPresenter(mContext, in setup() 94 mStatusBar.canHeadsUp(entry, sbn)); in testHeadsUp_disabledStatusBar() 108 mStatusBar.canHeadsUp(entry, sbn)); in testHeadsUp_disabledNotificationShade() 114 mStatusBar.onActivated(view); in onActivatedMetrics()
|
D | StatusBarWindowViewTest.java | 48 private StatusBar mStatusBar; field in StatusBarWindowViewTest 58 mStatusBar = mock(StatusBar.class); in setUp() 59 mView.setService(mStatusBar); in setUp()
|
D | BiometricsUnlockControllerTest.java | 70 private StatusBar mStatusBar; field in BiometricsUnlockControllerTest 194 mKeyguardViewMediator, mScrimController, mStatusBar, mUnlockMethodCache, in TestableBiometricUnlockController()
|
D | NotificationPanelViewTest.java | 69 private StatusBar mStatusBar; field in NotificationPanelViewTest 193 initDependencies(NotificationPanelViewTest.this.mStatusBar, in TestableNotificationPanelView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarKeyguardViewManager.java | 94 mStatusBar.wakeUpIfDozing(SystemClock.uptimeMillis(), mContainer, "BOUNCER_VISIBLE"); 129 protected StatusBar mStatusBar; field in StatusBarKeyguardViewManager 209 mStatusBar = statusBar; in registerStatusBar() 236 if (!isWakeAndUnlocking() && !mStatusBar.isInLaunchTransition()) { in onPanelExpansionChanged() 240 && mStatusBar.isKeyguardCurrentlySecure() in onPanelExpansionChanged() 247 mStatusBar.wakeUpIfDozing(SystemClock.uptimeMillis(), mContainer, "BOUNCER_VISIBLE"); in onPanelExpansionChanged() 301 mStatusBar.hideKeyguard(); in showBouncerOrKeyguard() 304 mStatusBar.showKeyguard(); in showBouncerOrKeyguard() 377 mStatusBar.hideKeyguard(); in reset() 453 mStatusBar.setOccluded(occluded); in setOccluded() [all …]
|
D | CollapsedStatusBarFragment.java | 57 private PhoneStatusBarView mStatusBar; field in CollapsedStatusBarFragment 97 mStatusBar = (PhoneStatusBarView) view; in onViewCreated() 99 mStatusBar.restoreHierarchyState( in onViewCreated() 105 mSystemIconArea = mStatusBar.findViewById(R.id.system_icon_area); in onViewCreated() 106 mClockView = mStatusBar.findViewById(R.id.clock); in onViewCreated() 117 mStatusBar.saveHierarchyState(states); in onSaveInstanceState() 146 ViewGroup notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area); in initNotificationIconArea() 155 ViewGroup statusBarCenteredIconArea = mStatusBar.findViewById(R.id.centered_icon_area); in initNotificationIconArea() 239 if (!mStatusBar.isClosed() && mStatusBarComponent.hideStatusBarIconsWhenExpanded()) { in shouldHideNotificationIcons() 269 if (!mStatusBar.isClosed() && !mKeyguardMonitor.isShowing() in clockHiddenMode() [all …]
|
D | PanelView.java | 78 protected StatusBar mStatusBar; field in PanelView 332 && !mStatusBar.isBouncerShowing()) { in onTouchEvent() 419 float width = mStatusBar.getDisplayWidth(); in startOpening() 420 float height = mStatusBar.getDisplayHeight(); in startOpening() 421 int rot = mStatusBar.getRotation(); in startOpening() 445 mStatusBar.handlePeekToExpandTransistion(); in startExpandingFromPeek() 476 mStatusBar.isFalsingThresholdNeeded(), in endMotionEvent() 477 mStatusBar.isWakeUpComingFromTouch()); in endMotionEvent() 480 float displayDensity = mStatusBar.getDisplayDensity(); in endMotionEvent() 494 && !mStatusBar.isBouncerShowing() && !mKeyguardMonitor.isKeyguardFadingAway()) { in endMotionEvent() [all …]
|
D | AutoHideController.java | 49 private StatusBar mStatusBar; field in AutoHideController 89 mStatusBar = statusBar; in setStatusBar() 163 if ((hasStatusBar() && mStatusBar.getStatusBarMode() == MODE_SEMI_TRANSPARENT) in touchAutoHide() 173 return () -> mStatusBar.checkBarModes(); in getCheckBarModesRunnable() 227 return mStatusBar != null; in hasStatusBar()
|
D | BiometricUnlockController.java | 130 private StatusBar mStatusBar; field in BiometricUnlockController 186 mStatusBar = statusBar; in BiometricUnlockController() 339 if (mStatusBar.getNavigationBarView() != null) { in startWakeAndUnlock() 340 mStatusBar.getNavigationBarView().setWakeAndUnlocking(true); in startWakeAndUnlock() 348 mStatusBar.notifyBiometricAuthModeChanged(); in startWakeAndUnlock() 468 if (mStatusBar.getNavigationBarView() != null) { in resetMode() 469 mStatusBar.getNavigationBarView().setWakeAndUnlocking(false); in resetMode() 471 mStatusBar.notifyBiometricAuthModeChanged(); in resetMode()
|
D | StatusBarTouchableRegionManager.java | 47 private final StatusBar mStatusBar; field in StatusBarTouchableRegionManager 58 mStatusBar = statusBar; in StatusBarTouchableRegionManager() 131 if (mIsStatusBarExpanded || mStatusBar.isBouncerShowing()) { in onComputeInternalInsets()
|
D | NotificationPanelView.java | 390 mStatusBar = bar; in setStatusBar() 391 mKeyguardBottomArea.setStatusBar(mStatusBar); in setStatusBar() 560 mKeyguardBottomArea.setStatusBar(mStatusBar); in initBottomArea() 790 mStatusBar.getGutsManager().closeAndSaveGuts(true /* leavebehind */, true /* force */, in resetViews() 883 if (mStatusBar.isBouncerShowing()) { in onInterceptTouchEvent() 1013 (int) ((y - mInitialTouchY) / mStatusBar.getDisplayDensity()), in logQsSwipeDown() 1014 (int) (vel / mStatusBar.getDisplayDensity())); in logQsSwipeDown() 1056 if (mStatusBar.isBouncerShowingScrimmed()) { in onTouchEvent() 1266 float factor = mStatusBar.isWakeUpComingFromTouch() ? 1.5f : 1.0f; in getFalsingThreshold() 1324 mStatusBar.requestFaceAuth(); in onQsExpansionStarted() [all …]
|
D | NavigationBarFragment.java | 154 private StatusBar mStatusBar; field in NavigationBarFragment 197 mStatusBar.collapsePanel(true /* animate */); 266 mStatusBar = SysUiServiceProvider.getComponent(getContext(), StatusBar.class); in onCreate() 317 mNavigationBarView.setComponents(mStatusBar.getPanel(), mAssistManager); in onViewCreated() 687 if (mStatusBar.isKeyguardShowing()) { in onHomeTouch() 697 mStatusBar.awakenDreams(); in onHomeTouch() 704 mStatusBar.setQsScrimEnabled(!isVertical); in onVerticalChanged() 726 mStatusBar.awakenDreams(); in onHomeLongClick() 755 mStatusBar.awakenDreams(); in onRecentsClick() 853 return mStatusBar.toggleSplitScreenMode(MetricsEvent.ACTION_WINDOW_DOCK_LONGPRESS, in onLongPressRecents() [all …]
|
D | KeyguardBottomAreaView.java | 137 private StatusBar mStatusBar; field in KeyguardBottomAreaView 223 setStatusBar(oldBottomArea.mStatusBar); in initFrom() 346 mStatusBar = statusBar; in setStatusBar() 553 if (mStatusBar.isKeyguardCurrentlySecure()) { in launchVoiceAssist() 558 mStatusBar.executeRunnableDismissingKeyguard(runnable, null /* cancelAction */, in launchVoiceAssist() 808 boolean isCameraDisabled = (mStatusBar != null) && !mStatusBar.isCameraAllowedByAdmin(); in getIcon()
|
D | NotificationIconAreaController.java | 57 private StatusBar mStatusBar; field in NotificationIconAreaController 78 mStatusBar = statusBar; in NotificationIconAreaController() 103 mNotificationScrollLayout = mStatusBar.getNotificationScrollLayout(); in initializeNotificationAreaViews() 191 return mStatusBar.getStatusBarHeight(); in getHeight()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | FullscreenUserSwitcher.java | 36 private final CarStatusBar mStatusBar; field in FullscreenUserSwitcher 39 mStatusBar = statusBar; in FullscreenUserSwitcher() 89 mStatusBar.dismissKeyguard(); in onUserSelected()
|
D | CarStatusBarKeyguardViewManager.java | 44 CarStatusBar statusBar = (CarStatusBar) mStatusBar; in updateNavigationBarVisibility() 64 CarStatusBar statusBar = (CarStatusBar) mStatusBar; in onCancelClicked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSTileHost.java | 89 private StatusBar mStatusBar; field in QSTileHost 178 if (mStatusBar == null) { in collapsePanels() 179 mStatusBar = SysUiServiceProvider.getComponent(mContext, StatusBar.class); in collapsePanels() 181 mStatusBar.postAnimateCollapsePanels(); in collapsePanels() 186 if (mStatusBar == null) { in forceCollapsePanels() 187 mStatusBar = SysUiServiceProvider.getComponent(mContext, StatusBar.class); in forceCollapsePanels() 189 mStatusBar.postAnimateForceCollapsePanels(); in forceCollapsePanels() 194 if (mStatusBar == null) { in openPanels() 195 mStatusBar = SysUiServiceProvider.getComponent(mContext, StatusBar.class); in openPanels() 197 mStatusBar.postAnimateOpenPanels(); in openPanels()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayPolicy.java | 274 private WindowState mStatusBar = null; field in DisplayPolicy 412 ? mStatusBar : mNavigationBar; in handleMessage() 467 if (mStatusBar != null) { in DisplayPolicy() 468 requestTransientBars(mStatusBar); in DisplayPolicy() 908 if (mStatusBar != null) { in prepareAddWindowLw() 909 if (mStatusBar.isAlive()) { in prepareAddWindowLw() 913 mStatusBar = win; in prepareAddWindowLw() 988 if (mStatusBar == win) { in removeWindowLw() 989 mStatusBar = null; in removeWindowLw() 1028 if (win == mStatusBar) { in selectAnimationLw() [all …]
|
D | RecentsAnimationController.java | 91 private final StatusBarManagerInternal mStatusBar; field in RecentsAnimationController 313 mStatusBar = LocalServices.getService(StatusBarManagerInternal.class); in RecentsAnimationController() 389 mStatusBar.onRecentsAnimationStateChanged(true /* running */); in initialize() 605 mStatusBar.onRecentsAnimationStateChanged(false /* running */); in cleanupAnimation()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 76 private StatusBar mStatusBar; field in ScreenDecorationsTest 96 mStatusBar = mock(StatusBar.class); in setup() 99 when(mStatusBar.getStatusBarWindow()).thenReturn(mView); in setup() 100 mContext.putComponent(StatusBar.class, mStatusBar); in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImpl.java | 116 protected StatusBar mStatusBar; field in VolumeDialogControllerImpl 441 if (mStatusBar == null) { in updateStatusBar() 442 mStatusBar = SysUiServiceProvider.getComponent(mContext, StatusBar.class); in updateStatusBar() 450 return mStatusBar != null ? in shouldShowUI() 451 mStatusBar.getWakefulnessState() != WakefulnessLifecycle.WAKEFULNESS_ASLEEP in shouldShowUI() 452 && mStatusBar.getWakefulnessState() != in shouldShowUI() 454 && mStatusBar.isDeviceInteractive() in shouldShowUI()
|