Revert "Fix divisions by zero on boot."

This reverts commit 7b43d33815915fa66c8942a1a2cf67aa248db81d.
Revert "FlingTracker can divide by zero and hang StatusBar in an infinite loop"

This reverts commit a312f3d70153eaa4421d5d7dff327dbb637266d5.
Revert "Fix pie controls being disabled by launcher gestures."

This reverts commit 8c15b6896211d569c16d3bcaa0138d478b1ae89d.
Revert "Add pie control optimizations for Phone UI."

This reverts commit 0d23cdbaadcb721bef21be98bfe539593c494812.
Revert "Pie controls."

This reverts commit 7750afbcc9fc353f548ce3eaaf95c56500d506e2.
Revert "Added support for multiple navigation key bars"

This reverts commit 37ac028b3bb3b2ddd239e8ea5be8cb25ed7173a7.
Fix layout of MultiWaveView and GlowPadView.

If the calculated size of the rings is much smaller than the measured
size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad
appeared shifted to the right.
This happened due to the insets being calculated as difference of
available and needed size, and later on being added to the available
size. Example numbers (Nexus 4 with density forced to 160):
- computed size in onMeasure: 768x505
- scaled size in onMeasure: 505x505
- thus, insets are calculated as 131/0
- in onLayout, placementWidth (364) and max target width (108) are much
  smaller than width (768)
- thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to
  the right

Fix that by not using width in the calculation, as the inset size
already takes it into consideration.
Merge branch 'jb-ras-mr1.1' of github.com:rascarlo/android_frameworks_base into jb-ras-mr1.1
Merge branch 'jb-ras-mr1.1' of github.com:rascarlo/android_frameworks_base into jb-ras-mr1.1
NotificationManagerService: fix typo on led off time variable
Finally fix incorrect flipping to quick settings.

Commit f6685c5ca84a42f5a47bf40827d6229dd998dee4 fixed this for the
two-finger pulldown. It reverted commit
c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f in the process, which was
incorrect, but fixed another condition of this problem occuring
nevertheless. The actual problem the latter fix tried to fix was that
the flip decision was dependant on the timing of the view layout:
getMeasuredHeight() returned whatever was set in the last layout, which
might not have happened when hiding the view, so at the time of the next
ACTION_DOWN getMeasuredHeight() returned the height from the time the
panel was last visible.
Fix that problem by using the height scheduled for the next layout, so
we're always up-to-date.

Change-Id: Ib97f34f9aa0a6f28d48b4ec3e16c82a814cda0d0
Fix incorrect fragment animation used for hiding fragments

Mirror of support lib patch
https://android-review.googlesource.com/#/c/60032/ into
frameworks/base.

Change-Id: I8d1cb2e217721336674b8e3e2ef8722a8d9baefd
change "next" to "done" in minute IME option under 24-hour format

We don't need "next" button under 24-hour format any more.
So, we changed from "next" button to "done" in IME option
when setting minute under 24-hour format

Change-Id: Ic9b1673248183060ba7279b63648a85dc39ca3b9