Show statusbar in expanded desktop [1/2]
Credit CM
Add dummy config for menu long press
Dispatch keys to a device specific key handler

Injects a device key handler into the input path to handle additional
keys (as found on some docks with a hardware keyboard).

Configurable via overlay settings config_deviceKeyHandlerLib and
config_deviceKeyHandlerClass.

Change-Id: I6678c89c7530fdb1d4d516ba4f1d2c9e30ce79a4

DeviceKeyHandle: The device should consume only known keys

When the device receive the key, only should consume it if the device
know about the key. Otherwise, the key must be handle by the active app.
Also make mDeviceKeyHandler private (is not useful outside this class)

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

DeviceKeyHandler : Allow handling keyevents while screen off

Some devices require the keyevents to be processed while the screen
is off, this patchset addresses that by moving the filter up in the call
hierarchy.

Change-Id: If71beecc81aa5e453dcd08aba72b7bea5c210590

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Conflicts:
	core/res/res/values/symbols.xml
Sensor: Enable the motion accelerometer for screen orientation change

The screen orientation can be detected by the motion accelerometer
instead of generic accelerometer to save power.

Change-Id: Iaeb3e5958d2ef7cc33080d7091ed8a5462695c67

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

Conflicts:
	core/res/res/values/config.xml
Support GESTURE_SENSOR input device type with GestureService

* The GESTURE_SENSOR input device type is meant to support touch sensors
  which are meant for gesture input only, very similar to a touchpad,
  but without the pointer capability.
* Define separate service to handle gestures from GESTURE_SENSOR device
  type.

Change-Id: I9b273df2a3cc141774d7f7cd81e43a90ea5b230b

Hide InputDevice.SOURCE_GESTURE_SENSOR from API

Change-Id: If009e9595fc593594b0e7764669996de137483a1

GestureInput : Allow doubletap/longpress configuration

Allows devices to specify pending intents for double tap and
long press events.

Change-Id: I7e7cc2f9f96a01d8f6232e5cf0e19832fdfd5359

Conflicts:
	Android.mk
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/SystemServer.java
HOVER: Options to exclude non-clearable and low priority notifications [1/2]

Change-Id: I0563a5a05f697202d11343451c481d8a150717d5

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/notification/Hover.java
Master switch to disable Hover [1/2]

Change-Id: I928bf5c42fb4a33109198475cc136bd86f11056d

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
HOVER: Option to disable HOVER-Button in StatusBar [1/2]

If the button is hidden, user can activate Hover in the Settings instead

Change-Id: I76e99da7a83b6a5dd35c2965b311009dfc819085
FB: Add color values for ease of TRDS theming

This adds color values that I can use for TRDS theming.  I needed values
for colors that are white when TRDS is on and black when off, and vice
versa. Google is implementing framework public value redirects in the
smali code of several Google apps I'm trying to bring TRDS compatibility
to. This will make it much easier to redirect text colors.

PS6: Remove whitespaces. Sorry 'bout that!
PS7: Remove unnecessary duplicated colors in holodark.
Change-Id: Ia3f21b6891ca59d98b79d3ca6e32f6710d9321f3

Conflicts:
	core/res/res/values/colors.xml
HOVER: Option to only show up in Fullscreen-Mode [1/2]

Change-Id: I913fce9e54fc0c79f0b3406a4173bb4b55fd6e25
Updating ActivityIntentResolver so that queryIntents doesn't return protected applications.

Change-Id: I037cddaf91b6943b8cc837c5b046cf320c4caa5f
Revert "Updating ActivityIntentResolver so that queryIntents doesn't return protected applications."

This reverts commit 4f2cd234e686448561a9e7c5b3e8d41bbc01aa91.
Themes: Get resources with an explicit theme attached.

Change-Id: If04e82a13250f520d70b58991586c8ce38f0ecb1
Don't log an error if we cannot open icon hash

The icons will end up being processed if we cannot access the hash
so let's just fail gracefully and silently.

Change-Id: I6368ee9bb47a9d52351fff22283ffac2de625b71
HOVER: Theme Engine compatibilities and some resources tweaks
Use default notification dimens, avoid setting a custom one.
A bit of cleanup too.

Notifications:
Hardcode dimensions to android defaults. Avoid themes to change them,
Ribbons feature (present on CM based roms mostly) needs that.

Thanks to +John Xionidis to help me trick this out for full CM11 made themes :)

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

Conflicts:
	packages/SystemUI/res/values/cr_dimens.xml
frameworks: Fix blacklist in floating notification launch with expanded desktop on

Change-Id: Ifa254dc78c41a1353b429f3ba7b6478979459ccf
Fix DocumentsUI FC

Change-Id: I2bfd4ea83db53ee83683a4754b49b15cc2abeaca
Slim Recents: Option to show topmost task [1/2]

Change-Id: Ib39d9b87b0fd30b4d34d4292af39e891038f337a
Slim Recents: Always show topmost task collapsed

PS2: Also restore expanded state of topmost task when on homescreen
PS3: Fix code style

Change-Id: I64956410fb389d8e880979a84b51321d8b372217