Camera : Powerkey shutter (3/3)

Add PREVENT_POWER_KEY permission for camera powerkey shutter

Change-Id: Ic5254241941cd2334c215d578936f5f08e484c5c
Merge branch 'jb-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into aosp
Gallery2: Use ICS alert drawable

Same bug here. It's using the old compability drawable
instead of the Holo theme one.

Change-Id: Ia84ce1d305ee63fc6bc1fdb407a91b3421842eb1
Merge branch 'jb-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into aosp
Merge branch 'jb-mr0-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into aosp-merge
Gallery2: Fix hard code message.

Change-Id: I3fb43c7e93e8dbb131df4af40aebffdb28540d2b
Gallery2: Updated italian translation

	Some minor changes

Change-Id: I4a5671b9a749062d9757cb9e7381670527915c65
Added missing hungarian translation

Change-Id: Iaeb446bddb2bc961b6dd55ba8794a6ccd5c09274
Added system to build LegacyCamera if specified

Must be built with the LegacyCamera commit that moves PanoramaActivity
to the root directory.
Inspired by a patch by Bryan Gantt <dragonzkiller@gmail.com>
Cleaned up and enhanced by Rashed Abdel-Tawab <rashedabdeltawab@gmail.com>

Patch set 1: Initial Commit
Patch set 2: Fix errors with libjni_legacymosaic.so not building
Patch set 3: Clean-up the code

Change-Id: Id59e72ada6893c6f6de2b2f486a637509a50d71d
Revert "Added system to build LegacyCamera if specified"

This patch does the complete reverse of what it's supposed to.

"ifeq (,$(findstring LegacyCamera,$(PRODUCT_PACKAGES)))" matches the _absence_ of LegacyCamera in the list of packages.


This reverts commit dd9c5ca25902e723b2229d1438be4c297e6f348a
Added system to build LegacyCamera if specified

Some devices (all 2011 Xperias, and most 2010 legacy devices) cannot use the
default Jellybean camera. Instead they can run the LegacyCamera app
This commit enables using LegacyCamera wrapped into Gallery apk like the
normal JB camera is wrapped into Gallery

To use, just add BOARD_USES_LEGACY_CAMERA := true to your BoardConfig

Credits:
Inspired by a patch by Bryan Gantt <dragonzkiller@gmail.com>
Enhanced by Rashed Abdel-Tawab <rashedabdeltawab@gmail.com>
Thanks for tips and hints from:
	- Konsta Tuomio <konsta09@gmail.com>
	- Arnav Gupta <championswimmer@gmail.com>
	- Ricardo Cerqueira <cyanogenmod@cerqueira.org>

Changelog:
Patch set 1: Fixed up the code
Patch set 2: Use BOARD_USES_LEGACY_CAMERA instead
Patch set 3: Fix up normal Camera stuff
Patch set 4: Clean up. This should be it
Patch set 5: Reomved whitespace, documented the if's and else's, ready to merge now

Change-Id: I2e07032e6a097b8334762af789bf2c72f2515cab
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into HEAD

Change-Id: Ibe51e0ac8eaf3a2543209be60f7986f35e041034
Optipng -o7

Change-Id: I7d08d7126c91f00b2b3e944698727a9d2c3dce0b
Gallery : Remove LOCAL_SDK_VERSION

This is needed since we need access to private apis and 4.2's build system
stubs if you have it set to "current"

Change-Id: I1e2f985238f317fb3595962801bb9b3d2792dc5a
Optimized all images for 381.5 KB savings

Change-Id: I0c67f54da1b4517c63e9ce7b33a2f7b8f2b84210
Gallery : Remove LOCAL_SDK_VERSION

This is needed since we need access to private apis and 4.2's build system
stubs if you have it set to "current"

Change-Id: I1e2f985238f317fb3595962801bb9b3d2792dc5a
Merge branch 'cm-10.1' into gerrit

Change-Id: I01a6678ebc24654dc7ec4addbdc427d8f859dc67
Optimized images

Same method as before, just making it up to date

Change-Id: Idaa4a678b9aec11102cacf0e725ff1c50ee00642
Merge tag 'android-4.2.2_r1' into jb422

Android 4.2.2 release 1

Change-Id: I359a43df48fa60a13c267b6f9dc3fd062db3ecd4
Merged and sqished CM10.1 into our gallery2

PS - fix merging
_______________
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/packages/apps/Gallery2 into HEAD

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

Optimized all images for 381.5 KB savings

Id: I0c67f54da1b4517c63e9ce7b33a2f7b8f2b84210

Gallery : Remove LOCAL_SDK_VERSION

This is needed since we need access to private apis and 4.2's build system
stubs if you have it set to "current"

Id: I1e2f985238f317fb3595962801bb9b3d2792dc5a

Optimized images

Same method as before, just making it up to date

Change-Id: Idaa4a678b9aec11102cacf0e725ff1c50ee00642

[2/2] Camera: add software HDR rendering

http://review.cyanogenmod.org/#/c/31900/
_______________________
Since Camera stuff is compiled with Gallery2, we have to make sure the
renderscript files are compiled too.

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