Loading packages/SystemUI/src/com/android/systemui/statusbar/tv/TvNotificationPanel.java +11 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,10 @@ public class TvNotificationPanel extends SystemUI implements CommandQueue.Callba if (!mNotificationHandlerPackage.isEmpty()) { startNotificationHandlerActivity( new Intent(NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL)); } else { Log.w(TAG, "Not toggling notification panel: config_notificationHandlerPackage is " + "empty"); } } Loading @@ -66,6 +70,10 @@ public class TvNotificationPanel extends SystemUI implements CommandQueue.Callba if (!mNotificationHandlerPackage.isEmpty()) { startNotificationHandlerActivity( new Intent(NotificationManager.ACTION_OPEN_NOTIFICATION_HANDLER_PANEL)); } else { Log.w(TAG, "Not expanding notification panel: config_notificationHandlerPackage is " + "empty"); } } Loading @@ -77,6 +85,9 @@ public class TvNotificationPanel extends SystemUI implements CommandQueue.Callba NotificationManager.ACTION_CLOSE_NOTIFICATION_HANDLER_PANEL); closeNotificationIntent.setPackage(mNotificationHandlerPackage); mContext.sendBroadcastAsUser(closeNotificationIntent, UserHandle.CURRENT); } else { Log.w(TAG, "Not closing notification panel: config_notificationHandlerPackage is empty"); } } Loading services/core/java/com/android/server/policy/PhoneWindowManager.java +17 −8 Original line number Diff line number Diff line Loading @@ -1552,6 +1552,17 @@ public class PhoneWindowManager implements WindowManagerPolicy { startActivityAsUser(intent, UserHandle.CURRENT); } private void toggleNotificationPanel() { IStatusBarService statusBarService = getStatusBarService(); if (statusBarService != null) { try { statusBarService.togglePanel(); } catch (RemoteException e) { // do nothing. } } } private void showPictureInPictureMenu(KeyEvent event) { if (DEBUG_INPUT) Log.d(TAG, "showPictureInPictureMenu event=" + event); mHandler.removeMessages(MSG_SHOW_PICTURE_IN_PICTURE_MENU); Loading Loading @@ -1696,14 +1707,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { launchAssistAction(null, deviceId); break; case LONG_PRESS_HOME_NOTIFICATION_PANEL: IStatusBarService statusBarService = getStatusBarService(); if (statusBarService != null) { try { statusBarService.togglePanel(); } catch (RemoteException e) { // do nothing. } } toggleNotificationPanel(); break; default: Log.w(TAG, "Undefined long press on home behavior: " Loading Loading @@ -2807,6 +2811,11 @@ public class PhoneWindowManager implements WindowManagerPolicy { msg.sendToTarget(); } return -1; } else if (keyCode == KeyEvent.KEYCODE_NOTIFICATION) { if (!down) { toggleNotificationPanel(); } return -1; } // Toggle Caps Lock on META-ALT. Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/tv/TvNotificationPanel.java +11 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,10 @@ public class TvNotificationPanel extends SystemUI implements CommandQueue.Callba if (!mNotificationHandlerPackage.isEmpty()) { startNotificationHandlerActivity( new Intent(NotificationManager.ACTION_TOGGLE_NOTIFICATION_HANDLER_PANEL)); } else { Log.w(TAG, "Not toggling notification panel: config_notificationHandlerPackage is " + "empty"); } } Loading @@ -66,6 +70,10 @@ public class TvNotificationPanel extends SystemUI implements CommandQueue.Callba if (!mNotificationHandlerPackage.isEmpty()) { startNotificationHandlerActivity( new Intent(NotificationManager.ACTION_OPEN_NOTIFICATION_HANDLER_PANEL)); } else { Log.w(TAG, "Not expanding notification panel: config_notificationHandlerPackage is " + "empty"); } } Loading @@ -77,6 +85,9 @@ public class TvNotificationPanel extends SystemUI implements CommandQueue.Callba NotificationManager.ACTION_CLOSE_NOTIFICATION_HANDLER_PANEL); closeNotificationIntent.setPackage(mNotificationHandlerPackage); mContext.sendBroadcastAsUser(closeNotificationIntent, UserHandle.CURRENT); } else { Log.w(TAG, "Not closing notification panel: config_notificationHandlerPackage is empty"); } } Loading
services/core/java/com/android/server/policy/PhoneWindowManager.java +17 −8 Original line number Diff line number Diff line Loading @@ -1552,6 +1552,17 @@ public class PhoneWindowManager implements WindowManagerPolicy { startActivityAsUser(intent, UserHandle.CURRENT); } private void toggleNotificationPanel() { IStatusBarService statusBarService = getStatusBarService(); if (statusBarService != null) { try { statusBarService.togglePanel(); } catch (RemoteException e) { // do nothing. } } } private void showPictureInPictureMenu(KeyEvent event) { if (DEBUG_INPUT) Log.d(TAG, "showPictureInPictureMenu event=" + event); mHandler.removeMessages(MSG_SHOW_PICTURE_IN_PICTURE_MENU); Loading Loading @@ -1696,14 +1707,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { launchAssistAction(null, deviceId); break; case LONG_PRESS_HOME_NOTIFICATION_PANEL: IStatusBarService statusBarService = getStatusBarService(); if (statusBarService != null) { try { statusBarService.togglePanel(); } catch (RemoteException e) { // do nothing. } } toggleNotificationPanel(); break; default: Log.w(TAG, "Undefined long press on home behavior: " Loading Loading @@ -2807,6 +2811,11 @@ public class PhoneWindowManager implements WindowManagerPolicy { msg.sendToTarget(); } return -1; } else if (keyCode == KeyEvent.KEYCODE_NOTIFICATION) { if (!down) { toggleNotificationPanel(); } return -1; } // Toggle Caps Lock on META-ALT. Loading