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
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>
Merge "HOVER: Theme Engine compatibilities and some resources tweaks" into kitkat
Merge "Fix DocumentsUI FC" into kitkat
Merge branch 'aospa_upstream/kitkat'
Revert "Themes: Fix wallpaper chooser crash"

This reverts commit 7cca08daf6eb4f362a7b43763bc4675bf44a9874.

Reverted commit removed Theme Engine's dependencies. The NPE isn't reproducible for me (N4),
also i added back the missing permission that here was restored:

https://gerrit.paranoidandroid.co/#/c/4472/

Change-Id: Ie061ad72350dc10d3302791d2b7e037fa048d3c9
Automatic Translation Import

Change-Id: I3f0ccd2695a5dfb0c35692e0ee1fe921f4c4c706
PIE: Fix assistant issues

We should check if we have a search assistant any time pie is drawed, not
just on init. Also restore previous intent null check way instead of calling
SearchPanelView (may not be initialized yet at boot when pie and immersive are on).
Fix also an old bug, once activated for first time, on first google now swipe up
nothing happened (the check done at first init returned false).

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
WallpaperCropper: Add missing Theme Engine permission

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: If8d9ebe3fe18d033963f432ee7b4246e36b91b3b
Merge "PIE: Fix assistant issues" into kitkat
Merge "Automatic Translation Import" into kitkat
Merge remote-tracking branch 'pa_upstream/kitkat' into legacy
Merge remote-tracking branch 'legacy/kitkat' into kitkat