Tentacles: add needed resources
Hardware key custom rebinding (1/2)

Framework changes to allow rebinding of the actions performed on the following
key press events: Home long-press, menu press, menu long-press, search press,
search long-press, app-switch press and app-switch long-press.

The available actions are: Nothing, open/close menu, recent apps switcher,
search assistant, voice search and in-app search.

Patch Set 1: Initial port from ICS [done by Konstantin Koslowski]
Patch Set 2: Added 'assist' (search) key customisation
             Option for ICS-style in-app search, in addition to jellybean-style
             search assistant.
             Fixed double haptic feedback on virtual key press.
Patch Set 3: Checkbox to enable/disable all custom bindings.
             Home long-press defaults to no action on devices with
             an app-switch key.
Patch Set 4: The recent apps list will be preloaded on the initial down press
             of whichever key to which it is bound.
Patch Set 5: Fixed menu virtual key press sometimes performing the custom
             action bound to the menu key instead of just opening or closing
             the menu as it should.

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

Change-Id: I72c0d220a09d79230bfa299e0521ed693e5c25f1

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

Conflicts:
	core/java/android/provider/Settings.java
Hardkeys: Remove duplicates from an existing commit for Hardkeys

Conflicts:
	core/java/android/provider/Settings.java
Add PowerManager integration for button and keyboard backlight.

Allows setting button and keyboard backlight brightness as well as
button timeout.

Change-Id: I550cccafc0a8f90d6347de9261adb26b75955cc4

Conflicts:
	core/java/android/os/PowerManager.java
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/PowerManagerService.java
Add PowerManager integration for button and keyboard backlight.

Allows setting button and keyboard backlight brightness as well as
button timeout.

Change-Id: I550cccafc0a8f90d6347de9261adb26b75955cc4

Conflicts:
	core/java/android/os/PowerManager.java
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/PowerManagerService.java
Swap volume buttons when the screen is rotated (1/2)

See: http://review.cyanogenmod.org/#/c/14530/

Patch Set 8: Invert the orientation interpretations on tablets

Change-Id: I201febc2827e6fbd347cb0e3f8d3347ad1bc487b

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/provider/Settings.java
	media/java/android/media/AudioManager.java
Camera button support (1/2)

Add new bitmask for Camera button and "hasCamera" boolean.
For those devices that have dedicated Camera key
(like Sony ZL/ZR/Z1/...)
Change-Id: I1a6681664f9f3fd3f30221ba10b082cb5f8cafca

Camera button support: make it actually work
Previous commits were merged so fast that I didn't even
added the code that actually DOES launch the camera.
Let me fix that.
Change-Id: I4fcb3c46e5fd50e273dcf19fd3eb35a3f9d979e0

Camera button support: useful features & bugfixes (1/2)
Screw the remapping, let's make something more useful!
Replaced the code to actually launch Camera app, not just fire the shutter.
I won't remove it: it's cool to have an option to double-click Home for Camera.
Added:
  * Camera wake (with button half-press) and unlock options
  * "Peek": releasing the half-pressed Camera button will
    turn the screen back off
  * Camera playback control

Change-Id: Id49e09e20d81cd80d9800ab8ab0f200d44485a09

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/config.xml
	core/res/res/values/cr_symbols.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Note: In addition to this commit I had to add several dependencies related to Hardkey ports to squash build errors. This is not the right way to do things but since a cherry-pick may contain fragments of other commits it was the only way I was finally able to get a completed build.
Revert "Camera button support (1/2)"

This reverts commit 7de1f1c19dbeed2822d12357504ff11f04893317.
Revert "Swap volume buttons when the screen is rotated (1/2)"

This reverts commit 2d45631f75bc51d16671aac4f594db354838bc11.
Revert "Enable custom actions for double-tap home (1/2)"

This reverts commit 029a1632e70829d6c0208a5762090c48b2cad2da.
Revert "Add PowerManager integration for button and keyboard backlight."

This reverts commit ad62fa02b4d2c9a3a3c6fbf2b55ed4557127a5e3.
Add Tentacles quicksettings tile(1/2)

Thanks to CarbonDev for their code.
[1/2] Base: Lockscreen Notification

Change-Id: I342b9fa6266c4c64f04121a8a2938de6532082b4

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
	packages/SystemUI/res/values/strings.xml
Remove duplicate string for Tentacles tile
Tentacle Tile: Add missed code
Revert "Base: [1/3] Customizable lockscreen & navring targets"

This reverts commit 2cd10cb3ec3cefc31bbbf74fdb5a89c52cd6cf4d.

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
Revert "Navigation bar customization(1/3)"

This reverts commit c02282df9a5721705c03218c880c9267b09ddaad.

Conflicts:
	core/java/android/provider/Settings.java
Revert "Navbar enabled but defaulted to off"

This reverts commit 9c600886b5bc963829f393bd12153c969007388f.
Revert "Navigation bar custom height"

This reverts commit 743033ded9218f790036f56662f477594275f5d5.

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
fb: add DeviceUtils helper class

for common calls we need later on several places

initial push with only display type support

Change-Id: Ic8856512d8a7540eda3e4ba8d28f3eec3e6961d0