Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -659,6 +659,14 @@ public class NotificationPanelView extends PanelView implements expand(true /* animate */); expand(true /* animate */); } } public void expandWithoutQs() { if (isQsExpanded()) { flingSettings(0 /* velocity */, false /* expand */); } else { expand(true /* animate */); } } @Override @Override public void fling(float vel, boolean expand) { public void fling(float vel, boolean expand) { GestureRecorder gr = ((PhoneStatusBarView) mBar).mBar.getGestureRecorder(); GestureRecorder gr = ((PhoneStatusBarView) mBar).mBar.getGestureRecorder(); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2298,7 +2298,7 @@ public class StatusBar extends SystemUI implements DemoMode, return ; return ; } } mNotificationPanel.expand(true /* animate */); mNotificationPanel.expandWithoutQs(); if (false) postStartTracing(); if (false) postStartTracing(); } } Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -166,8 +166,8 @@ public class StatusBarTest extends SysuiTestCase { mMetricsLogger = new FakeMetricsLogger(); mMetricsLogger = new FakeMetricsLogger(); mDependency.injectTestDependency(MetricsLogger.class, mMetricsLogger); mDependency.injectTestDependency(MetricsLogger.class, mMetricsLogger); mNotificationLogger = new NotificationLogger(); mDependency.injectTestDependency(NotificationLogger.class, mNotificationLogger); mDependency.injectTestDependency(NotificationLogger.class, mNotificationLogger); mNotificationLogger = new NotificationLogger(); IPowerManager powerManagerService = mock(IPowerManager.class); IPowerManager powerManagerService = mock(IPowerManager.class); HandlerThread handlerThread = new HandlerThread("TestThread"); HandlerThread handlerThread = new HandlerThread("TestThread"); Loading Loading @@ -524,9 +524,9 @@ public class StatusBarTest extends SysuiTestCase { mStatusBar.disable(StatusBarManager.DISABLE_NONE, StatusBarManager.DISABLE2_NONE, false); mStatusBar.disable(StatusBarManager.DISABLE_NONE, StatusBarManager.DISABLE2_NONE, false); verify(mNotificationPanelView).setQsExpansionEnabled(true); verify(mNotificationPanelView).setQsExpansionEnabled(true); mStatusBar.animateExpandNotificationsPanel(); mStatusBar.animateExpandNotificationsPanel(); verify(mNotificationPanelView).expand(anyBoolean()); verify(mNotificationPanelView).expandWithoutQs(); mStatusBar.animateExpandSettingsPanel(null); mStatusBar.animateExpandSettingsPanel(null); verify(mNotificationPanelView).expand(anyBoolean()); verify(mNotificationPanelView).expandWithQs(); } } @Test @Test Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -659,6 +659,14 @@ public class NotificationPanelView extends PanelView implements expand(true /* animate */); expand(true /* animate */); } } public void expandWithoutQs() { if (isQsExpanded()) { flingSettings(0 /* velocity */, false /* expand */); } else { expand(true /* animate */); } } @Override @Override public void fling(float vel, boolean expand) { public void fling(float vel, boolean expand) { GestureRecorder gr = ((PhoneStatusBarView) mBar).mBar.getGestureRecorder(); GestureRecorder gr = ((PhoneStatusBarView) mBar).mBar.getGestureRecorder(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2298,7 +2298,7 @@ public class StatusBar extends SystemUI implements DemoMode, return ; return ; } } mNotificationPanel.expand(true /* animate */); mNotificationPanel.expandWithoutQs(); if (false) postStartTracing(); if (false) postStartTracing(); } } Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -166,8 +166,8 @@ public class StatusBarTest extends SysuiTestCase { mMetricsLogger = new FakeMetricsLogger(); mMetricsLogger = new FakeMetricsLogger(); mDependency.injectTestDependency(MetricsLogger.class, mMetricsLogger); mDependency.injectTestDependency(MetricsLogger.class, mMetricsLogger); mNotificationLogger = new NotificationLogger(); mDependency.injectTestDependency(NotificationLogger.class, mNotificationLogger); mDependency.injectTestDependency(NotificationLogger.class, mNotificationLogger); mNotificationLogger = new NotificationLogger(); IPowerManager powerManagerService = mock(IPowerManager.class); IPowerManager powerManagerService = mock(IPowerManager.class); HandlerThread handlerThread = new HandlerThread("TestThread"); HandlerThread handlerThread = new HandlerThread("TestThread"); Loading Loading @@ -524,9 +524,9 @@ public class StatusBarTest extends SysuiTestCase { mStatusBar.disable(StatusBarManager.DISABLE_NONE, StatusBarManager.DISABLE2_NONE, false); mStatusBar.disable(StatusBarManager.DISABLE_NONE, StatusBarManager.DISABLE2_NONE, false); verify(mNotificationPanelView).setQsExpansionEnabled(true); verify(mNotificationPanelView).setQsExpansionEnabled(true); mStatusBar.animateExpandNotificationsPanel(); mStatusBar.animateExpandNotificationsPanel(); verify(mNotificationPanelView).expand(anyBoolean()); verify(mNotificationPanelView).expandWithoutQs(); mStatusBar.animateExpandSettingsPanel(null); mStatusBar.animateExpandSettingsPanel(null); verify(mNotificationPanelView).expand(anyBoolean()); verify(mNotificationPanelView).expandWithQs(); } } @Test @Test Loading