PhoneWindowManager: Don't handle navigation bar visibility when switching to PIE

Right now when restoring full height after disabling immersive if pie mode is
on, navbar isn't showed until panel collapsing cause it should have been showed
(the view even with height zero) called by top swipe gesture that calls requestTransientBars().
Don't touch the API, cleanup old code traces and changes cause in any case navbar has height = 0
and its bottom/right gesture is disabled.

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

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
SystemUI: prevent NPE on clear recents double press

Pressing Clear all button twice fast or while the list
is clearing but not yet fully cleared causes sysui to crash due to
mRecentTaskDescriptions being null: (http://pastebin.com/2gRFvf8k)

Change-Id: I23d10edfd336041739fe80352ee01987e671dbd7

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
PIE: On-The-Spot: Fix abnormal behavior when chosing ASK_LATER

Right now when chosing ask later it does not activate default immersive for that immersion.
We should call switchImmersiveGlobal() no matter what we chose on on-the-spot dialog,
also if immersive mode is disabled and is going to be activated.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
NotificationHelper: We shouldn't use logical here, one case is enough no matter the order

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
PIE: On-The-Spot: Apply immersive not only at first ASK_LATER choice, always

PIE's on the spot dialog is handled differently with pie, we have to reset to let observer capture
a second etc ask later choice.

Continue this https://gerrit.paranoidandroid.co/#/c/4347/

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
PIE: Revert those null checks, were messing up animation somehow

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
EdgeGestureService: Tweaked values for trigger mask closer to stock ones

Applies to both default navbar and pie immersion.
PIE's diff is that benefits from a custom sensitivity param (MAX).

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
removed some immersiveMode code