base: Transparent Lockscreen from PA

Lockscreen: See through (1/2)

Add the ability to see through lockscreen.
Adapted to kitkat from jellybean by @BigBrother1984

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

PS2:

* Adding missing sem-colon.

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

PS3:

* Replace and remove undefined mContext.
* Define the boolean enableScreenRotation inside new method.
* Whitespaces clean up.

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

PS4:

* Restore mContext in setKeyguardParams().

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

PS5:

* Fixes for setKeyguardParams() and maybeCreateKeyguardLocked() methods, kitkat changed some things.

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

PS6:

* Missing sem-colon.

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

PS7: Fix all the things.

* Effects doesn't vanish after first unlock.
* Created condition in updateShowWallpaper() method that just return if see through is activated, he was restoring the wallpaper at second lock.

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

PS8: Cosmetic changes.

* Correct java style name to seeThrough() and place it above updateShowWallpaper().

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

PS9: Other cosmetic changes.

* Better name to the see through boolean.
* Removed a space nitpick.

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

PS10:

* We had two booleans for the same thing, ditch the one defined in one class only and take the global.

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

Conflicts:
	core/java/android/provider/Settings.java
	services/java/com/android/server/wm/WindowAnimator.java

Fix: Correct possible null pointer when enabling see through lockscreen

PS2: Remove unused variable

Fix: Ensure lockscreen see through setting persists after reboot

If see through was enabled and the device was rebooted,
the user had to toggle the setting off and on again to activate.

Change-Id: Ib97226d979227ba93eea61e4cd194e59430a9ecf
Keyguard: fix transparent lockscreen

Change-Id: Icdd8bc5605dd352b03772880764b5ca39d74a3e5
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Keyguard: fix leaking ContentObserver

The ContentObserver is not needed and also leaking memory in its implementation.

Change-Id: I251924ba58709c7b35b79530d062e9b6949866eb
Add gitreview for other repo.

Change-Id: I18e84bbfad03d3bfe41165cc09f8b66fe56f5344
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>