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.

Change-Id: I3460b558ed5b4489296388c9a52fbb773cefd31f

Conflicts:
	obex/javax/obex/HeaderSet.java
	packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
Remove old navbar code to fix NPE
Fix lock screen timeouts

- Currently, if slide lock delays are enabled and then user switches to a secure lock screen, the slide delays were still being utilized
- This patch fixes the logic around whether to utilize the slide delay setting

Change-Id: I44d8b8dcb04468ca069c7967a753038090d34133
Frameworks: Some fixes, battery drain/massive redraws and minor

This commit fixes the following things:

- massive redraws on qs which causes on use battery drain
- cast fix
- some method changed to final
- code cleanup
- small notificationdrawer background fix
- animation improvement and first to fast qs animation fix

cheers

Change-Id: I234a03b6482a2017985cb17df48118672a062da6

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
There is no reason to update all the drawer when a single tile is updated

Change-Id: I75b768b01509a024fe9f974a19da829f68683318
Change reboot button and tile behaviour in power widget an quick settings

- Simple press -> change reboot mode (reboot system or reboot recovery)
- Long press -> reboot to the selected mode

Change-Id: I7fed20c4d31c374c6570aa85f48ea706b38006a4

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/RebootButton.java
Fix SystemUI compilation warning

Change-Id: I335bf5f07e654a2abbf774c3a776de112ef58df3
Fix QS tiles update after theme change

This fixes bug 83 in redmine
Need to force tiles instantiation to load new resources

Change-Id: I0dffef80a6872f3478cab70dd04f8bb1fbf07245

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/AutoRotateTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/BrightnessTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/FChargeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/MobileDataTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTypeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/NfcTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/RingerModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/TorchTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/WifiAPTile.java
Fix SystemUI FC when all tiles are removed

Change-Id: I43c22322714e4324b658a3f919a6ee5ea21f2b92
Fix Notification drawer color and alpha

did not stick after reboot.

fixed

Change-Id: Iab5197f8b9189ba331a09181a6eeba29a8f198ec
Reworked Wifi AP Button in powerwidget to be like quick settings

This fixes issue 93 in redmine: WiFi is brought back to its previous
state after disabling WiFi AP.

Change-Id: I22047e17092b8706512ec52128b0405b1a4bf8a7
Frameworks: Fix first animation to QS

on click of qs settings button

Change-Id: I7fbc4bc162aabeedb6b88c3046403c12ebb2e6bf
Stylus gestures features (1/2)

Forward-port of http://review.cyanogenmod.com/#/c/18610/
to JB

Change-Id: Ie0ab71d3a2283078601db8405aaabe1d81b27665

Conflicts:
	core/java/android/provider/Settings.java