Camera2: Add additional camera resolution strings

Device maintainers will need to populate their arrays in an overlay.

See:
https://github.com/omnirom/android_device_oppo_msm8974-common/blob/android-4.4/overlay/packages/apps/Camera2/res/values/arrays.xml

for one example

Change-Id: I3315db64b2fc69fcd40523adb95408283ce04228

Conflicts:
	res/values/custom_strings.xml
camera: added needsEarlyVideoSize

Needed to fix crash on e.g. find5 when switching to
video mode on fromt camera

Change-Id: I6b4ad10ee3a0c1ccc22be0546b21803adf9e2b9b

Conflicts:
	res/values/config.xml
	src/com/android/camera/VideoModule.java
	src/com/android/camera/util/CameraUtil.java
Add options to better control video preview size

Change-Id: I1adc636bae0b2976a3279e32df5a468207977e3e

Conflicts:
	res/values/config.xml
Camera: fix crash on screen off-on on preview screen

Some Camera HALs don't like stopPreview being called with
setPreviewTexture set to null.

Problem occurs on:
 - Acer A700 (Tegra 3) - always
 - Samsung I9082 (Broadcom) - sometimes

Change-Id: I9a2213ce4320f6149a4f1df72c09e3e148fea685
Set default video quality to the highest

Bug: 9886141
Change-Id: I7ac844558a035b96122f7e46719f3362e2fab739
camera: Cleanup and compatibility fixes

 * Don't crash for unavailable integer parameters
 * Kill logspam

Change-Id: I5cf87dd5621e3596a8c394f7dde03a70acd89d4d

Conflicts:
	src/com/android/camera/CameraSettings.java
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/VideoModule.java
camera: Remove ICS hack to stop preview after takePicture

Change-Id: Id800221b224fd7e455bd580210709ca4d66f0e26
camera: Disable wavelet denoise by default

 * Many devices (such as M7) just crash in frameproc if you turn this
   on. Devices that want it can overlay it in.

Change-Id: I4ff6645578178a8d3ee7871613343be0deef46a4

Conflicts:
	res/values/qcomstrings.xml
camera: Check if video sizes are available

 * Some drivers don't report video sizes and we should avoid using fine
   resolution lookup, otherwise a crash results.

camera: Proper fix for the missing video-sizes issue

 * Just honor the defined camcorder profiles.

Change-Id: I43340fe3570c9022b2f894c6a8382e8edfa2b664

Conflicts:
	src/com/android/camera/CameraSettings.java
Camera: fix panorama preview on older devices

When PREVIEW_FBO_WIDTH_SCALE is set to 4, the preview FBO becomes
larger than older GPUs can handle. Detect it and reduce the value
to 2 like on pre-KitKat releases.

Change-Id: Ic9028a718b3661ffc75b6a5129ea0d09cf915895
Camera: fix panorama preview on older devices

When PREVIEW_FBO_WIDTH_SCALE is set to 4, the preview FBO becomes
larger than older GPUs can handle. Detect it and reduce the value
to 2 like on pre-KitKat releases.

Change-Id: Ic9028a718b3661ffc75b6a5129ea0d09cf915895
Camera2: enable antibanding by default

The default for antibanding should be "auto", otherwise there will
be banding effect when taking photos in certain lighting.

Normally, the default on most devices is "auto" (depends on Camera
HAL). But the code from CAF changed it so that the Camera app
explicitly change it to "off".

Change-Id: I578f1aeab060fe044bdf59557fe4660928a7d833
Camera2: Preview needs to be stopped when changing resolution

This was done in startPreview as a hack, but was removed in
f729b85e12cfa2674048d8cce2f724014b8fc910. Specifically add it
back when the resolution is changed.

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

Change-Id: I75d3e2caeedcf949093ab7569a9abcd53fe453ff

Conflicts:
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/VideoModule.java
	src/com/android/camera/util/CameraUtil.java
Revert "Camera2: Adding support for Auto HDR"

This reverts commit a37ed35aa59ed5833481b09c85b3bbe126c08e5d.

Change-Id: I70435058ed89babc4b2030281c0b63d55ffac856

Conflicts:
	res/layout/photo_module.xml
	res/values/qcomarrays.xml
	res/xml/camera_preferences.xml
	src/com/android/camera/AndroidCameraManagerImpl.java
	src/com/android/camera/CameraManager.java
	src/com/android/camera/CameraSettings.java
	src/com/android/camera/PhotoMenu.java
	src/com/android/camera/PhotoModule.java
Revert "Camera2: Query support for longshot and ZSL+HDR from parameters."

This reverts commit 0fe7caa5c1d082e44a1b0be4fc19b257be34450f.

Conflicts:
	src/com/android/camera/CameraSettings.java

Change-Id: I4c85cc767d3d1c9094a762869a2cf26096a2b44f

Conflicts:
	src/com/android/camera/CameraSettings.java
	src/com/android/camera/PhotoUI.java
Revert "Camera: Disable flash for AE-Bracket"

This reverts commit a2920e3f027b71100e72a1e4840c6a53e414cdfb.

Change-Id: Id028a67d2ffe88181e940d82acfe6ebcfe18d6d8

Conflicts:
	src/com/android/camera/PhotoMenu.java
	src/com/android/camera/PhotoModule.java
Revert "Camera: Disable HDR when scene mode is other than auto"

This reverts commit 4a10357841f07d0c80a91fe145ff7dfd8c8518cf.

Change-Id: I37d4e99859b10ac82699acb82c4c576bdbdf9f05

Conflicts:
	src/com/android/camera/PhotoMenu.java
Revert "Camera2: Enable HDR for zsl mode"

This reverts commit be11c6bc8f99f896f6f84b4f54da9d4672ab39aa.

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

Change-Id: I0d6ac174ee0ffe049743a96f33e2885f9ee0da4b

Conflicts:
	src/com/android/camera/PhotoModule.java
Revert " Camera: Remove AF UI when faces are detected in photo ui"

This reverts commit 05a86dc26564cba15a57adec10e474a952ba75eb.

Change-Id: I72cb64e63ec62b8cdefdd9d00da57b0748576bbb

Conflicts:
	src/com/android/camera/FocusOverlayManager.java