Intercept Home button press to wake device

Change-Id: I97754a57b5e066506525c04d0394625fc768f8bf
Merge "Intercept Home button press to wake device" into lp5.0
Forward Port: Swap volume buttons when the screen is rotated by 90 or 180 degrees

Change to default behaviour not configurable due that it is now
more natural

Change-Id: I323b647066e8c73fac60067141d1add7b2f9962d
AudioManager: make swap volume buttons RTL aware

The layout of the volume panel is already RTL aware...the problem is
if it is in landscape and the buttons are swapped they go into opposite
direction then the volume panel.

So this swap should only happen on LTR languages and RTL should be left
like it is.

So both LTR and RTL have it logical.

Change-Id: Ie5fbe3085b40ad35814f53ed19736d7800dad78e
Return: Smart Pulldown [1/2]

Adds the ability to directly open the QS panel when there are
no notifications present in the notification panel.
This commit combines the enhancement by HardCorePawn for detectin
notification types for the same.

Credits: kufikugel, HardCorePawn

PS 2-4 : Cleanup

Adapted to LP

Added Jubakubas commit

SystemUI: Smart Pull-Down - Any Notification (1/2)

PS
- fixed logic to go inline with all mode in settings - should be fixed on kk as well

Change-Id: I3c9b048f2616d2b8950930cc5bfac27c2364e826
SystemUI: make clock and time clickable in statusbar

Clicking clock opens alarms, clicking the date will open the calendar.

Change-Id: I622527c1f144a8867aa543348b70a4fefe3f6403
Signed-off-by: Roman Birg <roman@cyngn.com>
ProximityWake : Add support for checking proximity when waking device

Change-Id: Ia5ff446d88435773acccc7467e66009000dc20cb

Be sure to shutdown the proximity sensor after display wake

This fixes:
http://review.cyanogenmod.org/#/c/66657/

Change-Id: I1768f13cb48c3e056d0e137642690fc3d650c4ab

PowerManager : Make proximity check opt-in

Change-Id: I7cf64a82530da2e655018e43683ba7a5584d54f8

Framework : Fix proximity wakeup reference

Change-Id: Ia40ca6fbf6e37fbb3996f2384f725c30b88c2131
SystemUI: Reduce activation area a bit of quick pulldown

Change-Id: I06b3a50982930491c6fd4e70ceda3b1ceee28f87
Merge remote-tracking branch 'slim/lp5.0' into lp50s-test

Conflicts:
	core/res/res/values/config.xml