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
Camera2: Smart scene icons w. original artwork

These are functional replacements for the smart scene indicators
created from scratch for CM, and fully owned by the project.

I'm sure the size, border weight may need some adjustment, but
they're currently identical to the burst mode indicators in:
http://review.cyanogenmod.org/#/c/55716/

Change-Id: Ia9e18aa2cd1f78b8ef3674e71cb151e522f2e139
Camera2: Fix burst mode, auto scene detect layout

* Prevent icons from stacking ontop of each other

Change-Id: I4a1c8ae360c7272bfa2833aaf64410a2778a7ff7
camera: Add metadata-based ASD

 * New cameras use the metadata callback to report the
   detected scene mode. Add support for this.
 * The asdModes array must be set for this to work, which
   should contain the ordered list of possible scenes,
   corresponding to the camera_asd_values array.

Change-Id: I07279ae30a4cbedef02bec702252eb7e2abacd4a
camera: Histogram, ZSL burst mode, HDR-on-ZSL

 * Optional features available on newer sensors
 * Histogram needs to be made pretty

Change-Id: Ic46c1dfcc1de32acc22928a4431d3601b03ef513
Camera: video stabilization setting - don't default enable

This partially reverts:
https://github.com/CyanogenMod/android_packages_apps_Camera2/commit/8dc898aec74fe96b9411872eef8748727166a021

Causing camcorder crash on HLTE and probably other devices.

Much safer for devices wishing this enabled by default to set this
in an overlay.

Change-Id: Iaae388023efe3773ae94f01c4774359a1157b8a2
Camera: remove fine/normal/superfine jpegquality and use always int

We use now a set of int values the user can exactly assign. Showing as
well the normal fine superfine as choice is just a duplicate. As well
we can get rid of the weird converts of the mixed values.

To take care that the user does not get into problems we updated the db
version and we make a convertion.

Change-Id: I2615666bc1c929c0c045840fad1ece55fb0640af
CameraModule: bandaid for jpeg quality NumberFormatException

I'm not sure why the CameraSettings DB upgrade didn't prevent this
for my device, but may as well catch the exception in case I'm not
the only one

Change-Id: Icad2292293a10b8c881d570992e4f535c08705fe
Camera: Fix removal of histogram setting

Histogram is disabled by default in config.xml, so the code to filter unsupported modes is never executed
Remove histogram option completely when it's disabled in config.xml

Change-Id: Id47da14d7d3d268e70727d25ed8f4d431b80f6f1
Camera: Fix JPEG quality DB update

Change-Id: I4e43152d8a4a8ed689de086757bcabc17749f9c8
Camera: Fix the removal of histogram setting fix

Regroup conditionals to fix the NPE.

Change-Id: If87e5287b75a8f43c1a34f234aa0a8c405f43891
Camera2: Add 50MP, 37.5MP resolution entry

* Support for SuperZoom resolutions

Change-Id: I59dc102bc991c8f82b4827c9fa39da44d98cb8e9
Camera2: Remove now unused strings

Change-Id: I65e4384cdcc3778508f4e9a7815431fd17945e7a
Workaround for removed AOSP strings

Commit aed65253fb207b952a29e416a02d5b9a0c492416 from CAF removed 2 AOSP strings.
This results in aapt warnings and TranslationTools thinks these strings are unused,
so we would have to remove them from all languages.

Move them from cm_extra back to original location so we don't have to remove
them from all languages to overcome the above issues

Also partially revert http://review.cyanogenmod.org/61312 to prevent future merge conflicts.

Change-Id: I7aec7699f73fd7cbe3fef053f2744ea3fdef3fa8
Camera2: EL translations

Change-Id: I21f576ed7b40f15ea83c2e6a2bf05224e9ff85b6
Camera: EL translations

Change-Id: I214894d8ee90dd9ede1e8999a73f36c913dd49f2
Camera2: NL translation

ps1: https://www.dropbox.com/s/wl1j0jb5gnrjyuy/Screenshot_2014-03-17-12-13-34.png
ps2/3: JPEG quality strings
ps5: Add 50MP, 37.5MP resolution entry

Change-Id: Id903977d04769b39f5c6d29846f8197ad09a7deb
Camera2: IT translations

Change-Id: I7424722c81e92998f73380887b9dbc32d00324f6
Camera2: ES translations

 - Fixed JPEG quality

PS4: Rebase

 - SuperZoom

Change-Id: I8acd4299dbf50295e19b557d255b45a8b0463dd7