ShortCutBar support

PS2: Add back darker gradient

Change-Id: Ibcac1bf8c1810771f5a82395d434d0687406fb2e
Low-end devices need help!

-> Check for wakelocks faster
-> More granular hidden apps selection
-> Kill hidden and service_b apps at higher lmk
-> Rearrange OOM values [similar to SuperCharger! But not exact]

Change-Id: If6163a8c15b8c3ec622a44124609be21b4359e36
ActivityManager: memoize for performance

isHighEndGfx and isLargeRam are frequently called upon.. isLargeRam very
frequently within the ActivityStack. these aren't going to change after
they're calculated the first time so subject them to a basic memoization.
FTW.

Change-Id: I176089f99ac6c6e4074cb2fde502c729986ea701
Fix DataInputStream leaks

Fix fixes
-In viewstateserializer, try to close before throwing or returning, and throw early if inputstream is null
-other stuff

Change-Id: I7f3b16057582566b82a85841829ff6ed11cd570e
potential GraphRunner leak in camera effects

if the camera FCs while recording effects.. *poof* a tiny leak is born.
so.. we close mRunner onDestroy.

Change-Id: I6a7983f120a03137f545a3cd9bb07ff51a9cd2d7
activity manager tweak-a-roonie

Change-Id: Ic511257e8154610288019c52fb41cc6bf551ebd3
fix cursor leaks in F_B

my previous commit was submitted before i was finished.  Here is an updated version.

PS2: missing bracket

Change-Id: I9d8048e49695cdac7ded086cd49ee6eb99e518cc
Selectively restore non-stupid parts of stuff we had
before a patented nuclear decrapificating

Change-Id: I679f5748365bb50451abc71398dcf35002282330
Memory leak in IInputMethodSessionWrapper executeMessage

In some cases the executeMessage is called with
mInputMethodSession == null. For the messages

DO_UPDATE_SELECTION, DO_APP_PRIVATE_COMMAND

memory is leaked. This commit recycles the args freeing
the allocated memory.

Change-Id: I6f4e2abbc08ec66b351947980efb8c22f65b5838
batteryservice: privatize a settings observer & only observe LED changes when there is actually a multi-colored led service on updating

ps2: don't double-update pulse

Change-Id: I781ae63f82e472870bf60bca79237646e715ae71
Nuke says to reconcile this

Change-Id: I3e4655e29aea6f2630bf8a779a0edcf5ed3b682d
ProcessStats: Handle changes in the scaling frequnency

Switching from MP to IKS mode results increase in number of operating points
and results in bug #1183781 . The patch makes sure that whenever the available
scaling frequency changes it resets the existing values and sets them as per the
new values.

Change-Id: Ic74cdc2015f3c4ddd61cb116d1f4b4ed1204a3bf
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
fix some frameworks cursor leaks

Change-Id: Ib2c3b8944e12d7b198230f26f6104269f7d8fe0a
wifi: fixed to keep country code after boot

Change-Id: I9769f557d2e8bab58ddfa89e8e2a1427d7226e7a
Zygoteinit: match preloading resources with AOSP 4.3

Change-Id: Iac145c1b82b07b97cae661a754d267ef8e5f2bc9
Use boost hints on dexopt

Change-Id: I541f83af99fde6b3a34b16dcb4f3870979de90cc
Frameworks/base: move custom string in cm_strings.xml file

Change-Id: I1ae0add981ed72a89e64b687210647d69a09ea3e