framework: always show the rotation lock in the status bar

Change-Id: I547b201d5abb135cd74a311eff645126f1159da3
BootMessage: show more info in boot dialog

Tell the users what package we are running dexOpt on currently

Change-Id: I665ab3847ec1846e40915a1fae21c43e2e7ccf6d
Base: Prevent lock/unlock sound during music playback

Lock/unlock sound mixes in with music and causes
lag and distortion.

Change-Id: Ide6c2cdd9b56379619ffc485d80f0106d23dec10
Base: Factor out preference-in-storage check to overridable method.

taken from
https://github.com/CyanogenMod/android_frameworks_base/commit/e262881de4fd813bf876ff0b3f2a476d30a1b74d

need by
https://gerrit.omnirom.org/#/c/5759/

Change-Id: I64966e15e0e92a2058809ead2c694a9badae881b
bootanimation: performance/speedup enhancements

squashed from CyanogenMod 10

bootanim: Don't cache textures if they're expected to use a lot of VRAM (rmcc)
https://github.com/CyanogenMod/android_frameworks_base/commit/14f9eecd3f543a25c4a2053d6155a9396a777a3a#cmds/bootanimation

bootanimation: performance enhancements (turl)
https://github.com/CyanogenMod/android_frameworks_base/commit/e6b54405aa70d7503a114d9c90ef7518abdd7133#cmds/bootanimation

bootanimation: fix usage of LOGW (intervigilium)
https://github.com/CyanogenMod/android_frameworks_base/commit/e45cf7d232490f44aecf8f2447220a8b5ace4c10#cmds/bootanimation

bootanimation: allow using RGB565 instead of ARGB8888 (tpruvot)
https://github.com/CyanogenMod/android_frameworks_base/commit/204282870a9c69b04ad5ddecd73fafbd7996cbc0#cmds/bootanimation

Change-Id: I203fa23f77d1349fb822a7662e2cd3998ba4c814

bootanim: Don't cache textures if they're expected to use a lot of VRAM

bootanimation cached all the textures generated until the animation
was completed.
For Hi-res animations with lots of frames (like the new CM9 anim on
xhdpi devices), this implied using large amounts of video RAM, more
than most devices actually have available, causing the animation to
stall (and in some cases, gralloc to lock up); so if an animation is
expected to use a lot of RAM (rough estimation based on frame size
and number of frames), disable cache entirely and generate the textures
on demand

Change-Id: I157e5cdde2aab1d82d980d77cbedd9f127c83a1d

bootanimation: performance enhancements

This patch implements two simple performance enhancements, which
might benefit devices. They are completely opt-in by setting
the following variables.

  * TARGET_BOOTANIMATION_PRELOAD: will preload the bootanimation
    zip to memory; this is handy on devices where the storage
    might be slow. By preloading it, we get quick access to the
    zip file, and the animation doesn't stutter.

  * TARGET_BOOTANIMATION_TEXTURE_CACHE: allows maintainers to
    force texture cache on/off.

Also fixes the sign warnings related to int / size_t comparison

Change-Id: Ie92d1b0aa90b43ba39c368a2a33657a60c3a64b5

Conflicts:

	cmds/bootanimation/BootAnimation.cpp

bootanimation: fix usage of LOGW

Change-Id: I1d59df9f44f414d80058a532644cbbb40e22c701

bootanimation: allow using RGB565 instead of ARGB8888

RGB565 uses considerably less memory, and together with texture
cache, it allows us to offer a really smooth bootanimation on
not so powerful devices.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I9da8fd7e6a587b5895519dd0983ec9b8f676771b
Base: Live wallpaper in recent view

Show live wallpapers in the recents view on high-end devices

Change-Id: Iefbf4f292b6a9bfdb516f154cc2976db2ba86cde
QuickSettings: Harmonize the behavior of the Location tile

Inverts the long-click and click actions to be cohesive with
the other tiles.

Change-Id: I26d11bbdeca9ff31ef3c35127ed72ff3d6c09cbd

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
Quick Settings: remove unneeded casts, update resources when asked

Ported from:
http://review.cyanogenmod.org/#/c/29331
http://review.cyanogenmod.org/#/c/29350

Change-Id: Id00ebdc4e4c5a2a3e7edc21e2e51468d9bc0d59a
QuickSettings: change signal tile to turn on/off mobile data

There is no method to turn on mobile data with 1-2 touches. Every method
implies that you press 3-4 times, and for me this is annoying.

This commit add the action to turn on/off mobile data on signal tile touch
and long touch to go to data usage.

Change-Id: I17e0041464fabb3cf42faf5680b9945bb63b20d9