GlobalActions: Fix possible race condition when showing dialog.

Depending on the presence of a previous dialog, the newly generated one
gets either immediately displayed (no old dialog) or shortly delayed
(after dismissal of the existing one).
If a new show event happens (by rapid fire of the power key, for instance,
using a keyboard with fast-repeating events) during that delay, a new
dialog will be immediately displayed, and when the delayed show triggers
it'll conflict with it (and bring everything down).

This moves the creation of the new Dialog object to _before_ showing
it (delayed or not), instead of the show method itself, to ensure the
object isn't clobbered by competing/sequential calls to handleShow()

Change-Id: Ie4d9a8507ebaf59da31869c38b98c3c98a74468e
frameworks/base: Fix the random UI corruption

On low memory device, when a view goes to background. Its HW layer cache
will be destroyed to release memory. There is a very rare case that the
hardware render is not valid when destroy the layer, so the layer is not
destroyed and reused when the view comes to foreground. But the GL
context has changed, so the view is not rendered correctly due to its
HW layer cache. To fix this issue, destroy the layer in a safelyRun. Make
sure the layer is destroyed correctly.

Change-Id: I1c714e1d53db7353d5169e874a7cd0f527c3f67b
SystemUI: Only show H+ if config_hspa_data_distinguishable is set

Currently the UI is not consistent. If config_hspa_data_distinguishable
is not set you get 3G icon on HSPA and H+ icon on HSAPP.

Change-Id: I09db3a2902e30290206eafd1f64c940bab5b89e6
Increase scroll speeds

AOKP PS:
This does not increase touch sensitivity as advertised, it does, however
increase the speed of scrolling giving the feeling of more responsiveness.
Commit message editted to reflect this.

Change-Id: I77e6aeca3667808e630dc142a2e561d3ddddef80
base: fix volumen panel traslucent after stream icon click

Change-Id: I290ecb07106198882739a5b734f4d6a89d3eb5fb
JIRA: CYAN-4487
Issue: https://jira.cyanogenmod.org/browse/CYAN-4487
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Merge changes I290ecb07,I77e6aeca,I09db3a29,I1c714e1d,Ie4d9a850 into android-4.4

* changes:
  base: fix volumen panel traslucent after stream icon click
  Increase scroll speeds
  SystemUI: Only show H+ if config_hspa_data_distinguishable is set
  frameworks/base: Fix the random UI corruption
  GlobalActions: Fix possible race condition when showing dialog.