Revert "Camera: Propagate power mode selection from UI to lower layers."

This reverts commit 5302d2e099de0ae1c3cb4a9cda993fe28b0e8c46.

Conflicts:
	src/com/android/camera/VideoModule.java
camera: Cleanup and compatibility fixes

 * Don't crash for unavailable integer parameters
 * take into account devices with do not have max values return on camera HAL

thanks to Ryu and Steve

Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc

Conflicts:
	src/com/android/camera/CameraSettings.java
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/VideoModule.java
camera: Remove the luma-adaptation seekbar

 * Not useful for any hardware I have encountered.

Change-Id: I93cca2b3bf907cc01946a55111de9eb883475d24

Conflicts:
	res/layout/photo_module.xml
	src/com/android/camera/PhotoModule.java
camera: Add all resolutions, focus modes, scene modes, and color effects.

Thanks CM

Change-Id: I255d73b6e221655f9592047ccf848460d985c3b3

Conflicts:
	res/values/arrays.xml
	res/values/qcomarrays.xml
	res/values/qcomstrings.xml
	res/values/slim_strings.xml
	src/com/android/camera/CameraSettings.java
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: 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
camera: Support for HTC's HDR mode

 * HDR was never actually working on CM because we did not instruct the
   camera to take all exposures. The HAL tells us that we'll get one
   JPEG, but we should snap 3 times. We handle this behavior in the
   framework now, but we should honor the num-jpegs-per-shutter value in
   the JPEG callback.

Change-Id: I7124bf08985ae23b21ac4e294fb889ac4106946b

Conflicts:
	src/com/android/camera/PhotoModule.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: I20785d157bed48816820476d066ef9d4a9f73672
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: Id0c2ef6e17bac74d22e12213ab2ed26c1c73783d
Camera2: check for video size available

Conflicts:
	src/com/android/camera/CameraSettings.java
Camera2: Preview needs to be stopped when changing resolution

propper fix for the old ICS compatibility workaround

thanks pawitp
Camera: revert CodeAurora's panorama angle handling

I'm not sure what the code is trying to fix, but break landscape
devices' panorama display

Ported from cm-10.2

Change-Id: Ifa922b043f578353b778065e2123005a57185dfd
Camera: fix preview for landscape devices

Landscape devices have broken preview because PORTRAIT mode is
being abused to check for screen rotation. Use proper rotation
check to fix.

Ported from cm-10.2

Change-Id: I75588cbce9843e180e4be7591f6a43bcec788506

Conflicts:
	src/com/android/camera/PhotoUI.java
	src/com/android/camera/VideoUI.java
fix aapt warnings + correct strings.xml

fix the bunch of aapt translation warnings and
add missing string in string.xml

seems to be google was drunked
Camera2: roll back UI menu changes from CAF

caf goes the old camera style way which is not our way and google
would never do it like that.

Whatever roll back to google style. We will add back later in google
style all the menu features from caf back in a redefined way

In the meantime we will finish for first googles style derps
(video menu eg is still old style)

Conflicts:
	src/com/android/camera/PhotoMenu.java
	src/com/android/camera/VideoMenu.java
Camera: add Smart capture

add back smart capture feature. Recoded and addapt to the
new aosp camera. This time each camera and video can set it
seperatly.

drawables by kbeezie

Change-Id: I87a895c21c53d11cab573df4fd76f1628ca03b1a

Conflicts:
	res/values/slim_arrays.xml
	res/values/slim_strings.xml
	res/xml/camera_preferences.xml
	src/com/android/camera/CameraActivity.java
	src/com/android/camera/CameraSettings.java
	src/com/android/camera/PhotoMenu.java
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/VideoModule.java
Camera: Add a GPS indicator

This will add a GPS indicator to the preview of the photo camera.
The indicator is placed as an overlay at the upper top corner
of the photo camera preview.

It shows one of three icons depending on the GPS state:
    - acquiring fix
    - GPS fix acquired
    - GPS disallowed in system settings

changes to 4.2.2 version
    - gps icon animates during getting a fix
    - show on video mode as well

Drawables by blunden.

Change-Id: I2f91d6aa12b2629f2c19c564cf646dcc385a7ab9

Conflicts:
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/VideoUI.java
XCamera2: enable color effects Settings in UI

Conflicts:
	src/com/android/camera/CameraSettings.java
	src/com/android/camera/PhotoMenu.java
clean up
Camera2: move custom strings into slim files

more then 80% of the strings are not only qcom related so move
them all into a centralized place

Conflicts:
	res/values/slim_strings.xml