Revert "Another attempt to catch that bugger FC"

This reverts commit 5342e15346964c2fb1e6cbcf6db5a7345535bc83.

(cherry picked from commit 74ee03766dcd0831b66946da5bc4c07826ff8be8)
Revert "Catch IllegalArgumentException on Boot"

This reverts commit 98e4fb0daae0127c5f9629617395ea4a637f1451.

(cherry picked from commit 7bb17510ed47bab386d8ea7c1abea68554590aec)
Revert "Frameworks: Lockscreen background - 1/2"

This reverts commit 575a4e95c4a4a3fff5fa2f46a56411070748efbe.

(cherry picked from commit 107915a6ec80755c339c6918c64ced6b27963222)
Frameworks: Lockscreen custom wallpaper (1/2)

kitkat now has code for a custom wallpaper image.

Using that code set a switch case to set the custom background between
  - Custom Wallpaper
  - Default background

This way allows the same overlay shadow thats set on the keyguard when
its the defualt way.

Change-Id: I98fde63ef9f3c0a5f334cd9a97b237a6f99c57f6

Conflicts:

	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java

(cherry picked from commit a97900015e79f63600acae6ecd40b5e747d63c8f)
Lockscreen: Fix SystemUI crash on initial selection of Custom Background.

Change-Id: I8df4984f4b90d211baa888d380a95fc00a85d1ad

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java

(cherry picked from commit 20844f390a4ee01107a1c94beb72cd0eb0b3d2ba)
Automatic translation import

Change-Id: I43f9c1f1f13c2a774f17f553b57d52f0b42db839

Conflicts:

	core/res/res/values-ru/cm_strings.xml

(cherry picked from commit d5445df91278cb70f81c378006a315869207695a)
SysUI: Don't recreate controllers.

The various controllers, such as mLocationController, get recreated
every time the status bar is recreated due to a theme change.  We
should only need to create these if they are null, otherwise use
the controller as is.  Also, each of these controlers registers
themselves as a broadcast receiver and are never unregistered before
recreating them.

Change-Id: I6215aae5a82b7ced8f0f25cf592a804d38825260

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

(cherry picked from commit 8d2a07f40baf8779cda2c43370273b98a062e6c4)
Frameworks: SlimRecents: Make expanded layout pretty

Instead of adding an extra box below the header expand it in the inner layout
so it is visual one card. Looks nicer, conform with google style and saves
a bit space

Change-Id: I6b406c622ac557a1ce6b81bfa86b4c96b492eceb

Conflicts:

	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/styles.xml

(cherry picked from commit aa913565958eeb25e2aa1d2b17bd975e681e17ae)
Frameworks: add 1dp more bottom padding

Change-Id: I8374994a67aadc7ea9b84cd22273c29b8b9ca88a

Conflicts:

	packages/SystemUI/res/values/dimens.xml

(cherry picked from commit 2fa74c780da6c957524431df6a9d858853e9cbaf)
Frameworks: SlimRecents pass gesture detector to the cardslistview

see this commit https://gerrit.slimroms.net/6469

this fixes broken gesture detector

Change-Id: Ifd28e7e570808ade0494c7015c50c01c344d8741
(cherry picked from commit 7b2c844f8b146ff5ed50e5f8fbeaf197835821c1)
Fix build

(cherry picked from commit b152522283f51e597cd0a2d1925d097f989889e9)
Keyguard: more consistency with the new lockscreen wallpaper

* In the case when the screen was off and setCustomDrawable()
was being called, and the use wallpaper is null, then we could be
setting the color filter on a null drawable.

* Fix logic when old custom background was null and the new one is also
null (but could be the user one) and the func was being returned, thus not
clearing out the current media album art.

* Move resetting the shouldShowWallpaper() flag to the show() method
so it is not being called every time the screen is turned on.

* Fix user image not showing up on first boot if it exists

Change-Id: I567c2ec8920df627835defb822c2ea25be7b3cab
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 399cf5b263bc7b48f4d79a1bf998d8cc85ef8c42)
Keyguard : Fix album art sticking after playback is stopped

newIsNull should be populated by what is currently being set and not by
what the user's custom background is, since otherwise you end up a in state
where the user has no custom background set, music stops, no album art via arg is provided and you simply return.

Change-Id: Ifaea1cae176faaba6b32a711071f3b75ccacdd63
(cherry picked from commit 3812414d6a61674cc5e9c3e3258a56e36e186167)
Fix the value type of def_noise_suppression

Change-Id: I0b94e9b24af959fa1c16c807ba83890b2ce077ad
(cherry picked from commit d9b00de6969233918b7369192d0dc67bcc371f44)
Move theme strings to cm_strings.xml

Also correct application->app

Change-Id: I13afe2b810ccb8f9a5fa9484a5cd93ec9820ed6e
(cherry picked from commit c4faa15650a2ad855bd5726e4c11d77a161f8953)