SystemUI: Fix potential NPE

Does already cause issues on some Halo ports to other ROMs.
Might not cause issues on PA (yet), but better safe than sorry.
Merge branch 'jb3' of github.com:CarbonDev/android_frameworks_base into jb3
Delete .goutputstream-VGJ9ZW
fix derp in floating notification launch
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
The VM handles blocking SIGPIPE.

We don't need this any more.

Bug: 10211309
Change-Id: I8be0071d50296974e3861f8af9d2bae4f5678d5a
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
Revert "Revert "wifi: Set the mode at native layer""

This reverts commit 69b60809c4c899bb56062f233c9b8316b7788cd1.
Frameworks: LockBeforeUnlock the new way (1/2)

Due that aosp removed the whole LockBeforeUnlock controll (show slider
lockscreen before an unsecure internal lockscreen) we must try to find another way
without touching the security system itself. Long guess sort solution, lmao

here it is, next SlimBean feature

cheers

PatchSet:
- bring eca button to front in lockbeforeunlock mode to make
  it clickable on slider lockscreen

Change-Id: Iaa247c6baf3c4aa85f5097081de79c9ce901e3a6

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardSelectorView.java
Frameworks: Move LockBeforeUnlock -> Secure (1/2)

not really needed because it does not touch the security system.
But imo better from consistence so I decided to move it.

Also found a duplicate in provider.Settings from first porting
merges

cheers

Change-Id: I465d28973e480010bdc4966933e83cf6c0df9990

Conflicts:
	core/java/android/provider/Settings.java
Merge remote-tracking branch 'upstream/jb3' into jb3