Camera: Powerkey shutter (2/2)

Ported from cm-10.1

Including cm-10.1 camera commit:
aa4ae80a41fbab763891c5ef6d67a9e5b4bb981b Don't mess around with pref local ID for power shutter initialization.

Includes http://review.cyanogenmod.org/56986
PS2: Make Camera2 a privileged app
PS5: Sign with platform certificate instead of making it a privileged app.
PS6: Add write permission to PREVENT_POWER_KEY
PS7: Move PREVENT_POWER_KEY permission to CameraActivity
PS8: Revert to PS5

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
Change-Id: I0992baa558eefd306d00fbece59cb5c512d9448b
Camera: Cleanup hardware key handling

* Fix power shutter behaviour in camcorder mode
* Disable volume change while in panorama mode, volume buttons should only
handle camera operations while in the camera
* Add camera/power/volume key shutter handling in panorama mode

On devices with a hardware camera key:
* Disable power & volume shutter features
* Volume buttons control the zoom

On devices without a hardware camera key:
* When power shutter is disabled, volume buttons control the shutter (like AOSP)
* When power shutter is enabled, volume buttons control the zoom

Change-Id: I141946d5b6f5aec8b1e9a9f99270d30295596079
Camera: Handle keys only while in app

Thanks to Lars Greiss (SlimRoms)

Change-Id: I63f757d25260fba4683f494f8b4daf178a2b4e13
Camera: Fix saturation, contrast, sharpness parameters

* Old-style QCOM HALs use <setting>-max, new style HALs use
  max-<setting> for these parameters.

Change-Id: I3b0dbd04f072cb69d09c44b5b3af1097560205b3
Camera2: RU translation

PS1: Restored strings that are marked as translatable again,
     translated some more error messages.
PS2: Translated Storage configuration option.

Change-Id: I93c897ada51ea60bd5a2f52799709b4269d8287b
Camera2: CA translations

Change to Transifex

Change-Id: I94e5dc1e9943643c8699697c86b97d0b2e844118
Signed-off-by: arnau <arnaullv@gmail.com>
Camera2: Modify AOSP EL translations

Modify the AOSP image size translations like I did in all previous android
versions, the current greek translation does not sound right and it's not used
in any other products (cameras, etc.) in it's current form.

PS2: Trigger Cid

Change-Id: I675fc72eb11fdb267b01faebeea15f9aced5f4ec
Camera2: LT translations

Additional strings have been translated, improved translations, minor fixes

Change-Id: I87922e476cab820ca43513ce6f728d64a8581392
Camera2: NL translation

Change-Id: Ia7791ca6dd8ce33c7e356a543cb8f0c137edd36a
Camera2: PT-BR Translations

Change-Id: I2e9b2904f2003bd58371cc7a5182f374b8d51f54
Camera2: EL translations

Change-Id: If8e7b53ba3bbe5a50b82066272fd654f0d027a69
Camera2: DA translation

Patch 4: Unneeded string removed

Change-Id: I09ae6941b7a257e3f21fc329032cd5c4617fe43d
Camera2: NL translation

Change-Id: If3f9d82c43291872b8fbfd3f1ee0d9fd511110d4
Camera2: ES translations

- Transifex export

Change-Id: Ia9b872d2453146ac748514c55e1c28d77af9e1d6
Camera2: Update copyright year

Change-Id: Iea21b403f5450fdc838d01486963b52fefed045d
Camera2: Update resources

Change-Id: I5443dce8cafbb64f5d655aa08a34725413765581
Camera2: Remove aapt warnings

Change-Id: I4f02d2a8bd1a230326fca70c3deafb31987a8b84
Camera2: remove double JPEG menu

Currently, JPEG settings can be found in two locations

It just adds clutter, so let's remove it from "Extra Settings"
and leave it in a more obvious place

Change-Id: I2a1ad421821b0175bcb8d4a0854bf9e7f8c9a685
Make Priviliged App

Trying to enable power shutter triggers a security exception (inconsistenly).

This seems to fix it.

Change-Id: I42335c3d00615736fee50c30abf407e1037759e4