mm-camera: increase save memory limit to 50MB

previous save memory limit was 20MB.
if we capture 3 raw images which is of size 18MB each,
saving of 3rd image fails if first two images takes time
to save . 3rd image save fails because memory inuse crosses
save memory limit. 36MB greater than 20MB.
So changing limit from 20MB to 50MB.
Not an issue for JPEG capture.

Change-Id: If89ab4b5dea1bec158aa40577b9b6761be1af5e4
CRs-Fixed: 576070
Camcorder default video quality preference updated as per UI.

Video quality preference was not initialized to the default value.
But it was read as null and set to maximum available quality. So
the actual value set to camera is different from the one user see
in the settings list.
This change will set the default quality to the preference if its
supported.

Change-Id: Ie219e0965a6ac06e62f32cc6c52fdf255a07adee
CRs-Fixed: 565374
Camera: Resume FD UI after capture in ZSL mode

- AF sweep in ZSL mode normally will pause the
  FD UI. The UI should again be re-enabled.

CRs-Fixed: 581180
Change-Id: Ic74973577835388a997d32e079151edec11f70c7
Camera: Check file existence before update

Recorded file must exist for updation. Check if the file exists
before you update to avoid crash. Treat file non-existence as a
error case and proceed further.

Change-Id: I31954d51f0c34ef3d0ee25cb30d243804bc93fc3
CRs-Fixed: 573040
Do not add screen hint dialog when window is not available.

SD card screen hint is directly added to activity window. In the
error case its trying to add the screen hint dialog even before the
activity window is available. This change check for the availability
through window focus. In photo module update hint is called through
handler to make sure it adds the dialog in UI thread, which was
missing in panorama modo. This change as photomodule kind of UI
updation calls in Panorama mode.

Change-Id: I5cad2e86a23aceff290ef8d4ef89dbfdaaeb683d
CRs-Fixed: 573549
Camera: Revering changes of clear preview frame during activity pause.

In camera application, the preview frame is rendered on the surface
texture. When user pause, this surface texture is retained by the
activity. Upon user resume, it will be destroyed and recreated so that new
preview frames can be rendered on it. During this period, a flickering
impact is seen on UI.

Change-Id: I5728d5d7f28ec45121f375928bf2c9effd9bd620
CRs-fixed: 583474
Camera: fix machine shot regression

Don't do cancelAutoFocus in JPEG calback
if it is machine shot. we need to do
cancelAF in normal snapshot but not
while machine shot.

Change-Id: Ic85dbc67cdd2510eafbd849f0b6afa22e2801f7e
CRs-Fixed: 585345
Merge remote-tracking branch into merge_branch

Delay onResume tasks to speed up lockscreen onResume->onPause->onResume launch sequence.
  Import translations. DO NOT MERGE
  gcam: Clean up placeholders, and add deletion robustness.
  Fix issue of focus indicator staying on without being hidden
  Ensure view size gets updated after phone decors change.
  Show the 100% state of the progress at least one frame.
  Add parameters and deduplicate parameter changes
  Revert parallel opening camera in photo mode.
  Differentiate the InProgressData from the normal PhotoData.
  Close mode menus if another control is touched
  Start gcam module directly when handling capture intent.
  Import translations. DO NOT MERGE
  Add a null check to fix NPE
  Add logging to various actions
  Ensure mOpenCameraThread has been setup before dereferencing.
  Add logging to various actions
  Ensure mOpenCameraThread has been setup before dereferencing.
  Add GCam progress indicator.
  hide preview cover on arrival of new preview data if hidden
  Fix photo mode is getting stuck in a single CameraState.
  ...

Conflicts:
	res/layout/photo_module.xml
	res/values/arrays.xml
	src/com/android/camera/CameraActivity.java
	src/com/android/camera/PhotoUI.java
	src/com/android/camera/Storage.java
	src/com/android/camera/WideAnglePanoramaModule.java
	src/com/android/camera/ui/FilmStripView.java

Change-Id: Ic41b4e7e07b2b0ed7936b78a6c5f05270d05985f
Merge "Merge remote-tracking branch into merge_branch"
Merge "Camcorder default video quality preference updated as per UI."
Merge "mm-camera: increase save memory limit to 50MB"
Merge "Camera: Resume FD UI after capture in ZSL mode"
Merge "Camera: Check file existence before update"
Merge "Do not add screen hint dialog when window is not available."
Merge "Camera: Revering changes of clear preview frame during activity pause."
Aspect ratio correction for landscape mode.

In previous android versions camera application was restricted to
one mode(landscape). So aspect ratio was always calculated by just
dividing height by width. In recent versions camera application is
not restricted to landscape mode, so application needs to calcuate
aspect ratio based on mode. This change makes sure aspect ratio
calculation involves preview mode.

CRs-Fixed: 579079

Change-Id: Ic980e6f6a66fcf85b72d4d249844a98e66fe85ee
Merge "Camera: fix machine shot regression"
Merge commit 'android-4.4.2_r1' into merge_branch

* commit 'android-4.4.2_r1':
  Reduce logging of flattened Preferences
Merge "Aspect ratio correction for landscape mode."
Merge "Merge commit 'android-4.4.2_r1' into merge_branch"