Camera2: implement exposure compensation settings in video mode

Change-Id: I83a2675e109dc7924cdd9240b26051ac218f532a
Camera: Add Burst mode

Change-Id: I867e26a359ae11b82637d9d239a49679b7e0eb76
Camera: Add indicator icon for burst mode

* Patchset places burst mode indicator next to auto-scene detect
  if active.

Change-Id: Iba3f89490221b16dcce2531962f84752c00b1eef
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
Camera2: add option to prevend autofocus cancel if preview stopped

There are camera HALs which cannot handle the autofocus cancel call if the preview
stopped in startPreview(). Add an option for this HAL's to do not cancel autofocus in this cases.

Change-Id: I0767cc7279405d17afc0b00120cb43e5bb309220
Camera2: Update DE translation

Change-Id: If87d6062e4f3d77010378964606ef12a949d894b
Camera2: Added pause button in Camcorder

- Added pause button in camcorder app.so that user pause
  recording and resume later which results in a single
  recorded clip.
CRs-Fixed: 587051

Change-Id: I2a7d8af7fcea74fe8af62c44119c3c1fa0c13e85
Camera2: Calculate UI aspect ratio based on preview size

- This reverts change If4047860.

- Simply using preview size instead of picture size
  at all to calculate the UI aspect ratio,
  avoiding tricky overwriting aspect ratio.

- Will fix issues when surface texture transform
  is calculated based sometimes on preview size
  ratio and sometimes on picture size ratio.

CRs-Fixed: 601495
Change-Id: I8e054c9eaafc9fb54dac2bff2c67e39f0a1fe64c
Camera2: Crowdin fixes

Change-Id: I7ad3baeb8645aaba75643886b23ff5a780bbd867
Camera2: EL translations

Change-Id: I21f576ed7b40f15ea83c2e6a2bf05224e9ff85b6
Camera2: Correct copyright notice

We modified this file, so we can add our copyright
here so it's retained in translation xml files

Change-Id: I08ca32eb25bb09c610379801a513bf1679891eb4
Camera: Enable video stabilization setting

Can be used on most sony devices, might need conversion of the
parameters in the device specific camera wrapper.

Change-Id: I19ecadac8a0598fa6a89bd2f251e0d283c7f9b38
Camera2: Do not issue autofocus cancel if preview stopped

942890667aa08cc3c1305d7ba64c1340df1219db introduced the option to not
issue autofocus cancel if the preview was stopped. Extend it to the case
where the preview is stopped because the camera was called as an intent
(ie from MMS client)

Change-Id: I30032d8375665ecf6be471bf480c1f118d25423b