camera: Add support for ZSL on new Samsung devices

 * The camera driver on new Samsung devices requires that we send a
   magic command to the hardware in order to get ZSL behavior with
   continuous preview. On previous devices, this worked as long as the
   "cam_mode" parameter was zero (instead of null) and "camera-mode" is
   set to 1. On JF, we need to do all of these things.
 * The command we need to send is 1508, but I do not know what this
   value actually corresponds to. It was discovered by reverse
   engineering.

Change-Id: I6bccc9cd228784045eef81719892121749af4fa5
Camera: Fix for stretched preview in front camera

Stretched preview is observed due to front camera's mount angle.
This patch resizes preview frame using aspect ratios so preview is not
stretched when using the front camera in still and camcorder mode.

Change-Id: I70b5534dd3020bdf46afdfdcefc39d89a2b2e450
CRs-fixed: 435942

Camera: Fixes stretched preview in camera application

- The preview screen nail is getting set with the
  preview frame layout size, which depending on the
  preview resolution might lead to aspect ratio
  mismatches.

Change-Id: Ifdc436feffefa4ad95d3915f48724b0fc3684d9d

Camera: Updates preview screen nail correctly

- Querying the width and height of the screen nail
  currently will return the render width and height
  which in turn depend on the preview frame layout
  size. In cases where both sizes match the screen
  nail will not get updated properly. Instead of
  using the render width and height this change
  uses the actual size of the nail itself.
  This way changes to the resolutions are
  recognized properly and the nail is updated.
- This patch also removes 'updateCameraScreenNailSize()'
  and extends the functionality of 'startPreview()'
  in order to update the screen nail for the cases
  where the preview and the nail size don't match.

Change-Id: Ib99f47f4094e01724725098847f42197b4442c03
Camera: NL translation

-translation for Merge voice and timer options into a single 'no-hands shutter' option

Change-Id: Ied06a6a03344f097936c20720648e1c45bbfec7e
Fix preview state machine after it's restarted due to ratio changes

The camera state was being set to PREVIEW_STOPPED by the restart,
and the lack of a completion message was leaving it in that state,
breaking other checks down the line (changing scene/balance modes,
for instance, failed miserably)

Change-Id: Ia5bc6b1aab5ee85582c4c4c3d09646892e669454
camera: Fix camera storage location

Patch Set #1 - Updated 'ActivityBase.java' to use 'startStateNow', this updates the gallery storage location.
Patch Set #2 - Removed random character (dont know how that got there...)
Patch Set #3 - Fixed storage location not being set correctly on first load
Patch Set #4 - Fixed 'NullException' for 'mCameraScreenNail'

NOTE : This NEEDS http://review.cyanogenmod.org/#/c/29154/ to be re-merged.

Change-Id: Ia7a703a7fca8074075e98380c4ca0711a9a1ad4f
camera: Fix hang when changing picture size

Change-Id: I46d060d470b96be56d84f273accf54702e72b321
camera: Clean up code for restarting the preview

 * Fix another ZSL hang and remove redundant code.

Change-Id: I8075829bfc82bc94a8ae8d49234cecc4e3ca1faf
Camera: Add supportsOrientationResizePreview configuration

Current orientation resize preview patch is broken some devices (xe: tf700t). This patch adds
a new configuration for device that doesn't handle properly the orientation resize preview
detection.
Also, the patch adds some styling fixed:
- Avoice call requestLayout twice
- Avoid create variables if mOrientationResize is not going to be used

Change-Id: Ia8ad7a58b9418eedc5edde6b23eb995f5ecfdabd
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Revert all recent changes to preview orientation handling

 * Will revisit after the release.

Revert "Camera: Add supportsOrientationResizePreview configuration"

This reverts commit 1d12cab88c5c1b8ae6bb016f08e95068448cafec.

Revert "camera: Clean up code for restarting the preview"

This reverts commit 917a193a4a7736ac7657a6ac7f15a978bfe3732a.

Revert "camera: Fix hang when changing picture size"

This reverts commit d1a3d5d99006f274955b444c62c4354b425ac081.

Revert "Fix preview state machine after it's restarted due to ratio changes"

This reverts commit 5c40119365eefc1b2d9aef3c0b36cf60c44a33a8.

Revert "Camera: Fix for stretched preview in front camera"

This reverts commit b568826506d5555ee04d0a536c4687e34e648eeb.
Camera: NB translation

PS2: Trying to make Cid happy!

Commit for staging: http://review.cyanogenmod.org/#/c/37283/

Change-Id: I135bf8d339c3bb81cd2d0ed9645fea4559af39ed
Camera : FR Translation

Patch set 2 : add cm-10.1-staging translation
Patch set 3 : correction

Change-Id: I5c38b2bf55c71a5fb1f6cb298cd43b7f36470804
Camera: fix preview in panorama mode

Change-Id: I2fefcf81ec0fc3c3dcfb246c73c405350661dc27
Camera: Update exposure drawables to fix various problems

Updates exposure drawables to new ones more similar to the
original AOSP drawables. Also makes them visible on light
backgrounds.

They were previously changed in change 28836.

Change-Id: I1c628980e809e48646c7a6a68a546255e2a09b80
Camera : FR translation

Change-Id: I7d9305696c3dad5fc195cfe545b2e2c635511d72
Camera: CS translation

- added missing Voice
- fixed long sentence for voice shutter
- CID: please reexamine

Change-Id: I734e487be01495845aef57235460b060220762ab
Camera: Update Polish translation

Change-Id: I02a2aa947868d8202fa8ff6a549fdd9e4066cb1f
Camera: HU update translation

PS2: Triggering Cid

Change-Id: I90b04f472fb2aceaf7158a4ccf05f1a36ddb91ae
Camera: DA translation

From staging branch

Change-Id: I8828957baa9ce33fe4f672624b614bf18240494e
Camera: ES translation

PS2: Triggering Cid

Change-Id: I814fafdd05bbf37785fe556f342276001092b853