Scale down the wallpaper image if it is larger than the surface frame

Let the wallpaper can fit the screen if the wallpaper is larger.

Change-Id: Ie4116dc0386c7b390a6a71608b09645cd08ffe78
(cherry picked from commit 9d43f0d65682537fbedf39cdb15a4c280f5f0098)
Revert "Bypass the lockscreen when the hardware keyboard is slid out and security mode is 'none'"

This causes issues, documented in CYAN-5567.

This reverts commit c12204450f41eb3a6175b5fae7f1a853c059c6eb.

Change-Id: Ic9478eadbfa830e869007dad17983bd33c0ac6d6
(cherry picked from commit 39e0257a2890be658871301fc0091bd0e7756546)

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java