Camera2: make panoramic focus mode configurable

 - Port from cm-10.2
 - This allows for device maintainers to switch between
   INFINITY and CONTINUOUS_VIDEO focus modes.  Some devices
   do not support INFINITY so the image and preview are both
   out of focus.

Change-Id: I714ad4dc6c329565b9620ff12ebb830555a5d1ef
Camera: Fix CameraRootView layout size on tablets

Use all available space when onscreen are not sync with camera controls (tablets)

Ported from: http://review.cyanogenmod.org/#/c/52464

Change-Id: I0e6a23d49213a69d93875f370ea0177e1011acdf
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Camera: Add missing picture sizes

Change-Id: If33214f7c73f452eefab0b81fc85db3cbaf79911
camera: add support for samsung and htc camcorder modes

Change-Id: I56739157380f596c9f3bbbe7aecd8f532d619c72
camera: allow setting video-size before recording starts

Needed for some samsung cameras.

Change-Id: Ia0f5716d5e6815d249040b08313482a103a36863
camera: Add options to better control video preview size

 * usePreferredPreviewSizeForEffects is needed to fix camcorder effect on
   some MSM8660 devices.
 * Add ignorePreferredPreviewSizeForVideo to use the best size reported
   by the driver instead of the preferred-preview-size-for-video value,
   which may report something really awful.

Change-Id: I216502fe032a89f69e1aea11bc50c51634d40991
camera: Add ZSL support for Samsung/Qualcomm cameras

 * Preview management for Samsung/Qualcomm cameras

Change-Id: Ib36bd21c9a76b45bced3eee2f25acc35b5d82b30