Camera: Remove unused CM strings

Change-Id: If1e59c1f425a0195b921addf7a227db6306a5795
Camera: Cleanup qcom strings

* Remove leftover ZSL setting
* Use correct strings & arrays for video HDR
* Remove tons of unused strings
* Make some strings shorter to fit better in the settings popup

Change-Id: I5e77bdd62a00b2c868ce159e2fc0c2e0044dc0f5
Camera: Add more exposure time entries

Change-Id: Ic0eff74c818acef28f9f9a4448c57ef4523e7826
Camera: Enable all slow shutter speeds

Change-Id: Ib04ac2e2e59684e7b3747ab68c2e7ffac8386f97
Disable flash when slow shutter is enabled

Change-Id: Ibdd355a5566cf34e4ecc0de0c1433ab8e26dbd13
Camera: Change copy right year back to 2012

As this is 3rd party file, we shouldn't
change copy right year. Reverting it
back to 2012.

Change-Id: If617e7607cd89b0270aabbe1186190dfe06fe40c
Camera: Check if codec supports HFR resolution/fps.

Some codecs can have limitation on the max HFR fps and video
size combination. So, query the video encoder capabilites first
and report error if codec doesnt support the combination.

Change-Id: Ic2032176067a6f92d1363471d1a767d5ef589591
Camera: Don't enable shutterdown for count down timer

For count down timer case, capture process should take place after
timer expiry. Otherwise flash is getting turned ON immediately after
pressing shutter button and then again during capture.

Fix made by not allowing to do anything related to capture process
except turning timer ON.

Change-Id: I843c88ccc9c03235dc6a2a7638221c778bfc6551
CRs-Fixed: 623445
Camera: Change video capture duration with HFR

While capturing a video with HFR, duration is getting stored
properly in metadata but not in media database. While checking
details, duration is showing actual captured duration, not the
playback duration. After rebooting the phone, then media table
is getting updated with proper duration.

Fix made: After capture, change duration value as per user selected
HFR option.

CRs-Fixed: 627354

Change-Id: Ifb7c607e3545c4d2a2e0b1b7666cb0567640d416
Camera: Block DIS and Timelapse for HFR

DIS and Timelapse is not supported for HFR scenario.
If user'll start recording with timelapse or DIS with HFR
then crash observed from lower layer.

Fix Made: User'll be notified that HFR/HSR selection is not allowed
for TimeLapse and/ DIS mode. After that, HFR selection will be set to
off and the option will be disabled. It'll not be vice versa as
DIS/TimeLapse has higher priority than HFR for their existance in
primary popup rather than being in secondary.

Change-Id: I42ed3d3d20727ddda1b15c21b3ba85c8c41a82ef
CRs-Fixed: 627373, 627362

Conflicts:
	res/values/qcomstrings.xml
[mikeioannina]: removed HSR code
fixup hfr

Change-Id: I7edce17952e87cd777ea803271344e57296f5ef4
Camera: Disable DIS option for unsupported resolution

DIS will not work for unsupported resolution.
If user'll start recording with DIS alongwith 720p resolution
using front camera, then it'll crash.

Fix: Block in UI, so that user'll not be able to select DIS with
unsupported resolution after intimating through toasts.

Change-Id: Ie788d456a7b15061f16a44ca34ccd3d1e6d90071
CRs-Fixed: 644268

Conflicts:
	res/values/qcomstrings.xml
	src/com/android/camera/VideoModule.java
Camera: Move out TimeLapse option from global list

TimeLapse setting was common for front and back camera
As there is no specific reason to have it common, to align with
other settings, moved it out from common list so that Timelapse
setting change in front camrea will not affect for back camera
and vice versa.

CRs-Fixed: 654627
Change-Id: I0b14284adc6063ccb9bf175a37644c162bb47fd5
Camera2: Fix ANR when switching camera during AF

- Check that 'mCameraDevice' is valid at beginning of
  setCameraParameters(). This will avoid null pointer
  exceptions at some cases, when setCameraParameters()
  is called by focus manager after closing camera.

CRs-Fixed: 668405
Change-Id: Iff4b81e725db6db11cdc205512b0fec1f71f333d
Camera2: remove the pause button when timelapse is on

Camcorder will crash when pause and continu in timelapse mode.remove
this feature for timelapse mode.

Change-Id: Ia81a11c7879286aafec0f38cb2a485e0f7f6fb68
CRs-fixed: 630780
Camera2: fix unresponsive shutter button after failure

Shutter button is disabled during capture(). It's only re-enabled in
onPicutreTaken() callback. If camera is switched just before counting
down finishes, picture taking may fail and shutter button is left
disabled. Enabling shutter button in onPreviewStarted() fixes the
problem.

Change-Id: I92c644e9a0d283f9ab0269b85586f27e0f4eeb1b
CRs-Fixed: 667311
Camera2: Improve shutter button

-Fix shutter button location
-Use smaller drawables

Before - http://goo.gl/4iCocE
After  - http://goo.gl/i63k8C

Change-Id: Id51fba53372bc7f67750e82063bfa7e1479ea503
Camera: Add more white balance modes

* Convert to popup menus since many icons don't fit well
  on the screen :(

Change-Id: I8824b04919cbc45f88b91d17d8e6bb006ec1b8ce
Camera2: Prevent propogating CancelAutoFocus during Video Recording

When AutoFocus is started during Video Recording, CancelAutoFocus
is called after KEY_FOCUS_TIME seconds. CancelAutoFocus has the
side effect of resetting the sensor AF position and will result in
instant loss of focus which is not a desired event when AF is
manually triggered in case of Video Recording.

Change-Id: Icee7f6dfd4ad083c9b383ee2a4df6a34e4668de6
Camere: Enable histogram

Change-Id: If98b1e6b9c65b24124b0098b77cb91d0c8a62014