sr: Fix vsync logic

 * Use CLOCK_MONOTONIC to insulate from system clock changes.
 * Normalize all timespec calculations to avoid overflow/underflow.
 * Don't signal vsync if poll() fails.

Change-Id: If284ebf581309953c51b2f8d33d7d5800c636be5
sr: Fix screen flashing during wipe operations

 * Clear buffer in draw_progress_locked() and always call this in
   update_progress_locked().  This is necessary to ensure that all
   backing frames in the graphics implementation get updated because
   we aren't guaranteed to have any particular number of backing
   frames.

 * Remove dialogs on wipe operations since we are using the progress
   animation now.

 * Set progress indicator after showing "Formatting" text to avoid
   momentary flicker.

Change-Id: I240d3b8e5c741c9f3ea4e5e17c1b9593e053888a
sr: Only use 4 items on wipe confirmation screens

 * Large fonts in Touch UI prevent more than about 7 menu lines.

Change-Id: If523a85d67460c0ac4e012727d946eadb9c68436
Revert "adbd: switch to su domain when running as root"

This reverts commit c52c5b8e3d690201b2ae009a2d396d1899033e3d.

 * This breaks the adb recovery banner, and root_seclabel is not
   a valid option on cm11.

Change-Id: I0dede5d38b53b00936ad901e61d65f6119e62ff5
Merge branch 'cm-11.0' into stable/cm-11.0