Allow granting permissions based on signature in <allow-permission/>

This patch allows us to either specify a sharedUserId or a package
signature to use when granting the specific permission.

Change-Id: I8aed78d40316e0e94ac1bfefc7c4a3016a2a9a6b
Merge "Allow granting permissions based on signature in <allow-permission/>" into kitkat
Keyguard: do not play sounds while phone call is active

Change-Id: I834ad52bf7406b92af0840267960bbd959eb8709
Signed-off-by: Roman Birg <roman@cyngn.com>
Extend SwipeHelper to support vertical gestures

* Un-hardcode CONSTRAIN_SWIPE and FADE_OUT_DURING_SWIPE, define
  through proper callback, per-layout
* Up (GESTURE_NEGATIVE) and down (GESTURE_POSITIVE), mostly needed
  by new Hover hide /w swipe up gesture

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I68c42a8ccabca73a1b241ba7cf264db9c912fccd
HOVER: Implement hide only on swipe up

* Add an Y axis HideHelper, just extend current X axis SwipeHelper and
  change interested methods behaviors
* Some clean up and indenting

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I42a260ea993c614b0b9b4558a95dd44dd517c4f1
Merge remote-tracking branch 'AOSPA/kitkat' into kitkat
Merge remote-tracking branch 'aospa-legacy/kitkat' into kitkat

Conflicts:
	packages/SystemUI/src/com/android/systemui/SwipeHelper.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java
	packages/SystemUI/src/com/android/systemui/statusbar/notification/HoverLayout.java
	packages/SystemUI/src/com/android/systemui/statusbar/notification/PeekLayout.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NotificationRowLayout.java

Change-Id: I4912205fa9289cd652477279c4528df26085d9fc
Framework: Port conflicts fixes from N5XPA

Change-Id: I64e520b5e110e137801a52b828a38f6262b22e70
Revert "Framework: Use Heads up direction bool to define when dismiss or hide HOVER notifications"

This reverts commit 81e4391c6bcdcbe41a9ff238ef66d00be17ae611.