fix soft reboot while formatting

While formatting it's possible to cause a framework crash if the format
opperation is not successful. The 'getCode' function in 
NativeDaemonConnectorException can cause a NullPointerException, since 
'mEvent' can be null. If an exception is thrown while formatting the 
thread will try to create a Toast to notify the user of failure. This 
causes a RuntimeException because a Toast cannot be shown from a 
background thread. Make sure 'getCode' will not throw a 
NullPointerException and also create a handler so that the thread can 
send a message in order to create a Toast.

Change-Id: I04c250c46509ae38b0d0a5bfc0e950efbad58305
Revert "Fix for framework reboot on format of SD card"

This reverts commit 8f893362b388471bb4ae4807401fd499d26a7d82.
Merge remote-tracking branch 'PA/kitkat' into 4.4.3
Revert "Fix progress of VolumePanel never refresh"

This reverts commit c4c2e338a936b53b4f8eadbc30d0bedabd3e7e35.
Revert "SmoothProgressBar: Accelerate and Interpolator"

This reverts commit 6c6201c8544e41038825feb21930ab1c1df5e790.

Conflicts:
	core/java/android/provider/Settings.java
Revert "Port SmoothProgressBar: User Custom ProgressBar Setting[2/2]"

This reverts commit 34524e01da544f23a1896e2c20549078d65d9615.

Conflicts:
	core/java/android/provider/Settings.java
Revert "Fixed incorrect calculation of dirty invalidation area"

This reverts commit 288eb6a85b51d26db7be64d11e54bdf448adc8e2.