Stylus gestures features (1/2)

Forward-port of https://github.com/CyanogenMod/android_frameworks_base/commit/9f3ee9f7c0877fcfbe90a7c176481f949194fb75
to JB

Change-Id: I9c8a03dce226d2463659846ff3a12435efdf5c1d

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/config.xml
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
Fix battery icon color

Change-Id: I1fd797806b422a530ef25d8685c80bc0875fffd1
Revert "Fix padding due to reverted commit"

This reverts commit 393a6b5a22844a298f323fe1fb49fcaf8c1144bd.
Revert "Revert "Fixes for device specific dock support""

This reverts commit fb8c508aee9be7692f4b9214cac9c062fc01e4ee.

Conflicts:

	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	packages/SystemUI/res/values/dimens.xml

Change-Id: I3b5044f79fedb9d145787837c71b309795267ed4
Merge branch 'jellybean-legacy' of https://github.com/ParanoidAndroid/android_frameworks_base into jellybean-legacy

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

Change-Id: Ie9c63777e89f5415cfbaeef3c4b19568b7ecc54e