Smoothly animate notification pane if opened via keyboard.

Animation would be slow and then 'jump' to the finished state if opened
with Meta-n. This was caused by the panel view calculating the height of
the notification shade based on a pre-expansion value.

The fix uses instantExpand instead of expand (which we no longer need);
the former sets up proper state such that the height of the window is
properly determined prior to the fling height being determined. We just
add an animate option to instantExpand so we can reliably animate open
from a closed starting state.

Bug: 22359801

Change-Id: I8a3a96041a65299ca985010d43bd4aa12827c8fa
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index 094c82e..6db60ec 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -518,7 +518,7 @@
         if (mQsExpansionEnabled) {
             mQsExpandImmediate = true;
         }
-        expand();
+        expand(true /* animate */);
     }
 
     @Override
@@ -1784,8 +1784,8 @@
     }
 
     @Override
-    public void instantExpand() {
-        super.instantExpand();
+    public void expand(boolean animate) {
+        super.expand(animate);
         setListening(true);
     }