Camera: revert CodeAurora's panorama angle handling

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

Change-Id: Ifa922b043f578353b778065e2123005a57185dfd
Camera: Additional scene & focus modes

-Scene modes
-Focus modes
-Focus mode settings
-Fix filtering of unsupported focus modes
-Add one missing resolution
-Extra settings menu

Use ListPreference instead of IconListPreference in scene mode selection
It doesn't look good in devices with many supported scene modes
and we don't need to create drawables for all new scene modes.

Added an extra settings menu in photo mode to hold more features
in the future because aosp UI is unusable when it contains many options.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ifa411ffc77c72d968ea769dad76575b901ad7a84

Conflicts:
	src/com/android/camera/PhotoMenu.java
Camera: Powerkey shutter (2/2)

Ported from cm-10.1

Including cm-10.1 camera commit:
aa4ae80a41fbab763891c5ef6d67a9e5b4bb981b Don't mess around with pref local ID for power shutter initialization.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I0992baa558eefd306d00fbece59cb5c512d9448b

Conflicts:
	res/xml/video_preferences.xml
	src/com/android/camera/VideoMenu.java
	src/com/android/camera/VideoModule.java
Camera: port additional features from cm-10.1

Squashed port of the following Camera commits from cm-10.1:

45b308cbe7715a4c543d8c1589af52a2bdb9ebaa Camera: port additional settings from jellybean 4.1
752bbae9a5ae37a40e449dddb5efafb14f52b2a0 Camera: add additional ISO modes (1/2)
91ac45d1f3a01738e59f1bc3e1e66cdde2fdd106 BurstMode: only show slide animation after final shot
d231733b79c67e27710702f1d7f42715dcbc6c41 Camera: add exposure and JPEG quality settings to video camera
bb4a2b611b505a7a3a81a479fe2e87798b4d14e8 Camera: separate settings for color effects and jpeg quality
1bcbb002ec1dc36f4cbda3f169ce6130c758f1e0 CameraSettings: fix the filtering of unsupported settings

- Burst mode
- Photo color effects
- Video color effects
- ISO settings
- Additional iso modes for sony devices
- JPEG quality settings
- Video bitrate settings
- Video exposure settings

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I0d6a3cf864e618e3698baa42f8a11c0fa9a908a7

Conflicts:
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/VideoModule.java
Camera: Add touch-to-focus timeout duration settings

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ib2c2c152a52b2616dd0da6f071f572d34fe64065
Camera: Add red-eye flash mode support

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I3db982732d15fb4eb83d5e37bff1a123225d4e8e
camera: Enable scene detection when ASD is set

Change-Id: Ief4061dc326e5cfe7e40239c7c07ae39ad8544b9
camera: Additional scene modes

 * Scene modes for N1
 * Also remove HDR scene mode from list :)

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

Change-Id: I939b5667b98ed9feb4a5d323ace2a51e94d4c4ed
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
camera: Revert device specific hacks

Squash of:

Revert "camera: Depurpleator"

This reverts commit 4e1425cbd738446fd1abb26e7db0744c93d4463f.

Revert "camera: Enable scene detection when ASD is set"

This reverts commit 44584d57baea1dc4025074c22daac38fdd417ef6.

Revert "camera: Re-add workaround for freeze when recording stops"

This reverts commit 04afe05b04f4f9519d66de775aa677d40e60a041.

Revert "camera: Add workaround for broken video snapshots"

This reverts commit 8a1aced9a1a2d070d3533f95b3bc3dedb1b1f282.

Change-Id: Iccff8dbf360c41c29cd716eb56ca8336250cc428
Camera: Fix countdown timer button behaviour

Change-Id: Ic79cc271bf582bb2f9c8b774f3f243f6312fb5bd
Camera: Move storage settings under second menu

Fix layout issues like this: http://i.imgur.com/XvJz5Pk.png

Change-Id: Ia641cc524266eef0edbcce851707b1a48b1490bd
camera: Make the popup menu transparent

 * We should never obscure the preview.

Change-Id: I246f82808f1277f719b9bedafb6d3ace833cc48e
Camera: set nail size from PreviewFrameLayout

Fixes preview frame not being resized correctly after orientation
change in PhotoUI after CodeAurora's change.

Change-Id: I4fd15a83ed2ac76a477070b51b9b604672f02d53