SystemUI: Screenshot rotation

Thanks to htchoi1995
https://github.com/ThinkingBridge/platform_frameworks_base/commit/7453dc35b7b35e436f81e2e6ef751e9528b04dd6
Avoid possible memory leaks by ensuring stream closures

Stream close() methods should always be called in finally block
to ensure we don't accidentally leak a stream.

Time to fix some old sloppy code.

Patch Set 2:
 + ensure closure of some other streams
Patch Set 3:
 + missing import java.io.IOException
Patch Set 4:
 + missing import
Patch Set 5:
 + missing ';'
 + whitespace cleanup
Patch Set 6:
 - Reverted changes to MemoryUsage (final requirement
     prevents my implentation)
 + fixed Object allocation in Root.java
Patch Set 7:
 + fixed curly bracket style violations
Patch Set 8:
 x fixed my own sloppy code :/

Change-Id: I3460b558ed5b4489296388c9a52fbb773cefd31f
wifistatetracker: silence more logging

Change-Id: I3d8e7cf0ed028b1213149d89088a2021c838e433
Fix a JNI local reference leaks of CallStaticObjectMethod

Change-Id: I98cf300075fb8e8b3fbc532c6e94370542f6fffa
Signed-off-by: You Kim <you.kim72@gmail.com>
notification/settingspanel: stop getting a gesture recorder

We're currently getting gesture information on fling even
if the log ouput for DEBUG_GESTURES is turned off so.. lets stop.

-Vanir

Change-Id: I70810fb2fb9e4b134492ffdd1ac844fe65f7fb75