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
Revert "Audio: make safe headset volume user configurable"

This reverts commit 6ffd4eb55bf74441ef7ae157664017c141d84ec7.
Disable safe headset volume warning

In some countries, regulations require that a warning be displayed
when the media volume is being raised above recommended level while
using a headset. As this is regulation we don't simply remove the
warning, but instead give the user the option to disable it.

In this implementation, the user is presented with the warning at
least once, at which point they are given the option to disable it
completely (via on-the-spot preference).

PS1: initial commit
PS2: update to reflect changes to https://gerrit.paranoidandroid.co/#/c/3702/
PS3: add new drawable (thanks Arz....finally)

Change-Id: Ib29ddb7f0ed5b1d45ed56d13bd6f7e14d005da79
VolumePanel: Fix Theme Engine support with On-The-Spot dialog

Our on the spot feature needs to write to system. Since VolumePanel when is
recreated uses theme engine context (and in this case is fked), pass to on the spot dialog always the
first system initialized one. Thanks to @David96 helping find this out :)

This way we lose theming for the safe headset on the spot dialog,
but we're already finding a really good fix, we have something already :)

Fix AOSPA-482

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I492cd8e24b09d856d23697b84113664379703cf1
SettingConfirmationHelper: Create internal UiContext to load themed resources

As for Theme Engine introduction, we have to handle context changes. In this case,
a wrong context is passed from VolumePanel to SettingConfirmationHeHlper to be able
to write to system. We fixed it by sending a system context separately from VolumePanel
to let it write to system. Although, right now Safe Headset dialog isn't themed because it
doesn't receive the theme context.

Fix that by creating a new UiContext inside SettingConfirmationHelper, that we will use
just to load themed resources.

Continue this https://gerrit.paranoidandroid.co/#/c/4452/

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
SettingConfirmationHelper: Unbreak public api

Missing @hide for javadoc breaks public api.

Change-Id: I29c5e8b5b2ae5a998fdf84895808f79d1e7ae500
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Allow translucent navigation bar in landscape mode.

Change-Id: I5388f3f8a34533624619714bacfba52f95fc6d85
Do not launch floating window when on default launcher

We only do this when user is on the default launcher
because if the user was on a non-default launcher,
he/she must have been there for some purpose and we
do not want to throw him/her back to the default
launcher incase he/she exits the app with HOME button.
Launch Heads Up in floating window [1/2]

    To make floating window to work for Hover and Heads Up, notificationhelper
    interface is modified to include a third parameter to indicate whether it's
    called from hover or not.

    To make Heads_Up floating notification work separate from Hover,
    a third parameter is added to the notificationhelper to indicate whether
    we are called from Hover.java. This changes the call.

    PS2-3: Fix authorship
    PS5: separate hover change.
    PS6: change commit message.
    PS7: Merge with Hover change, fix setting preference and code cleanup.
         To make settings work, don't use Boolean with CM CheckBox preference
    PS8: autorship

    Original ChangeId: I530c3d9473e8b0600db047ce2137ee3d44592111

Conflicts:
	core/java/android/provider/Settings.java
Fix my stupidity
Fix confirmation helper
WindowManagerService: Fix application transitions in immersive mode.

Change-Id: If7d3fc3ab566dedc3a5b38cd0a6dc3185f494e20
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Fix hot reboot in powermenu

Fixes AOSPA-557
Accessing showGlobalActionsDialog() from different threads
(one for broadcasts and one for the actual longpress power button action)
caused a hot reboot when accessing the power menu from quick settings and then from power button.

Change-Id: I4b6efd192404f073c0d1b5655152ae736a398cbd
Cleanup unneeded stuff and fix build (I think)
SysUI: Fix QS tiles cutting off in the ribbon

Change I6dbe2d165398a8142e024db827208dc778003431 introduced a bug
where some Tiles would be cropped when certain themes are applied.

This patch resolves that issue.  Also moved the new dimensions to
cm_dimens.xml instead of dimens.xml.

Change-Id: I64e45e83c0edb7101dfd05377376e57ec323cdc1
Add column for tracking when a theme was installed

Change-Id: Ie8d13aaaf968c21d765062ae598fdac62caa7b2d
Framework: Show advanced reboot menu only if device is unlocked

The advanced reboot menu will only show if the device is unlocked.
Otherwise
the reboot entry will allow the user to simply reboot the phone.

PS2: Reverted changes done to
core/java/android/view/WindowManagerPolicy.java
PS3: Removed tmp file which was created by gedit..
PS4: Only show reboot options if unlocked or not a secure lockscreen

Change-Id: I6f98eca87fa392d2f9aa918f2d3343d1489fa5fd
Signed-off-by: Parthipan Ramesh <parthipan.ramesh@gmail.com>
Remove Slim QuietHours 1
Squashed commit of the following:

commit 48a49e69eafcfa595d343433685606790b9b7bfe
Author: MrBaNkS <banksmi09@gmail.com>
Date:   Thu Jul 31 21:52:10 2014 -0500

    Revert "Base:Quiet Hours[1/2]"

    This reverts commit 69c3fe89261b26e3562c1fde50c9943983ecc70a.

commit 5ad2427114164a3564984e8ba93e2fc22335806b
Author: MrBaNkS <banksmi09@gmail.com>
Date:   Thu Jul 31 21:33:54 2014 -0500

    Revert "Battery led needs to respect quiet hours"

    This reverts commit 7f50c437ebb5f9b990dda882c877f1a495884f38.

commit 76de78ef85bfddf005c48d2da866809d0e7492d2
Author: MrBaNkS <banksmi09@gmail.com>
Date:   Thu Jul 31 21:33:12 2014 -0500

    Revert "Frameworks: Quiet Hours Automatic Switch (1/2)"

    This reverts commit 02e727b841bb77bf18ab891e1f6b02e97e931871.
Edit strings