Holy Mega Squash + Merger.

155 commits, most with conflicts.  This took me 3 hours.  I suspect I may
have mis-commited something or 2.  but im done for the night

Oh,.. lesion learned.  Always merge the small branch into the larger.  NOT vise-versa.

Prevent NPE in touch handler

  Bug: 7172861

Monkey proofing; activities receive events before they're initialized and after they're paused.

Change-Id: Icc678c94f951cebb78389da00fcd0294a604d66b

Add VideoController to VideoModule

  Bug: 7198600

Change-Id: I6bdab5ad173a0a9ca705ad031555304c98ada3b9

Fix focus touch and enable buttons

  Bug: 7227829
  Bug: 7225629
  Bug: 7225010
  Bug: 7198111

Instead of dispatching directly to FocusOverlayManager call the
module's onSingleTapUp method to perform necessary checks.
Add review buttons as touch targets.

Change-Id: Ida57a1cb7fd165eb84308785f572f9955e41c007

Merge focus ring and radial menu

  Bug: 7233185

Both items get rendered together, and their individual states depend
on each other, so it made sense to merge them.
Show dots while focusing
Adjust initial fade animation

Change-Id: Ic3acbb3c052928e270416063c79d9a5a1ba6d417

Fix Monkey NPE

  Bug: 7236863

Change-Id: Ifcd2dbbb57027da69a6e38c2f9935aeafbacb647

Enable full screen preview

  Bug: 7191461

Overscale preview texture to fill screen
Minor problem with face detection indicators
will be fixed later.
Change-Id: I5a93048564d69fe05f5a7aa7d6506dec8517e8ea

Asset drop and layout adjustments

  Bug: 7228487
  Bug: 7231814
  Bug: 7230994

Added/replaced assets
Increased pie menu size and slice background under options
Aligned layouts according to UX spec

Change-Id: I08ef00f0b917f2222603937dd8a15a3194565d2b

Conflicts:

	src/com/android/camera/ui/PieRenderer.java

Adjust capture animation to fullscreen

  Bug: 7248430

Change-Id: I8e7cbd23f4e29ed9a8cf2691f7160f06c7e85c8e

Move divider line behind shutter

  Bug: 7248337

Change-Id: If88c3f5793fa5049301b430348cc9c793acabaf8

Fix swipe to Gallery in different orientations

  Bug: 7245761

Change-Id: Ifd315a87a09ff239052899e441a929863c1c6207

Add renderers again after config change

  Bug: 7250440

Change-Id: I7965dcf22637d440486530e47cd201a81f8d2232

Change pie highlight color

  Bug: 7252736

Change-Id: I6907808e9bdbe665668532dcb81522856f4d682f

Make Monkeys happy.

  Bug: 7255114

Change-Id: I2974bf1329b5cddfd3ea37b0ee9d74be03b7247f

Fix Monkey NPE

 Bug 7269886

Change-Id: I3ff09868cba897d987327880d65684033a878d4c

Completely redo UI

  Bug: 7274074

Change-Id: Ia406151f9c72030780ef5a290d20c0f2b4b5b11b

Don't draw menu items on tap to focus

  Bug: 7274074

Change-Id: I09984b00a20fc7b724bb238fe53111b52243c5f4

A regression in VideoModule

  Bug: 7274074

Show menu on button press in video module

Change-Id: I876fe4952ebe0d34f301a48ae88a85bf3c143201

Hide menu when button is pressed second time

  Bug: 7274074

Change-Id: I225148ee18c4e41d1b87d323e51b69f3ab279a1a

Add logs for debugging runtime exception taking picture

Bug: 7241774
Change-Id: I7c60fd91b4779bb3f3cf4e3de20d916cd22bdba6

Remove menu fade at beginning

  Bug: 7280472

Change-Id: Id3fb9c8ba17ce16a69bef769cd14b3ac248cf598

Hide event blocker when hiding switcher

  Bug: 7280812

Change-Id: I3c6f668512fc6cddc4f9c54a4ef44ff2e59734d9

Log for debugging runtime exception taking picture

Bug: 7241774
Change-Id: Ia7cb61e12f18f3054a8f85206cda51b4aa70b9f2

Adding accessor methods for latency vars and fixing camera latency tests.

Change-Id: I302c3010537584a8b1ce9ed31d2bdfbc6d77400b

Change order of cameras in camera switcher

Bug: 7284010
Change-Id: I1276aa2e1db349f3e91da34da9ebdca253b6b3b4

Blank out image capture after animation has started.

 Bug 7280817

Change-Id: I192da2836b80e396317e9e9676bea660df2cf558

Raise Monkey shield

  Bug: 7284221
  Bug: 7284043
  Bug: 7281110

Change-Id: I3566abd24e6bafa35036889291c40fe86e6fe542

Fix menu layout after orientation change
Remove dots around focus ring

  Bug: 7207228
  Bug: 7284012

Change-Id: I02bbaa2bc618612acf0087d5a87ac5b7ef85d42e

Don't take picture while autofocus is not finished

  Bug: 7241774

Let the FocusManager handle focus state, but don't render
the focus ring during zoom.

Change-Id: Id64a363900ff707e9508d89c4c4ab1e530688250

Hide face detection circles while menu is open

  Bug: 7302729

Instead of starting/stopping the face detection (which can leave
it in a bad state if the monkeys or Sarah find it), just don't render
the circles.

Change-Id: Ib21f355b64036e282a4a7a73dc187fd7ca81dc73

Set actual zoom value in initialize

  Bug: 7346114

Change-Id: I246d1fe202da9b3fd0f4f016259dea6a929e47a5

Fix pie item alpha

  Bug: 7345340

Change-Id: I4962a910cdf2bad1f46c6d6f1ce8fd3824948c16

Remove switcher from menu if only one camera present

  Bug: 7344724

Change-Id: I85e8cb499842888574e238259215efe76f969be2

Hide menu button when popup is out

  Bug: 7345627

Change-Id: Ibd3e2eebc2f1b061556afec7752ebc74508f362d

Aniamte before capture if HDR

 Bug: 7349527

Change-Id: I0f74c53fef2bdcf22b44557146df8ab241575219

Clean up SRI panorama UI.

- Change Saving... to Rendering panorama.
- Change preview area and progress bar to landscape in portrait mode.
- Move cancel button to the center in portrait mode.

bug:7385654

Change-Id: I166e6c419962b440a0a6148bc133ac6e14cba308

Force renderring request for Camera Animation.

bug:7410862
Change-Id: Ib6788fdafa01734d757804bea3e29c82f363849c

Add actual layouts for keyguard widget.

bug:7412250
Change-Id: I237dc5bf64f0b59bbf2c28df545916bae8670bf9

Add proxy launcher

 Bug: 7394901

Change-Id: Ibdefb00c3553576995bda5e6a670c53d77f865bd

Show auto flash icon in keyguard widget layout.

bug:7412250
Change-Id: I99789834a6f5b346d35954f2d93a0ed8612c45fb

Import translations. DO NOT MERGE

Change-Id: I306dd184271d0a580e93a35ddcf97c2b3bd29077
Auto-generated-cl: translation import

Hide switcher earlier in HDR mode

  Bug: 7369396

Change-Id: Ieac1bd955247c818b55b77a2e29ff176e79a5f6d

Import translations. DO NOT MERGE

Change-Id: I5af141f6d6a410d2efe80b801120895d8c5bcfd5
Auto-generated-cl: translation import

Import translations. DO NOT MERGE

Change-Id: Ieab59d9d52df6153e1b2a237fdf06e90867d0a93
Auto-generated-cl: translation import

Prevent swiping to Gallery while taking HDR

  Bug: 7426867

Change-Id: I96920d95adc45f7df4aaffbf2b88ba0af11ce42a

Align the right fields for popup menu items

Bug: 7442975

Low risk fix. Tested on Manta, Prime and Mako

Change-Id: I06ce6189b4420b0acd7e9e0adca41b41a9959845

Import translations. DO NOT MERGE

Change-Id: Id039b006368154d936a22e6c406097b83f8d166b
Auto-generated-cl: translation import

Lock AE and AWB after the focus completes.

bug:7372273

Change-Id: I08136f32f508c0c55c8f6169b3ea6176097d07d3

Add maximum recording length resource. DO NOT MERGE

bug:7075393

Change-Id: Ieb18d955d809193f652c41eb36d52f2acb8e18e0

Add overlay control for maximum recording length.

bug:7075393
Change-Id: Iaf7bdf81c6bd2c09e71d2ac1210c86cfde00398a

Fix the remaining black blip in secure camera transition.

Bug:7452928
Change-Id: I462c79fe011d020acae8d27e2716aa6f20080382

Import translations. DO NOT MERGE

Change-Id: I1dbb3c29f329253ff062bacc9d86d8c4a1c57de5
Auto-generated-cl: translation import

Animate between camera modules

 Bug: 7265781

Change-Id: Id226392fc1b14ebe5374d1952c830c960c5588d1

Import translations. DO NOT MERGE

Change-Id: I01ccdd178b3cc03327c172dfd7f7f99530e43b74
Auto-generated-cl: translation import

Workaround for visible horizontal line in SRI pano

Bug: 7506612

Adjust the weight of the layout's so that the sum of the weights
is a factor of the height/width for vertical/horizontal linear layout
respectively.

Change-Id: I98f9a56ad0d496169d7395708c8059d4e2f2af79
TODO: Work with Frameworks to investigate the root cause.

Gray out location setting in secure camera

Bug: 7532731
Change-Id: I1f0c0341c226a79e4a3e50c8e3a6053c2b46a4f1

Remove the horizontal line in pano portrait

Bug: 7555573
Change-Id: I61077f939faa4c5de131109e36909aaa65f1f910

Import translations. DO NOT MERGE

Change-Id: If9fbf4879ab5161650bcfa26fc4b4b12e4e36856
Auto-generated-cl: translation import

Fix shutter button missing in pano

Bug: 7553175

Shutter button in SRI pano mode is missing even though it is set
to be visible after coming back from lightcycle. So here we do a
layout request to force the shutter button to show.

Change-Id: I004cb29e78018ae48639934c615818e644f56bbf

Enable play button in video review

  Bug: 7554804

Change-Id: I435f34c6fb36d0b5c2d220ed6cfb630836ade3c1

Import translations. DO NOT MERGE

Change-Id: I416cab71e619289882f65cecf49debe6a50e317d
Auto-generated-cl: translation import

VideoModule: check for videosnapshot support in onSingleTapUp

onSingleTapUp is now triggered through PreviewGestures instead of
ActivityBase, so the check in initializeVideoSnapshot() is no
longer enough to prevent triggering video snapshot on unsupported
devices.

Change-Id: Iab0b4b3d0cd9b0ea7278eceee3ae58419f5df100

Camera: fix for non supported camera expoosure setting step from hal is basicily a negitive  value

Change-Id: Ieac03cced0c3312eaaa321964bc30a9c98326a29

Camera: Prevent double-stops on preview for some HALs

The OMAP3 HAL (at least) stops the preview while taking a snapshot,
without generating events to the upper layers, and telling it to
stop again leads to an inconsistent state.
Use "previewStopsDuringSnapshot" to avoid sending a stop while
it is already stopped

Change-Id: I4d4fe501c0dd6dd9aefb7d35f0e9dc6887e15162

Remove orientation compensation

 Bug: 7446056

Change-Id: Ie01d7c705bf86db72dff4b3cbf9ee7f4491271cd

Prevent Camera UI from showing up in Galllery

  Bug: 7634363

Confirm fullscreen state (camera mode) after camera and UI are started

Change-Id: I7b1d730f83095dcaa403945a4c2e098888ef8496

Don't re-launch activities we already started

 Bug: 7650419

Change-Id: Id5831fa6878be23b2123381bbc922554eb0afb1a

Camera : Powerkey shutter (2/2)

    Allows user to take use power key to take pictures/videos

    Patchset 2 : Minor cleanup
    Patchset 3 : Keep string case inline with others

    Change-Id: I4dba67792d64f747174f5346a0a2a75ab632bb48

    Conflicts:

    	AndroidManifest.xml
    	src/com/android/camera/ActivityBase.java
    	src/com/android/camera/Camera.java
    	src/com/android/camera/VideoCamera.java

commit 3d8dca72ded986b51a202f24407593fff8fa52b2
Author: Danesh Mondegarian <daneshm90@gmail.com>
Date:   Sat Oct 27 23:10:07 2012 -0400

    Camera : PowerShutter fixes

    Ignore keyevents in video camera as well when in thumbnail mode
    Remove unecessary /repetitive flag modifications

    Change-Id: Ic0fe782387d2f331b80c68ab8067d8e2020c03ca

Camera : Ignore keyevents when in gallery

When in gallery view, ignore any keyevents.

http://goo.gl/9FEGw

Change-Id: I6d412327d603f204435302c1955b4dcd3bc942fc

Camera : Fix Ignore keyevents

Call super's onKeyUp/onKeyDown instead.

Change-Id: I054a58f1d0758edafdd4505d41401f3f8f53dda0

Change-Id: I7f14bfbba22b25322bf664e9901991ae26555674

Revert "Camera : Powerkey shutter (2/2)"

This reverts commit 4dfaa4a63b6c4834c5962872627b8a174128da2d.

Reason : Doesnt seem to be allowed to access non public api's.

Revert "Revert "Camera : Powerkey shutter (2/2)""

This reverts commit 3d6fb6871cc3fbd4a9781e2cf3440fa737450526.

unbreak the build by picking in the fix from bryce.

apparently the patch I60ba89b4 in bryce works around a known issue in aapt.

Change-Id: I0468270273350654239be93ef6346d531951f778

Fix picture size option for Arabic languages

  Bug: 7680113

Use English locale when using String.format
to convert numbers

Change-Id: I0efde459efb571a22e5e3afb23659633c4874c05

camera: add support for samsung and htc camcorder modes

Change-Id: I68e6995a51dffa3b5851eb4b7a3a72e60d201d5b

camera: allow setting video-size before recording starts

Needed for some samsung cameras.

Change-Id: Ib87071bdd900aa1a42253bf6e2038b0af51f065b

Camera: Allow a device to request the focus modes at build time

By default, if a HAL supports touch-to-focus, mode selection is
disabled. Make that an option for devices where manual modes
work better without TTF (Macro, for instance)

Change-Id: Id47fba2a9d156b157440485a0fa516871076d9f9

Revert "Camera: fix for non supported camera expoosure setting step from hal is basicily a negitive  value"

This reverts commit 1c49180136c478295f6205401573a62e62945a75.

Negative min value is a valid exposure setting. The patch causes
exposure setting to be always detected as unsupported.

Camera: Dutch translations

Change-Id: Icafae911c0d12493097d31ebc3ffd770fb15a256

camera: Add debug logging when setting parameters

Change-Id: Ida35e08e02f51b7ca2b89dfeeb7e550e6e562c25

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

camera: Add ZSL support for Samsung/Qualcomm cameras

 * Preview management for Samsung/Qualcomm cameras
 * Add workaround for broken face detection on front camera

Change-Id: Ib36bd21c9a76b45bced3eee2f25acc35b5d82b30

Camera: port additional settings from jellybean 4.1

- add burst mode
- add color effects for photo and video
- add ISO settings
- add JPEG quality settings

Change-Id: I0d6a3cf864e618e3698baa42f8a11c0fa9a908a7

PT-BR: Merged translation from CM10

Change-Id: I3890bf92d6a63ed226516a614ef0c085525ddc89

Added hungarian translation (Done)

Change-Id: I7124dae03b442676d0461ae74150bd20c234785c

Italian translation for Camera

* Updated with new feature (burst mode & co.)

Change-Id: I4e42721b1bde8a78d48ab7dfca51feff66b31a5c

Update Russian Translation-Camera-CM10.1

camera: extend supported exposure compensation range

Change-Id: Iabebda0a27454eb3d90bff92498817c2e31752bb

Camera: Simplified Chinese Translations

Ported from CM10.

Change-Id: Ia815a19d3d9a2907b77d825bc883833bbc8d2539

Added hungarian translations

Change-Id: I130991b157ee70e148f8d8880d314aa6a43f536a

Camera: Updated romanian translation

Change-Id: I90c700f189559501e96c6ccdd79caf67b74ae40c
Signed-off-by: Igor <igor_sorocean@hotmail.com>

Camera: Danish translation

Change-Id: Ic6da906fc62a24684ba6e9a6d62c9a8d271da3ae

camera: add support for various focus modes

Change-Id: I4d06a57292edaa28cae68154f32184178b15f2e7

camera: add support for various scene modes

Change-Id: Ie2cd3066010713870c7ba465ad6b57daa2c2573e

Added hungarian translation for scene and flashmode entrys

Change-Id: I7c2ba9af0c2c46b320b13c075557756aa53dc480

PT-BR: Added missing translations

Change-Id: I6642d818787a1f99c5ff5daf4c094936096ac214

Camera: add translatables

Change-Id: Ie0db6f2da22357160610fde4666e876deb74f800

Camera: Dutch translations

Change-Id: I40af3974ce0939aa6c2c25cb2f134d57e44f370c

Camera: Simplified Chinese Translations

Updated to reflect focus mode and scene mode changes and additions.

Patch Set 2: Modifications as per the suggestions of John Hsing.

Change-Id: Ie19992ff04ca805112763b2fb0d91c926617ba18

Camera: Update Greek translations

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

Change-Id: I9c848b062d8e907653b5587f82f13fe86f808a14

es_ES: Added spanish translations

Change-Id: Ibb79b1b54bbb2d7077ccb75c1f9c7dfc63d7d433

Update Russian Translation-Camera-CM10.1

Update Russian Translation-Camera-CM10.1

Camera : Add French missing translation

Patch set 2 : correction

Change-Id: I38e5e333c105107034228d762dad925b3544ac61

Camera: Hebrew translation

Change-Id: I0d48786e2a449c8ec19fa099a0ee9ad161e3d1b8

PT-BR: Update translation

Change-Id: I10a4ec75ff428e4148dd565e89abee68301911fe

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: Ifc8b6703dbc698d288a5163ff2d3ce20decf254d

Camera: Allow setting "profile-video-size" before recording starts

In Samsung Galaxy TAB 10.1 (p4, p4wifi, p4tmo, p4vzw) in HD (720p)
recording dicoloration happens on top third off all video recordings
due to the preview size not set correctly. This fixes it that the
correct preview size is set so that no discoloration happens.

Change-Id: Ib51be18dff76df882984e644becb9430fe6cd5c8

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 : add french translation

Patch set 1 : initial commit
Patch set 2 : correction

Change-Id: I59bab663369dd1747287b5ef67db188c11bc0311

Added hungarian translations for focustime_entry

Change-Id: Ifd58a36e8e7dd20b9d1f2c2b2bae98b4d5d043ca

Update Russian Translation-Camera-CM10.1

Update Russian Translation-Camera-CM10.1

Update translatables

Change-Id: If35bff42016f290e49cfcf57e90b8eef60e851dd

Videocamera: Fix the settings panel freeze

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

Change-Id: Ic9b39d8328696b7a14c693e05d4a9d7b48a92b10

PT-BR: Update Translation

Change-Id: I0ce90a6917103cc6bfadb20be3e5adb6226dcc9d

Camera: add additional ISO modes (1/2)

Change-Id: I15483b24b356acea3f1f5bece63f806dd7383dbc

Added hungarian translation

Change-Id: I72c17367ea4f298eff506a82f9c0045d63b254b6

Camera: New danish strings

Patchset 2: More new strings

Change-Id: I3c7ad57bb722d10c422c43603a041e2d75c7e4d5

Camera: Updated italian translation

	Added missing strings for new focus, scene, iso filters

Change-Id: I39fe55521fcb9da0e93f2b446b54288da180b42c

Camera: Hebrew translation updates

Change-Id: I5a9e89be464117946604feaa3a622b4a885391f2

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: I9eb0b7fc92373d61c93ec7215fcb43dfc574b62c

camera: updated german translation

Patchset 1: initial update
Patchset 2: fixed typos, added non-translatable flag for one default string
Patchset 3: rebase, fixed typos, added missing translations
Patchset 4: fixed missing upload
Patchset 5: more typo and wording fixes
Patchset 6: rebased
Patchset 7: added strings from commit Ib2c2c152; fixed some wordings
Patchset 8: fixed some wordings
Patchset 9: rebased
Patchset 10: fixed two wordings
Patchset 11: fixed one typo

Change-Id: Ie8fe89e6d6bca4399302c6370d324b9bc703e2d4

Danish: Camera ISO modes

Change-Id: I031a7a998650a916112afd22b7e2316f0a8fffdc

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: Iea6efbe113e1c87f22c891bf8a9cd47bc2c1cb22

Camera: Do not start autofocus when snapshot is in progress.

(cherry picked from commit 9fbccbe5bad2249e13a86581ecbd1e68810a0e90)

Change-Id: Id28c90b43ce33702d9c421e9a3b19d4502b77609

es_ES: Added spanish translations

Change-Id: I82c3d561bbd47fcc6e14c19e62e7a9fd97e78bd1

Camera: ISO C++11 build fixes

Fix build in ISO C++11 mode:
- enum typesafety
- constexpr

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Camera: fix for non supported camera expoosure setting step from hal is basicily a negitive  value

Change-Id: Ieac03cced0c3312eaaa321964bc30a9c98326a29

Camera: Prevent double-stops on preview for some HALs

The OMAP3 HAL (at least) stops the preview while taking a snapshot,
without generating events to the upper layers, and telling it to
stop again leads to an inconsistent state.
Use "previewStopsDuringSnapshot" to avoid sending a stop while
it is already stopped

Change-Id: I4d4fe501c0dd6dd9aefb7d35f0e9dc6887e15162

Camera : Powerkey shutter (2/2)

    Allows user to take use power key to take pictures/videos

    Patchset 2 : Minor cleanup
    Patchset 3 : Keep string case inline with others

    Change-Id: I4dba67792d64f747174f5346a0a2a75ab632bb48

    Conflicts:

    	AndroidManifest.xml
    	src/com/android/camera/ActivityBase.java
    	src/com/android/camera/Camera.java
    	src/com/android/camera/VideoCamera.java

commit 3d8dca72ded986b51a202f24407593fff8fa52b2
Author: Danesh Mondegarian <daneshm90@gmail.com>
Date:   Sat Oct 27 23:10:07 2012 -0400

    Camera : PowerShutter fixes

    Ignore keyevents in video camera as well when in thumbnail mode
    Remove unecessary /repetitive flag modifications

    Change-Id: Ic0fe782387d2f331b80c68ab8067d8e2020c03ca

Camera : Ignore keyevents when in gallery

When in gallery view, ignore any keyevents.

http://goo.gl/9FEGw

Change-Id: I6d412327d603f204435302c1955b4dcd3bc942fc

Camera : Fix Ignore keyevents

Call super's onKeyUp/onKeyDown instead.

Change-Id: I054a58f1d0758edafdd4505d41401f3f8f53dda0

Change-Id: I7f14bfbba22b25322bf664e9901991ae26555674

Revert "Camera : Powerkey shutter (2/2)"

This reverts commit 4dfaa4a63b6c4834c5962872627b8a174128da2d.

Reason : Doesnt seem to be allowed to access non public api's.

Revert "Revert "Camera : Powerkey shutter (2/2)""

This reverts commit 3d6fb6871cc3fbd4a9781e2cf3440fa737450526.

camera: add support for samsung and htc camcorder modes

Change-Id: I68e6995a51dffa3b5851eb4b7a3a72e60d201d5b

camera: allow setting video-size before recording starts

Needed for some samsung cameras.

Change-Id: Ib87071bdd900aa1a42253bf6e2038b0af51f065b

Camera: Allow a device to request the focus modes at build time

By default, if a HAL supports touch-to-focus, mode selection is
disabled. Make that an option for devices where manual modes
work better without TTF (Macro, for instance)

Change-Id: Id47fba2a9d156b157440485a0fa516871076d9f9

Revert "Camera: fix for non supported camera expoosure setting step from hal is basicily a negitive  value"

This reverts commit 1c49180136c478295f6205401573a62e62945a75.

Negative min value is a valid exposure setting. The patch causes
exposure setting to be always detected as unsupported.

camera: Add debug logging when setting parameters

Change-Id: Ida35e08e02f51b7ca2b89dfeeb7e550e6e562c25

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

camera: Add ZSL support for Samsung/Qualcomm cameras

 * Preview management for Samsung/Qualcomm cameras
 * Add workaround for broken face detection on front camera

Change-Id: Ib36bd21c9a76b45bced3eee2f25acc35b5d82b30

Camera: port additional settings from jellybean 4.1

- add burst mode
- add color effects for photo and video
- add ISO settings
- add JPEG quality settings

Change-Id: I0d6a3cf864e618e3698baa42f8a11c0fa9a908a7

PT-BR: Merged translation from CM10

Change-Id: I3890bf92d6a63ed226516a614ef0c085525ddc89

Added hungarian translation (Done)

Change-Id: I7124dae03b442676d0461ae74150bd20c234785c

Camera: Simplified Chinese Translations

Ported from CM10.

Change-Id: Ia815a19d3d9a2907b77d825bc883833bbc8d2539

Added hungarian translations

Change-Id: I130991b157ee70e148f8d8880d314aa6a43f536a

Camera: Updated romanian translation

Change-Id: I90c700f189559501e96c6ccdd79caf67b74ae40c
Signed-off-by: Igor <igor_sorocean@hotmail.com>

Camera: Danish translation

Change-Id: Ic6da906fc62a24684ba6e9a6d62c9a8d271da3ae

PT-BR: Added missing translations

Change-Id: I6642d818787a1f99c5ff5daf4c094936096ac214

Camera: Dutch translations

Change-Id: I40af3974ce0939aa6c2c25cb2f134d57e44f370c

Camera: Update Greek translations

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

Change-Id: I9c848b062d8e907653b5587f82f13fe86f808a14

Optimized images

Same method as before, just making it up to date

Change-Id: Ifa8a53b4fc62c6c80f7db553d5227e6c382ce280

Add shortcut to FULL Gallery in CameraSwitcher

Adds shortcut to FULL Gallery via Camera UI in switcher.
This allows going into the actual Gallery with ALL your
albums, not just swiping while in Camera to bring up only
the "Camera Roll".

Change-Id: I38b06cf66b3ae1a2bedfa59a07f873b967235610

Dual commit:  autofocus/metering

1: Do not start autofocus when snapshot is in progress
2: 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: Iaf010f730c9c1896646161ba57113434b5a14508

fix for correct handling of video snapshot feature

the mPaused condition is checked wrong

Change-Id: Ibe66dcec5bc6248159a0b914e5f24f2986d8b8fe

Camera: Dutch translations

Change-Id: I9a40a8a985fe40535b1fb909c4af9884bae4cccf

Camera: Simplified Chinese Translations

Partially ported from CM10.

Patch Set 2: Rebased

Change-Id: I2fb61829410fa00b6440e23eee05508b0f447dbd

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.

Adapted for cm-10.1 from similar commits in jellybean.
  https://github.com/CyanogenMod/android_packages_apps_Camera/commit/5ea90585dfce5a38f0c91d2ae07145770a0ea569
  https://github.com/CyanogenMod/android_packages_apps_Camera/commit/7310af07d00910033adbd2dce6aaf8b04cd1f220

Change-Id: I58d4f81333a26dbd6d1ce35037b9c32fbd7d5b69

Camera:update romanian translation

Change-Id: Ia1ab57648536b16f1f875cd03aacc90bb081442a

Camera: Update Greek translations

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

Change-Id: I6a0c5ea6c46bb16a61d6c654ac147f6eb18446fd

Fixed aapt warning

Change-Id: I091a385aff272ec2d8a39a0acc2bc33fa3a08662

[1/2] Camera: add software HDR rendering

This allows devices without HDR camera (so all phones except Nexus 4
I think...) to actually take HDR pictures. When the mode is enabled,
pressing the shutter button will take 3 shots, one a minimal exposure,
one at 0 exposure, and one at max exposure. The 3 shots are then fed
into a software HDR processor that will merge the 3 images into one
final shot.

There are two algorithms available for merging pictures, one is a
simple average between all pixels, and the second one is based on
Reinhard's algorithm. They all need tweaking, and only the first one
is used for now.
Average algorithm is available in RenderScript form. This beastie
speeds up a lot!

Source shots are removed after HDR is computed

Change-Id: I7a9e52e56258a0c755f4def22db51ac84501ce9a

Conflicts:
	res/values-da/strings.xml
	res/values-de/strings.xml
	res/values-el/strings.xml
	res/values-es/strings.xml
	res/values-fr/strings.xml
	res/values-hu/strings.xml
	res/values-it/strings.xml
	res/values-iw/strings.xml
	res/values-nl/strings.xml
	res/values-pt/strings.xml
	res/values-ro/strings.xml
	res/values-ru/strings.xml
	res/values-zh-rCN/strings.xml
	res/values/arrays.xml
	res/values/config.xml
	res/values/strings.xml
	res/xml/camera_preferences.xml
	src/com/android/camera/CameraActivity.java
	src/com/android/camera/FocusOverlayManager.java
	src/com/android/camera/PhotoController.java
	src/com/android/camera/PhotoModule.java
	src/com/android/camera/Util.java
	src/com/android/camera/VideoModule.java
Fixes for the camera Mega commit

That commit is bloated enough, fixes here

PS - more fixes

Change-Id: Ica349c2f05ff0cc627de020d240efd8c547bcfd4
Signed-off-by: DHO <DHO@dho.im>

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