Revert "camera: improve snapshot KPI"

This reverts commit 1a0e156ed8e9fb80e4fdd5160d710fe7775f0516.

Change-Id: Ie02a04f60af4d6896057890ef81fa058494605e8
Gallery: Fix filmstrip with no camera tile

Change-Id: I85f1a6ee2c9587a2071234a1754e03886c351f09
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Camera: set default focus and metering areas to null.

Earlier, default values were not null which
is not compatiable with our HAL.

Change-Id: I317836b3289b9976bf281c8c74308969cbab626c
Camera: Request for 2 snapshots in HDR Mode.

Request for 2 snapshots(1x exposure, HDR Processed) images to be
stored on the SD Card.

Change-Id: Ie7b553e7dd7bf8e03edcf9eb7c09c5e28bacc1ab
(cherry picked from commit 1eebfba9e64ce6800209933063bc50336102dfd8)
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: Ifc1653f0046af169ba36d94796b4d9a3055c6798
camera: Set extra ZSL parameter

Change-Id: Idca1814659575368c69bd9706239e1c2999e6c13
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: 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 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: 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
Camera: Fix camera crash when post picture taken in message app

When post the picture taken in message, the gestures should be
disabled, that's to say, you can not touch screen to AF or show
the preference menu.
1. Disable gestures.
2. Disable keyevent.

Change-Id: I70d478979b0738334886dc3ca6534ca428159339
CRs-Fixed: 520918
Camera: fix panorama rotation issues on 8226.

preview and snapshot are rotated unexpectedly
on 8226 but is fine on 8974. Need to change
rotation angles in panorama based on
sensor mount angle.

Change-Id: I0eff35e574b57b787683722bb16762b7b9b0ee2a
CRs-Fixed: 495787
(cherry picked from commit 7c0e1e546ac903268a16df6a1823743711e396e4)
Camera: Fix panorama preview/snapshot rotation issue

Remove earlier hardcode and use unified solution to solve Panorama
preview and snapshot rotation issue by using sensor mount angle and
angle compensation in panorama postprocessing.

Change-Id: If68c6500c41c7cb3c461352826f1fec45db0a5b0
Camera: Prevent callling of resize  before camera is initialized

Prevent callling of resizeForPreviewAspectRatio
before camera is initialized

Change-Id: If8595cd26f4b0e131aa97f6f1f14b2c98e7a21ad