Gallery2: fix the size displayed error of livesnapshot exif

The exif size info of livesnapshot picture should be right, aka.,
the same as the actual picture.

Change-Id: I7415de4fb4b017f681048319ad2a849fa5b29fe9
Gallery2: Recycle the image when activity is about to close

By calling recycle() on fullImage object, the destructor of the
SkPNGImageIndex class (libskia) will get called which releases all
the memory resources related to that images.

Change-Id: Ic74d9469cabeb07018b76e183f28115c4a93775a
CRs-Fixed: 551617
Gallery2: Clear the undefined buffer for the first 15 frames

The view is undefined before the first frame of camera preview data
come up.
This makes the UI has random corruption when open camera
and exit quickly.
However, we have no way to know the timing of the first frame.

It will take about 700~800ms before first camera preview data comes up,
and the time of drawing one frame is about 50ms,
so need to clear 15 frames before first camera preview data comes up.

Change-Id: Ibc9a5662a15ad58919384ce00cb3a7557b17cae8
Camera: Add checker for null pointer exception during camera release

In current code, handler will still try to execute command even
camera is closed, so add null point checker to skip these commands

Change-Id: Idc407b31bedbf5e879673cb2ca4011dbb006587a
camera: Add parameter debugging support

Change-Id: I51d4f548f5d5f57429a1d08b04361d5e46c21dd0
camera: add new resolutions

Change-Id: I550fc8cf34b1cb5ed61b107d8a2d5da86c8981b3
Signed-off-by: Arnav Gupta <championswimmer@aokp.co>
camera: Set extra ZSL parameter

Change-Id: Idca1814659575368c69bd9706239e1c2999e6c13
camera: Add support for high frame rate video

 * If the camera supports HFR for the WVGA profile, use it.

Change-Id: I3ba03239b66482af36010b75f6827ad9a5b28d30

Conflicts:
	res/values/cm_strings.xml
	src/com/android/camera/VideoModule.java
camera: Enable face detection parameter if required

Change-Id: Iecb982a7634390b486cc51ab05937e5928891745
camera: Video HDR mode

 * Add option for video HDR mode.
 * Some cameras claim to support it, but spontaneously combust when
   enabled, so we'll disable it by default.

Change-Id: Ib17ff4cbb0007440ddc994889b8c2242d4d07e43
Signed-off-by: Arnav Gupta <championswimmer@aokp.co>

Conflicts:
	res/values/cm_strings.xml
	res/values/config.xml
	res/xml/video_preferences.xml
	src/com/android/camera/CameraSettings.java
	src/com/android/camera/OnScreenIndicators.java
	src/com/android/camera/VideoMenu.java
camera: Touch focus support for camcorder

 * Available when video snapshots are not supported.
 * Original from CodeAurora Forum.

Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d

Conflicts:
	src/com/android/camera/VideoModule.java
Camera: Fix for the AF brackets issues in Face Detetcion.

Also disable the FD start flag from stopPreview.

CRs-Fixed:  453944
	modified:   src/com/android/camera/PhotoModule.java

Change-Id: I7ab17154f461d90db2744dbae7aeff518ccd7cc8
(cherry picked from commit e1b82c95910d783cb531c81b5f23552bf26e6cc6)
Camera: change to fix camera preview stretched issue

When change camera preview size between 16:9 and 4:3, we need update
the CamereScreenNail size, but this size will never update the size
of mRenderWidth and mRenderHeight, this cause the function getWidth
and getHeight get a wrong size, and cause the camera preview stretched
change the method to fix this issue.

CRs-Fixed: 507577

Change-Id: I00744851e0ecc393b13e907423ac6ec27230ff49
Camera: Add facial processing features

Add smile, gaze and blink detection features

CRs-fixed: 531927
Change-Id: I7e710e6d9038b14d00d77ea87f9b4c65baa74fc0
Camera: Avoid the crash if fail to find value

If fail to find value, set index to 0,
which can Avoid camera crash.

Crs-fixed: 540594
Change-Id: Iedad101b8f065dbacac4b1203a378cad9c4bc62c
camera: fix VideoModule memory leak

Layout change listener should be removed when module onpause,
otherwise the VideoModule will not be able to release.

Change-Id: I929526cae01b549044fef305d5af247b41420b0a
CRs-Fixed: 549757
Camera: Add camcorder pause feature

Add Camcorder pause/resume feature, recording can pause,
then resume to go on recording.

Change-Id: I64840a982535f481655723bc7e03302d8b765132
Camera: Fix for stretched preview in camera and camcorder.

Stretched preview is observed due to camera sensor's mount angle.
So resize the preview frame using aspect ratios to avoid this.

Change-Id: Ie8a9e062782aa6caaa80ddab705c937da6b0761e
CRs-fixed: 510295
Camera: Do not create start preview thread if one thread is alive

It will have exception if two same threads tried to manipulate
same UI component, check the thread status before create a new
one.

Change-Id: I6f9a5c03f46360d15fdcebcd52c48b924f5b42ad
CRs-fixed: 545574
Camera: Fix swiping disabled after unsupported video prompt

Before recording starts, some parameters will be checked.
If failed, the recording will not run. So the swiping disable
should be done after this check.

Change-Id: I3e6b0bf1f5d5eb8eef333dac79e56e01bd51b43d
CRs-Fixed: 523885