Camera: Fix rotation issue

If orientation event listener is not active,
jpeg/video orientation will be wrong if the sensor mount angle is not 0.
This is due to not setting the correct rotation when there is not orientation
event.

Change-Id: Id06b996bc870256580e8f0bb300aa3b35d036bad
Camera: properly detect multiple cameras when using the camcorder

Currently, the option to switch between front and rear cameras is
available whether or not the device has multiple cameras. It does
work correctly when in camera (still) mode , the bug only happens
in the video camera.

Change-Id: I66d1a01ff496ed03544049bd1d03881fbef3a07f
Camera: port additional settings from jellybean 4.1 (Round 2)

- add touch-to-focus timeout duration settings
- add volume button zoom controls to camera and camcorder
  (Panorama does not support zooming)

Change-Id: Ib2c2c152a52b2616dd0da6f071f572d34fe64065
Camera: Do not start autofocus when snapshot is in progress.

(cherry picked from commit 9fbccbe5bad2249e13a86581ecbd1e68810a0e90)

Change-Id: I533f62a8a0b3cdde8f763704282ff087313b4fa9
Camera: Don't try to set focus/metering areas when none exist

Avoid calling the set methods when the areas are null, this causes
issues with some camera HALs

Change-Id: Ib6ee79a580c922d353acce6d4493824d010caa0c
CameraSettings: Fix crash when HAL has too many exposure steps

Most of the exposure code works with arbitrary ranges, but the
icons that are presented to the user to choose a value are limited
to the -5..5 range, so take only those into account...

Change-Id: I8a0b2055381c03789061133e821eded869344f5e
Camera: add additional ISO modes (1/2)

Conflicts:
	res/values/strings.xml

Change-Id: I5d868ea30c827be6d38138bce7a63709f636d022
Fix the settings panel freeze

When one of the list items are selected from the settings panel
then the whole panel freezes until either the app is restarted or
the entries are long clicked.

This is reproducible on any HDPI devices even with the Official
Gallery app from Google.

Change-Id: I5ef16bd26e033269d58e2454ea41b918c40ad948
Videocamera: Fix the settings panel freeze

Same as http://review.cyanogenmod.org/#/c/30553/ for the video settings panel

Change-Id: I282a58c422109968e02d4e46100d801a4eeff00b