[2/2] Revert all lock screen color options
Revert "Keyguard: allow keyguard to be dismissed via intent"

This reverts commit 5570fa3bc23cafbe0ace010152b6b6ae49e41b7c.

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
[1/2] revert "add Custom Lockscreen switch"
Keyguard: add smart cover support

Bring smart cover inline with CM

orignal commit can be found here:

https://github.com/CyanogenMod/android_frameworks_base/commit/7e20a24833706cac95206893db9efa471577fe2c
policy: respect FLAG_TURN_SCREEN_ON flag with device flip covers

If an application uses WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
and the device supports covers and the cover is closed, then after the
screen would turn on due to this flag, it would immediately be turned off
because PhoneWindowManager thinks the cover is closed, so it puts the device to
sleep.

Respect this flag and do nothing if it is detected.

Change-Id: I7eb36ce676730e47c551518e214b08561c401ea5
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Themes: Fix setting wallpaper from a legacy theme

Change-Id: I3bfc9ee24d2a3ee5c1bdb97f2c07427e6d723206
Themes: Track NotFoundException on app launch failure

We should probably keep an eye on NotFoundExceptions too since they
are a common exception thrown when a bad theme is applied.

Change-Id: I2ccaed0349a90ab99b99fb83cef0c9183d598088
Themes: Remove listener if exception is thrown

If something goes wrong and a client does not remove itself, the
theme manager may still have a reference to the listener and an
exception is thrown while trying to call one of the listener's methods.
When this happens, we should not only log it but remove the bad listener.

Change-Id: I052cdcc10b0eaa75ebf076b3ece5f8a668d3868e