JWR changes

Change-Id: I503ddfe0077806674ed6ddf6191c7a92fdc53eb7
JWR bits and pieces

Change-Id: I233f574839b523e95e1509c2cab68a829bf76410
Merge branch 'jb43' of https://github.com/ParanoidAndroid/android_frameworks_base into jb43-legacy
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

Some how these changes were lost during 4.3 merge. Add missing pieces back.
Fix mismerge of implement 1% battery on select devices

Change-Id: I2dcafba2c39f50cf435b90ca261b325c10fd5b6b
Merge remote-tracking branch 'frameworksPA/jb43-legacy' into jb43-legacy