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

Conflicts:
	packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
Try to fix null window errors when hangling home action

Change-Id: I6b5cd4010fd619cbc9c1294d76d74b82f61f7839
Use white switch thumb activated drawables, not holo blu light.

* These changes swithes like wifi/bluetooth in settings to white.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Conflicts:
	core/res/res/drawable-hdpi/switch_thumb_activated_holo_dark.9.png
	core/res/res/drawable-mdpi/switch_thumb_activated_holo_dark.9.png
	core/res/res/drawable-xhdpi/switch_thumb_activated_holo_dark.9.png
	core/res/res/drawable-xxhdpi/switch_thumb_activated_holo_dark.9.png
Notification Shade: add boost hints to onTouchEvent override

PS2: rebase/fix merge conflicts

-VanirAOSP

Change-Id: I5ab5d5a5cc351da5ea3e1dda0d1aba77913a6dd7

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java