WifiController: fix high perf lock sometimes not respected

When the device screen is turned off, the state is DeviceActive for
15 minutes. In this time, high perf lock is not respected and
Wi-Fi power-saving mode will be turned on because screen is off.

Fix by adding a new DeviceActiveHighPerfState.

Change-Id: I71074beec4d41286dea0861107d7931da205aca2
JIRA: CYAN-2860
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
Display: Dirty region propagation

Pass Dirty region values from HW renderer to Surface Texture.

Change-Id: Ibd121ed398a1319d3daf26f9fd39a03323bba666
Release wakelocks acquired by SyncManager

Release the wakelocks internally acquired by SyncManager to improve
power performance.

Change-Id: I6d9663292cb4471d92ed9132beb7ed1ba2e8128f
CRs-Fixed: 585825
Czech translation update

Change-Id: I4182695980d0e0b302511d40f5286a5b02863d04
Signed-off-by: kecinzer <kecinzer@gmail.com>
Update Swedish translation

Change-Id: If44d094295574b9b765231df10fb63cabdc89b51
Import czech translations from crowdin.net

Change-Id: I2ee005ebef91f89bf4ba968c310e402eb8591370
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Fix NPE for WiFi off notification action

Change-Id: Ieaa4026f192c1487e74e7b6a96f628661602c595
Signed-off-by: Gergely Szell (sethyx) <sethyx@gmail.com>
Merge "Fix NPE for WiFi off notification action" into kitkat
Merge commit '17bb3b0fe3da75514e3c9169fc1f516d721d5891' into kitkat