wifi: Fix StringIndexOutOfBoundsException for incorrectly encoded SSIDs

If the last character of a SSID is a unescaped backslash then WifiSsid
convertToBytes() will throw a StringIndexOutOfBoundsException and takes the
whole ROM down.

The issue was reported by andreip in the HTC One X XDA thread. His SSID was
set to "/ Andrew \".

04-10 21:33:54.265 E/AndroidRuntime(10479): *** FATAL EXCEPTION IN SYSTEM PROCESS: WifiStateMachine
04-10 21:33:54.265 E/AndroidRuntime(10479): java.lang.StringIndexOutOfBoundsException: length=10; index=10
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.net.wifi.WifiSsid.convertToBytes(WifiSsid.java:89)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.net.wifi.WifiSsid.createFromAsciiEncoded(WifiSsid.java:54)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.net.wifi.WifiStateMachine.setScanResults(WifiStateMachine.java:1522)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.net.wifi.WifiStateMachine.access$7100(WifiStateMachine.java:103)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.net.wifi.WifiStateMachine$SupplicantStartedState.processMessage(WifiStateMachine.java:2511)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at com.android.internal.util.StateMachine$SmHandler.processMsg(StateMachine.java:905)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:760)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.os.Looper.loop(Looper.java:137)
04-10 21:33:54.265 E/AndroidRuntime(10479):     at android.os.HandlerThread.run(HandlerThread.java:60)

Change-Id: I8273decacfffea4e4cae3bb957c925833dab09e2
PIE: fix stuck pixel on screen redraw

Reverts: PWM: disable HW overlays for PIE de1cb4e
Uses a dummmy view to force the screen to be redrawn on screen update

Change-Id: Ia12e596f81583a3b6be1bef64ae9d46b32d410d2
statusbar freeze fix (hopefully)

Change-Id: Ida304fc281d9fb44f6c69a2c5da29a28c0e56f66

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Fix touch issue using 0% navbar

Change-Id: I0d140be9ab455291205fac7c38412b2c60e5b028

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
TABUI: Apply redraw fix

Change-Id: I7a40617611d1493cab339a1a7a9ee317d5c6216c

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
SystemUI: awful hack until Google fixes MDP

History:
Google adds tripple buffering in 4.1 - works splendid
Google merges changes in qcoms HAL in 4.2.2 that will trash the
composition engine in fullscreen mode

Change-Id: I6bfbac30e6b04c027d404f8026a9533681bcd4e7

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Some style fixes
Moar style fixes
Update DisplayMetric with PIE and Expanded Desktop

Change-Id: Ie97b97ff9ebf3cecad3e399a5207b8ee5c0281ce