DeviceKeyHandler: Increase handler priority

Allow DeviceKeyHandler to have higher priority when handling user keystrokes.

Patchset 2: Update commit message
Patchset 3: Rebased
Patchset 4: Fixed needed ref
Patchset 5: Rebased

Needed by http://review.cyanogenmod.org/#/c/35064

Change-Id: I60871052aaae0af7d864113f00dbdf9ba5200f2e
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Allow applications to show the navigation bar in expanded desktop mode.

This is used by the settings app to show the navigation bar when editing
it.

Change-Id: Idc8fa5e49f31175dea603d7f1a1ef94ffab7249d

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Support double-tap home to go to recents.

Add config resources to enable the following behavior for
certain devices:

* press home - go home
* long-press home - launch assist intent
* double-tap home - open recents

Bug: 8891502
Change-Id: I4564d9e4d127f782ed5bd8eb613ef8f2255176cc
(cherry picked from commit b7805698035622a633b2d76f7ca60169aaa9f0ca)
Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Fix regression in long-press home behavior on tablets.

Some config.xml resources have values that vary based on the
configuration.  A previous change caused initialization to
occur at a time when the configuration is was not yet available.
This change fixes the problem.

Bug: 8891502
Change-Id: Ia768dc2308cc6ae5f11812c6bce6a6e116cfd759