Loading core/java/android/app/StatusBarManager.java +9 −24 Original line number Original line Diff line number Diff line Loading @@ -97,13 +97,13 @@ public class StatusBarManager { } } /** /** * Expand the notifications. * Expand the notifications panel. */ */ public void expandNotifications() { public void expandNotificationsPanel() { try { try { final IStatusBarService svc = getService(); final IStatusBarService svc = getService(); if (svc != null) { if (svc != null) { svc.expandNotifications(); svc.expandNotificationsPanel(); } } } catch (RemoteException ex) { } catch (RemoteException ex) { // system process is dead anyway. // system process is dead anyway. Loading @@ -112,13 +112,13 @@ public class StatusBarManager { } } /** /** * Collapse the notifications. * Collapse the notifications and settings panels. */ */ public void collapseNotifications() { public void collapsePanels() { try { try { final IStatusBarService svc = getService(); final IStatusBarService svc = getService(); if (svc != null) { if (svc != null) { svc.collapseNotifications(); svc.collapsePanels(); } } } catch (RemoteException ex) { } catch (RemoteException ex) { // system process is dead anyway. // system process is dead anyway. Loading @@ -127,28 +127,13 @@ public class StatusBarManager { } } /** /** * Expand the quick settings. * Expand the settings panel. */ */ public void expandQuickSettings() { public void expandSettingsPanel() { try { try { final IStatusBarService svc = getService(); final IStatusBarService svc = getService(); if (svc != null) { if (svc != null) { svc.expandQuickSettings(); svc.expandSettingsPanel(); } } catch (RemoteException ex) { // system process is dead anyway. throw new RuntimeException(ex); } } /** * Collapse the quick settings. */ public void collapseQuickSettings() { try { final IStatusBarService svc = getService(); if (svc != null) { svc.collapseQuickSettings(); } } } catch (RemoteException ex) { } catch (RemoteException ex) { // system process is dead anyway. // system process is dead anyway. Loading core/java/com/android/internal/statusbar/IStatusBar.aidl +3 −4 Original line number Original line Diff line number Diff line Loading @@ -28,10 +28,9 @@ oneway interface IStatusBar void updateNotification(IBinder key, in StatusBarNotification notification); void updateNotification(IBinder key, in StatusBarNotification notification); void removeNotification(IBinder key); void removeNotification(IBinder key); void disable(int state); void disable(int state); void animateExpandNotifications(); void animateExpandNotificationsPanel(); void animateCollapseNotifications(); void animateExpandSettingsPanel(); void animateExpandQuickSettings(); void animateCollapsePanels(); void animateCollapseQuickSettings(); void setSystemUiVisibility(int vis, int mask); void setSystemUiVisibility(int vis, int mask); void topAppWindowChanged(boolean menuVisible); void topAppWindowChanged(boolean menuVisible); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); Loading core/java/com/android/internal/statusbar/IStatusBarService.aidl +3 −4 Original line number Original line Diff line number Diff line Loading @@ -24,16 +24,15 @@ import com.android.internal.statusbar.StatusBarNotification; /** @hide */ /** @hide */ interface IStatusBarService interface IStatusBarService { { void expandNotifications(); void expandNotificationsPanel(); void collapseNotifications(); void collapsePanels(); void expandQuickSettings(); void collapseQuickSettings(); void disable(int what, IBinder token, String pkg); void disable(int what, IBinder token, String pkg); void setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription); void setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription); void setIconVisibility(String slot, boolean visible); void setIconVisibility(String slot, boolean visible); void removeIcon(String slot); void removeIcon(String slot); void topAppWindowChanged(boolean menuVisible); void topAppWindowChanged(boolean menuVisible); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); void expandSettingsPanel(); // ---- Methods below are for use by the status bar policy services ---- // ---- Methods below are for use by the status bar policy services ---- // You need the STATUS_BAR_SERVICE permission // You need the STATUS_BAR_SERVICE permission Loading packages/SystemUI/src/com/android/systemui/SearchPanelView.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -72,7 +72,7 @@ public class SearchPanelView extends FrameLayout implements private void startAssistActivity() { private void startAssistActivity() { // Close Recent Apps if needed // Close Recent Apps if needed mBar.animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_SEARCH_PANEL); mBar.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_SEARCH_PANEL); // Launch Assist // Launch Assist Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) .getAssistIntent(mContext, UserHandle.USER_CURRENT); .getAssistIntent(mContext, UserHandle.USER_CURRENT); Loading Loading @@ -220,7 +220,7 @@ public class SearchPanelView extends FrameLayout implements public void hide(boolean animate) { public void hide(boolean animate) { if (mBar != null) { if (mBar != null) { // This will indirectly cause show(false, ...) to get called // This will indirectly cause show(false, ...) to get called mBar.animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); mBar.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); } else { } else { setVisibility(View.INVISIBLE); setVisibility(View.INVISIBLE); } } Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -185,7 +185,7 @@ public abstract class BaseStatusBar extends SystemUI implements if (isActivity && handled) { if (isActivity && handled) { // close the shade if it was open // close the shade if it was open animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); visibilityChanged(false); visibilityChanged(false); } } return handled; return handled; Loading Loading @@ -357,7 +357,7 @@ public abstract class BaseStatusBar extends SystemUI implements public boolean onMenuItemClick(MenuItem item) { public boolean onMenuItemClick(MenuItem item) { if (item.getItemId() == R.id.notification_inspect_item) { if (item.getItemId() == R.id.notification_inspect_item) { startApplicationDetailsActivity(packageNameF); startApplicationDetailsActivity(packageNameF); animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); } else { } else { return false; return false; } } Loading Loading @@ -789,7 +789,7 @@ public abstract class BaseStatusBar extends SystemUI implements } } // close the shade if it was open // close the shade if it was open animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); visibilityChanged(false); visibilityChanged(false); // If this click was on the intruder alert, hide that instead // If this click was on the intruder alert, hide that instead Loading Loading
core/java/android/app/StatusBarManager.java +9 −24 Original line number Original line Diff line number Diff line Loading @@ -97,13 +97,13 @@ public class StatusBarManager { } } /** /** * Expand the notifications. * Expand the notifications panel. */ */ public void expandNotifications() { public void expandNotificationsPanel() { try { try { final IStatusBarService svc = getService(); final IStatusBarService svc = getService(); if (svc != null) { if (svc != null) { svc.expandNotifications(); svc.expandNotificationsPanel(); } } } catch (RemoteException ex) { } catch (RemoteException ex) { // system process is dead anyway. // system process is dead anyway. Loading @@ -112,13 +112,13 @@ public class StatusBarManager { } } /** /** * Collapse the notifications. * Collapse the notifications and settings panels. */ */ public void collapseNotifications() { public void collapsePanels() { try { try { final IStatusBarService svc = getService(); final IStatusBarService svc = getService(); if (svc != null) { if (svc != null) { svc.collapseNotifications(); svc.collapsePanels(); } } } catch (RemoteException ex) { } catch (RemoteException ex) { // system process is dead anyway. // system process is dead anyway. Loading @@ -127,28 +127,13 @@ public class StatusBarManager { } } /** /** * Expand the quick settings. * Expand the settings panel. */ */ public void expandQuickSettings() { public void expandSettingsPanel() { try { try { final IStatusBarService svc = getService(); final IStatusBarService svc = getService(); if (svc != null) { if (svc != null) { svc.expandQuickSettings(); svc.expandSettingsPanel(); } } catch (RemoteException ex) { // system process is dead anyway. throw new RuntimeException(ex); } } /** * Collapse the quick settings. */ public void collapseQuickSettings() { try { final IStatusBarService svc = getService(); if (svc != null) { svc.collapseQuickSettings(); } } } catch (RemoteException ex) { } catch (RemoteException ex) { // system process is dead anyway. // system process is dead anyway. Loading
core/java/com/android/internal/statusbar/IStatusBar.aidl +3 −4 Original line number Original line Diff line number Diff line Loading @@ -28,10 +28,9 @@ oneway interface IStatusBar void updateNotification(IBinder key, in StatusBarNotification notification); void updateNotification(IBinder key, in StatusBarNotification notification); void removeNotification(IBinder key); void removeNotification(IBinder key); void disable(int state); void disable(int state); void animateExpandNotifications(); void animateExpandNotificationsPanel(); void animateCollapseNotifications(); void animateExpandSettingsPanel(); void animateExpandQuickSettings(); void animateCollapsePanels(); void animateCollapseQuickSettings(); void setSystemUiVisibility(int vis, int mask); void setSystemUiVisibility(int vis, int mask); void topAppWindowChanged(boolean menuVisible); void topAppWindowChanged(boolean menuVisible); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); Loading
core/java/com/android/internal/statusbar/IStatusBarService.aidl +3 −4 Original line number Original line Diff line number Diff line Loading @@ -24,16 +24,15 @@ import com.android.internal.statusbar.StatusBarNotification; /** @hide */ /** @hide */ interface IStatusBarService interface IStatusBarService { { void expandNotifications(); void expandNotificationsPanel(); void collapseNotifications(); void collapsePanels(); void expandQuickSettings(); void collapseQuickSettings(); void disable(int what, IBinder token, String pkg); void disable(int what, IBinder token, String pkg); void setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription); void setIcon(String slot, String iconPackage, int iconId, int iconLevel, String contentDescription); void setIconVisibility(String slot, boolean visible); void setIconVisibility(String slot, boolean visible); void removeIcon(String slot); void removeIcon(String slot); void topAppWindowChanged(boolean menuVisible); void topAppWindowChanged(boolean menuVisible); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); void setImeWindowStatus(in IBinder token, int vis, int backDisposition); void expandSettingsPanel(); // ---- Methods below are for use by the status bar policy services ---- // ---- Methods below are for use by the status bar policy services ---- // You need the STATUS_BAR_SERVICE permission // You need the STATUS_BAR_SERVICE permission Loading
packages/SystemUI/src/com/android/systemui/SearchPanelView.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -72,7 +72,7 @@ public class SearchPanelView extends FrameLayout implements private void startAssistActivity() { private void startAssistActivity() { // Close Recent Apps if needed // Close Recent Apps if needed mBar.animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_SEARCH_PANEL); mBar.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_SEARCH_PANEL); // Launch Assist // Launch Assist Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) .getAssistIntent(mContext, UserHandle.USER_CURRENT); .getAssistIntent(mContext, UserHandle.USER_CURRENT); Loading Loading @@ -220,7 +220,7 @@ public class SearchPanelView extends FrameLayout implements public void hide(boolean animate) { public void hide(boolean animate) { if (mBar != null) { if (mBar != null) { // This will indirectly cause show(false, ...) to get called // This will indirectly cause show(false, ...) to get called mBar.animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); mBar.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); } else { } else { setVisibility(View.INVISIBLE); setVisibility(View.INVISIBLE); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -185,7 +185,7 @@ public abstract class BaseStatusBar extends SystemUI implements if (isActivity && handled) { if (isActivity && handled) { // close the shade if it was open // close the shade if it was open animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); visibilityChanged(false); visibilityChanged(false); } } return handled; return handled; Loading Loading @@ -357,7 +357,7 @@ public abstract class BaseStatusBar extends SystemUI implements public boolean onMenuItemClick(MenuItem item) { public boolean onMenuItemClick(MenuItem item) { if (item.getItemId() == R.id.notification_inspect_item) { if (item.getItemId() == R.id.notification_inspect_item) { startApplicationDetailsActivity(packageNameF); startApplicationDetailsActivity(packageNameF); animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); } else { } else { return false; return false; } } Loading Loading @@ -789,7 +789,7 @@ public abstract class BaseStatusBar extends SystemUI implements } } // close the shade if it was open // close the shade if it was open animateCollapseNotifications(CommandQueue.FLAG_EXCLUDE_NONE); animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); visibilityChanged(false); visibilityChanged(false); // If this click was on the intruder alert, hide that instead // If this click was on the intruder alert, hide that instead Loading