SystemUI: Use EdgeGesture service to trigger Pie

EdgeGesture service triggers Pie when detecting gestures on
the WHOLE edge, not just the center.

Patch Set 2: Better trigger values

Change-Id: Id7d9d7f6f5a37ca3696cdddf0da78c88c067970e
SystemUI: Position Pie at gesture's triggered position

As the EdgeGesture service is triggered at the whole screen
edge, place Pie at the gesture's triggered position, instead
of always positioning it at the center of the edge.

This might be controversial and a matter of taste, but in
particular on tablets it's sometimes hard to hit the exact
center of the edge and therefore gestures often fail. Could
also imagine enabling this feature on tablets only. Needs
some discussion...

Change-Id: Ife28ac434667148583b34bcccd11262c111b5a67
SystemUI: Stick Pie to edge on phones

Apply the same UX of AOSP's navbar on phones to Pie
controls. When rotating the phone, Pie now sticks to the
same physical screen edge, to which it was pinned before. As
most people start holding their phone with two hands in
landscape mode, keeping Pie at the right or left edge might
be more comfortable to reach by thumbs. The behavior on
tablets should not be affected in any way by this change.

Changes:

PieControlPanel stores only the absolute gravity (the
rotation independent position in portrait mode) of Pie.
PieMenu and PieController query the gravity from Panel.
Query methods (getOrientation(), getDegree(),
isGravityPossible()) only return the relative gravity (the
position depending on current rotation). Therfore, only the
PieControlPanel is aware of, whether and how gravity is
converted.

The amount of snap points is reduced in landscape mode,
because Pie cannot be pinned to the top edge of the screen.

Change-Id: I263f16e1c59e134f374b9a3a007ecdce2d54dc46
SystemUI: Fixed stick Pie to edge
SystemUI: Force Pie centered on small display devices
PhoneWindowManager: EdgeGestureService: Bring compatibility with PIE service:

Remove all edges flags but TOP (for statusbar) regards to system edge gestures.
Pie covers the other edges with its service.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
PIE: EdgeGestureService: Add flags LONG_LIVING | UNRESTRICTED

Following PhoneWindowManager enforcing.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
PhoneWindowManager: Fix a couple of issues and cleanup recent PIE rewamp

SystemGestures is unregistered due to default new EdgeGestureService,
still for safety keep a boolean check on requestTransientBars().
Refresh height live.

Change-Id: Iae9c6079c21e65d01eea330fa17f3861a4c2e100
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>