Extended Power Menu - Reboot

This commit adds the Reboot option to the device power menu with the sub
options of Reboot/Reboot, Reboot/Recovery and Reboot/Bootloader.

This patch set adds the xhdpi assets and fixes the ldpi image

Change-Id: I8c3a773ba943dc42e8cf3feab32c462d25d3bb06
Extended Power Menu - Screenshot

This adds the screenshot option to the device power menu and leverages
the built-in ICS functionality to take the resulting image.

It is dependant on the Extended Power Menu - Reboot commit
Allow 4 way rotation and fix criticalBatteryWarningLevel
remove IME Switcher
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
Fixing a bug that when an app is dismissed or loaded that changes
the current active audio stream, if the volume overlay is visible during the swap,
if you adjust the volume (with hard keys) after the steam has changed while
the panel is still visible, the wrong panel (view) is still visible on-top of the
one that is being adjusted.

A good way to replicate this is to
   Open the Phone APP
   Go to the Keypad Screen
   Adjust the volume (not the icon on the overlay)
   While the volume is visible Hit the HOME hard key
   Before the volume dissapears, adjust the volume with hard keys

You will hear and feel the volume adjusting, but the overlay will not update.

Change-Id: I1c7a23d6e569d8582d3dab20523eef3aa9bdde0c
frameworks/base: Increase Zygote preload GC threshold to half the heapgrowthlimit.

Increase Zygote preload GC threshold to half the heapgrowthlimit,
to reduce boot up time.

Change-Id: I6ea0f115e5f96836adec5ba9b796f54e6e898643
Add SURFACEFLINGER_FORCE_SCREEN_RELEASE to fix screen off flicker

Needed on (at least) crespo, aries and galaxys2

Change-Id: Iaff5379775b9a19bd3cd8598e885e885cc0e8492
frameworks/base: Increase the buffer size to hold the whole content of the file.

When we have more cpufreq steps and cpufreq's time_in_state stats file
can grow beyond 256.

This buffer size was not enough because the file has more than 300
characters. So it read part of the file and the parsing failed.
This runs from ActivityManager, so when the ActivityManager dies
framework reboots.Increasing the buffer size will help use to get
the whole file into the buffer.

Change-Id: I3f95dc7534fdaf5e139966c0d1be8d79d6413a0f
Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Change-Id: I1fdbaad92263c9f983a32900e74eba1f0367902b
PackageManager: Restrict system packages to protected storage

Don't allow packages signed with the platform key to be
installed into user (or app) controlled storage

(cherry-picked from 64fa8092090d067d78163b8ebce45baa1123ce9d
 with changed file path)

Patch set 2: Fix compile error due to changed function name

Change-Id: I7390b3bdf5289411f7a335c69635bed9f74bbfb3
Dont enable the light sensor if its not being used
Get rid of the navbar glow animations
Improve rotation speed
Status bar toggles
Kill App on Long-Press Back Key (framework)

Change-Id: Ib78fff9e32d95a0a112ddd9274b79b3a3aa626b9
Customizable Lockscreen Targets
Framework: Use ICS alert drawable

Merging the reboot menu code caused a removal of
the bugfix in this commit: http://bit.ly/MYAIxj

ICS updated the way one should point to the alert
drawable. The old way makes it point to an upscaled
GB drawable instead.

NOTE: Google actually removed the icon for the
shutdown menu in the commit below but I think
it looks nice.

Change-Id: If37c68507886607f9be7f733c0586f814f0ed682
http://bit.ly/LJvp3h
NavigationBar Customization