camera: Add support for sending raw commands

 * Certain camera drivers need magic commands to select special modes
   such as ZSL or HDR. Add support for sending raw commands from
   applications.

Change-Id: I512a765c7a67ffd2877e465cf6493ffc2b3b54ac
power: Add panel auto-brightness configuration

 * Some panel hardware requires that we twiddle some knobs in sysfs to
   enable proper display calibration (gamma, etc) when auto-brightness
   is enabled. Add a configuration value to handle this.

Change-Id: I3c793c3520fc6f9a18d5a3abf1fe0df803c5e580

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
FW: Ribbons - Long swipe App window.

Window similar to recents with all the users apps.
Options to control app color, background color, and
background opacity.

On touch listeners for targets and close button
Make dividers colorize with text.

Fixed animations make columns spacing work automagiclly

Change-Id: I6147dee1e97436f252a7dae349d1eff1d6e5dbf9

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Hardware Key Custom Rebinding (1/2)

Change-Id: I28e4359a0863da28b210fd9680848080050fb106
Add ability to answer call with hardware HOME button (1/2)

(preparation for winter time)
------

<New edits>:
PS2: Fix port forward compatibility issues and fix up double if statement used in 4.1
PS3: Fix brace derp
Change-Id: I88ff168e3bb1accab9a531267812333c0ae68059
bugfix: allow recent apps dialog to work with menu long-press

With the original patch, using the recent app dialog from a
menu button long-press would cause the dialog to be preloaded
and then dismissed on key-up. Check long-press behavior settings
as well as short-press to prevent the dismissal.

Change-Id: Idf1d27aa725547e0ddc44905e27da6c1b4540fab
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
Keyboard light: Fix the physical keyboard not light when it's visiable.

Change-Id: I595afd3cb6b422a17ae0f6ec20aa51979db13810

Conflicts:
	services/java/com/android/server/power/PowerManagerService.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/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Fix for navbar back/menu firing for longpress actions

Change-Id: I9661b8faa001e69b3a44c91d53f0e858031d08dd
Fix Pie Toggle.

So let's add-in syshelpers so we can restart SystemUI for Pie Toggle.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/PieToggle.java

Change-Id: I4e4b29992dbfec2d0c85a47809d236c01b6c38c8

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/PieToggle.java
Profile Toggle: Update chosen profile

Once a profile has been changed, the proper state was not being updated by the toggle. It's now fixed by using a broadcast instead.
Expanded Desktop : bring inline with Slim (1/2)

Change-Id: Ic21b68516c3ecf9e26d6347b00655b9a0386b57c
Statusbar : Cleanup and Fix

Change-Id: I0cb8b4572e0d39bcbab43cf7fa765c6865e67886
why...

Change-Id: I77a9eb14e7a8f15f1b03ed2d4c0cb5084bd4fc9f
Toggles: resize bitmap in UserToggle

This will resize the bitmap of the user to a reasonable size.

Before the bitmap would use almost 1mb in memory on my phone and
after the change it is now at 250kb.

Change-Id: I6b06cc97b1c94edeb307777a9479e3abc119777e
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
SystemUI: More memory leak fixes

PS2: fix Clock FC

Change-Id: I0929786c33475bb471db90f757321502a19c8702
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
Framework: Fix recents animation bug for all

Sometimes doing some other stuff bring ideas up to solve
problems. Google uses a dirty preload animation hack to
animate recents right....we can do the same just more
generalized.....due that all places (hw keys, navbar, SlimPie
and navring) are calling toggleRecents() I implemented the fix
now there to solve it in general. Due of that this commit
reverts commit 20a905c96c6a897226ad2e5a47c9c6b39a0ef040.
as well

cheers

Change-Id: I48aaa85881d8b177c7223a746bd39925f6826066

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/ExtensibleKeyButtonView.java

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