Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +6 −1 Original line number Diff line number Diff line Loading @@ -155,5 +155,10 @@ interface ISystemUiProxy { */ void onImeSwitcherPressed() = 49; // Next id = 50 /** * Notifies to toggle notification panel. */ void toggleNotificationPanel() = 50; // Next id = 51 } packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +7 −0 Original line number Diff line number Diff line Loading @@ -404,6 +404,13 @@ public class OverviewProxyService extends CurrentUserTracker implements () -> mCommandQueue.handleSystemKey(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_DOWN)); } @Override public void toggleNotificationPanel() { verifyCallerAndClearCallingIdentityPostMain("toggleNotificationPanel", () -> mStatusBarOptionalLazy.get().ifPresent(StatusBar::togglePanel)); } private boolean verifyCaller(String reason) { final int callerId = Binder.getCallingUserHandle().getIdentifier(); if (callerId != mCurrentBoundedUserId) { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Diff line number Diff line Loading @@ -434,6 +434,10 @@ public class StatusBar extends CoreStartable implements mCommandQueueCallbacks.animateCollapsePanels(flags, force); } /** */ public void togglePanel() { mCommandQueueCallbacks.togglePanel(); } /** * The {@link StatusBarState} of the status bar. */ Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +6 −1 Original line number Diff line number Diff line Loading @@ -155,5 +155,10 @@ interface ISystemUiProxy { */ void onImeSwitcherPressed() = 49; // Next id = 50 /** * Notifies to toggle notification panel. */ void toggleNotificationPanel() = 50; // Next id = 51 }
packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +7 −0 Original line number Diff line number Diff line Loading @@ -404,6 +404,13 @@ public class OverviewProxyService extends CurrentUserTracker implements () -> mCommandQueue.handleSystemKey(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_DOWN)); } @Override public void toggleNotificationPanel() { verifyCallerAndClearCallingIdentityPostMain("toggleNotificationPanel", () -> mStatusBarOptionalLazy.get().ifPresent(StatusBar::togglePanel)); } private boolean verifyCaller(String reason) { final int callerId = Binder.getCallingUserHandle().getIdentifier(); if (callerId != mCurrentBoundedUserId) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Diff line number Diff line Loading @@ -434,6 +434,10 @@ public class StatusBar extends CoreStartable implements mCommandQueueCallbacks.animateCollapsePanels(flags, force); } /** */ public void togglePanel() { mCommandQueueCallbacks.togglePanel(); } /** * The {@link StatusBarState} of the status bar. */ Loading