Frameworks: Adds ability to answer call with hardware HOME button (1/2)

Port of CM commit: 8c5ef198bd4031d11691daef34d9f5f2b1354da3
Full Credit to CM team

Change-Id: I5997ef290173d63de4996e0be861c3efa164ccfe

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
More options added to hardware key rebinding (1/2)

In the same vein as the available Navbar actions, this adds the following new hardware key rebind options:
 * Last app: Switches to the last app
 * Power button: Turns off the screen
 * Custom app: Launches an application/activity of your choice

Change-Id: I1ca98b1c615e4336c644d0247b4277b9421a96ff

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Fix issue with hardware keys KEY ACTION comparisons.

Menu unlock now works properly.

Patchset 2: Switched detection of onscreen keyboard input to KeyCharacterMap.VIRTUAL_KEYBOARD

Change-Id: I092258fc20789a12123e319ed2dca25c55bb9f0c

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Framework: Add Home/Back buttons available for rebinding (1/2)

Finally, we can disable or rebind all hardware buttons!
Also adds Expanded desktop toggle and Notification shade toggle

Change-Id: I0ca51c25e8434696a514fd1ef1e1e33543bf066a

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
back to kill (DaneshM)

Change-Id: I5f32514f58d899d7b5abfebf900808093e681d15
Fix for navbar back/menu firing for longpress actions

Change-Id: I9661b8faa001e69b3a44c91d53f0e858031d08dd
Fix Power Shutter

Change-Id: Ifa2bc6e38821b1fd14a6dba99797c469b4b8698a
android.policy: Fix launching home when waking the device with the home button again

Was removed in b055725d0b1df2f23ecfa95bff940aa8b57f97df

Change-Id: I19b5db8e64d7e547f4013ab8df7ff879d1a51167

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
fix toggle of expanded state

Change-Id: I0653b54fad036671f293f0ba8a1d249416f87224
default values for mdpi

Change-Id: I13e9c08e98197902cb3166167d3c9b394b9f70b1