Port "Framework Track Control : Switch from broadcast to audio service"

Ordered broadcast is unreliable.
Switch to using the Audio Service's dispatchMediaKeyWithWakeLockToAudioService
as it sends the event to the correct receiver.

Patchset 2 - Switch power widgets over as well
Patchset 3 - Rename handler 'what' message to be more consistent
Patchset 4 - Fix renaming mishap

Change-Id: I022720a551b94637f7b16258dfb6a22234bcb736
Lockscreen VolCtrls : Don't raise volume on skipTrack

Set mIsLongPress to true when longpress was successful to avoid
volume from being changed on release

Change-Id: I874f7d66248e30535dddfec53ddd299718e3fa3d
Volume rocker wake rewritten.

This will eventually fix volume wake on grouper and mako.

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Fix autorotation sensor loop being reactivated even when off

The sensor loop was reactivated even if turned off after a wake up
=> consider it disabled also if !mEnabled
+ turn debug mode on in case there's another issue.

Since the current autorotation sensor loop is generating 3-4% cpu eating,
we really need a way to turn it off for good for the moment.
System_server now seems to stay at 0.0% cpu with this change & autorotation off on TF101

Change-Id: I5ed3c95809f6d789222819466dacc625ac2d9f1d
Fix starting window memory leak

If starting window is added to arrays like mViews in
WindowManagerImpl.java, but not accepted by WindowManagerService,
we leak starting windows. To avoid leaking, remove the view
from WindowManager.

Change-Id: I4d98b883e9dfaf5e71bdece385643ba1b59b2633
Don't wake the screen for media playback KeyEvents.

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Fix merging errors
Revert "Fix merging errors"

This reverts commit 7f61b5d37bacf3c91ac42f1ece26f9f10c992f33.
Revert "Don't wake the screen for media playback KeyEvents."

This reverts commit f9a482ef97c6dc7da66bc5a018268d8405a10087.
Revert "Volume rocker wake rewritten."

This reverts commit 3161b64433fd01d9e7e2cf1de0d4b43f218938b4.
Revert "Lockscreen VolCtrls : Don't raise volume on skipTrack"

This reverts commit 69fc39e0540bb1423d0b41a5feeee24478417b00.
Revert "Port "Framework Track Control : Switch from broadcast to audio service""

This reverts commit 25cbd579b2822ce9e9839f9250c080ef0fea1032.
Remove volume rocker wake completely since it doesn't work, but

don't remove music control