Revert "GlobalActions: Fix extremely broken indenting"

This reverts commit 4c729b1b7ceb784e8488f9a712db6b54f4ea4c66.
Recents: ClearAll: Fix glitch on quick double tap

To reproduce:
Open five or more apps, open recents and tap twice very quick on
clear all button.

Setup a boolean to control the thread starting, don't relaunch if
clearAll's run() has been executed and is already firing up childs.

Along with this https://gerrit.paranoidandroid.co/#/c/4346/ UI/UX should
look great no matter how crazy and how many times the user click on recents.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I0d393838c23e2585222cf7b181c2f7a6385494cd
Quicksettings: Add separate dimension for dual switch icon

Support Themers (for ex the ones who change QS icon sizes).
Right now it streams default one that is themed, and a bigger icon
theme will mess it up.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Conflicts:
	packages/SystemUI/res/values/pa_dimens.xml
Themes: Fix wallpaper chooser crash

Fix AOSPA-477
DocumentsUI: Remove catch-all statements

This removes several "catch (Exception)" statements which violates the Android code
style guidelines and hides problems.

I left some catch-all statements in, as they seem to be intended like this (grep for
"catch (Exception").

I suggest we do not merge this before we are sure that we fixed any problems. One problem
is a crash when deleting items (I'm currently working to fix that).

PS 2: Add exception to log.
Change-Id: I483c320c7ee256acd993dd2a509c031fa5e3f09e
DocumentsUI: Handle NPE gracefully

Cherry-picked from OmniROM.

http://jira.omnirom.org/browse/OMNI-956

Change-Id: I8d50d71a9c91486dfc9e5da01538c6b5a626f054
Themes: Add categories to theme change intent.

The following categories are available:

org.cyanogenmod.intent.category.MODS_HOMESCREEN
org.cyanogenmod.intent.category.MODS_LOCKSCREEN
org.cyanogenmod.intent.category.MODS_ICONS
org.cyanogenmod.intent.category.MODS_FONTS
org.cyanogenmod.intent.category.MODS_BOOTANIM
org.cyanogenmod.intent.category.MODS_NOTIFICATIONS
org.cyanogenmod.intent.category.MODS_ALARMS
org.cyanogenmod.intent.category.MODS_RINGTONES
org.cyanogenmod.intent.category.MODS_OVERLAYS

Change-Id: Ic444278d1d712cb6207bb10574a471524a8fed41
PIE: Improve assistant handling

Run it from SearchPanelView and determinate before, at PieMenu creation,
if we have any assistant available or not.

Some cleanup too.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I986a5e5257f432acd58dd2d75fc13f2b772c7453
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
Conflicts:
	media/java/android/media/AudioService.java
HOVER: Theme Engine compatibilities and some resources tweaks

Use default notification dimens, avoid setting a custom one.
A bit of cleanup too.

Notifications:
Hardcode dimensions to android defaults. Avoid themes to change them,
Ribbons feature (present on CM based roms mostly) needs that.

Thanks to +John Xionidis to help me trick this out for full CM11 made themes :)

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Iccf12061c045c29db4bc73736dac68e52dda198c
Conflicts:
	packages/SystemUI/res/values/pa_dimens.xml
Fix DocumentsUI FC

Change-Id: I2bfd4ea83db53ee83683a4754b49b15cc2abeaca
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>