Camera2: fix long press shutter behavior

Long press shutter should perform auto focus and take the photo
when the shutter is released. This behavior is broken in
f5b1181157b6d7f65376c0068768f8f3f94b5d69 when longshot/burst mode
is added by CAF.

Fix by only setting the long click handler for longshot/burst when
it is enabled.

Change-Id: I5149134641ec790c03857b4ea23c43a9ff0adfda
Camera: Round camera settings icon margins to 8

Rounding margins of camera settings icon to 8.
This would avoid overlapping of constituent tiles.

Change-Id: I4c1ccd2dfeec082c7164d19ba02bb9d939ac3ddd
Camera: Set the width dynamic to parent from fixed 400px

Width of the seekbar was 400px and that caused overflow for
the rightmost text value.

Set the width match_parent so that it'll change dynmaically
with the text window.

Change-Id: I51069d4c5687e72516bc4a5afc59f9f3ae6f8e88
CRs-fixed: 582325
Set original camera parameters while switching between modules.

Camera holder maintains a local variable to get original params
and set those params back when user switch between modules. But
these parameters were obtained from the instance of camera manager.
So object in Camera holder will be a reference to an object in
camera manager. Becasue of this all the parameters set in photo
module are getting reflected in other modules.
This change makes sure the camera holder's parameters object is
created separately by getting data from camera device.
Also reverted the alternative solution to reset scene mode in
video and panorama module.

CRs-Fixed: 579747

Change-Id: I02637fb2c215aeb1ba9076629400a339c31178ad
Camera: Enable module switcher on resume

For HDR mode, on pressing shutter key, module switcher icon will be
turned off. That'll not be activated if user relaunch camera
after pressing home key in HDR mode while capturing image.

Enable switcher in UI on resuming camera module.

Change-Id: I094f4941f87149e4c5b2393881ed5175c4388559
CRs-fixed: 580450
Camera2: Fix for unsupported resolutions by codec.

Currently, logic for unsupported resolution for a codec is
hardcoded and is limited to only H263 and 1280x720 resolution.
Ideally, we should read capabilities of each codec from
mediaprofiles.xml and check it against selected profile.
Toast message is posted if any unsupported resolution is
selected.

Also skip setparameter call to HAL during recording,
when orientation gets changed.

Change-Id: Ife7dde725882d8217fadff7b56687cdad2c72ae4
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_Camera2 into CyanogenMod-cm-11.0

Conflicts:
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/PhotoUI.java
	src/com/android/camera/ShutterButton.java

	modified:   res/layout-land/camera_controls.xml
	modified:   res/layout-port/camera_controls.xml
	modified:   res/layout/photo_module.xml
	modified:   src/com/android/camera/CameraHolder.java
	modified:   src/com/android/camera/PhotoModule.java
	modified:   src/com/android/camera/PhotoUI.java
	modified:   src/com/android/camera/ShutterButton.java
	modified:   src/com/android/camera/VideoModule.java
	modified:   src/com/android/camera/WideAnglePanoramaModule.java