frameworks/base: Call setDirtyRect to update dirty rectangle

This change updates dirty rectangle instead of dirty region of a
surface.

Change-Id: Ic5c6e68ff644911a596a2432fd14868edbff9b17
[1/2] Frameworks: Battery Icons

      Reveal hidden battery option
      Remove all customizations; return to stock design

PS2 - made font black and bold

Change-Id: I026daf0e2b75c8cf9923ed28ef02289813cfdb50
Smooth Spinners: Makes the loading "spinner" animation smoother in non-holo apps

The loading "spinner" animation is quite jerky by default when the progress xml's from
drawable are called in applications that don't use the holo progress animation. The holo
"spinner" animation is already smooth by default. This makes every other "spinner"
animation smooth.

We've been changing this value in all ROM's we release, both AOSP and CM based ones
as well as stock ROM's, since it gives a more polished look to the entire system. In the past
3 years we've been using this small tweak we have not noticed anything that would
adversely affect battery life or system operations as a whole.

Change-Id: I617d197c2ff4f1a27e96dbc206c24c27036e18d6
Signed-off-by: Kristof Petho <kristof.petho@gmail.com>
Fix possible NPE

Fix null pointer error as reported on Jira
https://paranoidandroid.atlassian.net/browse/AOSPA-218

Change-Id: I7929a518b49ba25ac97f4e184a21da427d5aa70c