Revert "WallpaperCropper: do not display null bitmaps"

This reverts commit 5aece6eca95d2f18f21fa11d0b457c428c111144.
Revert "Fix build"

This reverts commit fd6a710ee1245c2d2b5f567b08b683bf2ac20036.
Revert "WallpaperCropper requires these permission."

This reverts commit 196b367c48348391d94926178c121e22fea21a80.
Revert "Fix wallpapers not applying in full screen"

This reverts commit 15f60e149910129cf336858893ba9f892473a3be.
Revert "WallpaperCropper: Fix crash when set .gif as wallpaper"

This reverts commit 785f5c2882d4732c51f296907c66bf5a5886ef7f.
Revert "Add null pointer check for ExifParser"

This reverts commit 8f4a4467be970500ea3c725557e1d60ad3dc6806.
Revert "WallpaperPicker: Destroy cropview to avoid leaks"

This reverts commit 1978b2b12f292a439a4af435dc2c80fbc3f830d5.
Revert "Add wallpaper pickers to seperate package [1/2]"

This reverts commit cfbcf01181cc5e3ec379462f016acd3768530de2.

Conflicts:
	packages/WallpaperCropper/src/com/android/wallpapercropper/WallpaperCropActivity.java
Revert "Fixed crash when setting wallpaper with built in rotation"

This reverts commit ab4c3f1f91ce82c7b0418473720c1cb0481d53eb.
Revert "Fixed wallpaper bug where wrong size was taken when cropping"

This reverts commit c41853cee89b391cd2d4d93205ea69c746ccfa4c.
Revert "Disable Set Wallpaper button while loading image"

This reverts commit ba126c09a5c00cb0a96da6ece0b4ab4d7ed2d8cb.
Revert "[DO NOT MERGE] Centering the crop by default in system wallpaper cropper"

This reverts commit 929e75e8d0c258ca134093413ed0d8ffb3ead1d4.
Revert "[DO NOT MERGE] Fix wallpaper cropping bugs"

This reverts commit c82618c660bbb76df05c11c548cc01724f5e5fc9.
Revert "Fix to memory leak leaving WallpaperCropActivity."

This reverts commit 38452a5d00082c8001922c8cc754d84dab64f879.
Revert "DO NOT MERGE - Fixed crash for odd image width/height"

This reverts commit eb95e74e21a0e910704ca2fd67e074ab640bfba3.
Fix to memory leak leaving WallpaperCropActivity.

After running wallpaper cropper serveral times it crashes with
an OutOfMemotyException.

When leaving WallpaperCropActivity all textures are leaking until end
of process lifetime. This is due to a missing call to function
TiledImageView.destroy which in turn assures TiledImageRenderer
releases held resources.

Resolved by assuring WallpaperCropActivity calls TiledImageView.destroy
from WallpaperCropActivity.onDestroy. In case where onDestroy is not
called resources will be released anyway by process being brought down.

Change-Id: I016b1b9da5f4db8d2b14767edb59fe742415e074
WallpaperCropper: Fix crash when set .gif as wallpaper

It returns an equivalent scaled cropBounds as true
crop bounds, then it set the rounded rect by rounding
"out" the true crop rect, this make the rounded crop
rect may out range of the original bitmap, then an error
will happen.

We change to check the rounded crop rect, if it is out
the range of original bitmap, we set the original bitmap
bounds as rounded crop bounds.

CRs-Fixed: 622582

Change-Id: I215ef2a0165adaaadb05c62dee741a8ea6926144
Revert "Fix to memory leak leaving WallpaperCropActivity."

This reverts commit 7696ded982852ff697acbfee4dab14157a441829.
wallpapercropper: OOM issue while opening *.bmp image

This change manages setting of large images as
wallpapers without encountering OOM.

CRs-fixed: 619815
Change-Id: I3a32ec4b42050b146076f0adf6b6e65afd6fae4e
Add wallpaper pickers to seperate package [1/2]

Currently wallpaper pickers were part of the various launchers
and we were relying on Trebuchet's to add code for including
wallpapers from themes.  If Trebuchet is removed then this
functionality is lost.  This package is already included in all
builds so making the picker available here removes the dependency
on a specific launcher.

Trebuchet still contains a picker which should probably be removed
and make use of this package instead.

Change-Id: Ie42ae0e01f951a8293d13d6c8a73fde0dea6682b

Patchset: 2
http://review.cyanogenmod.org/#/c/63587/