add back alarm as trusted overlay (temporary)

Change-Id: I0e9708190688eb599ba02e481fbfb14adb19078c
fix build, caused by typo in previous commit

Change-Id: I27955cdb346d5a6abc728c3b4f2de6b153d32441
optional encryption password sync

Option to use 2 different tokens for encryption and locking.
Allows convenient usage and strong encryption at the same time.

Inspired by reading next:
https://santoku-linux.com/howto/mobile-forensics/how-to-brute-force-android-encryption

Related discussion:
http://code.google.com/p/android/issues/detail?id=29468

Change-Id: I66dd920b120c6964fa1b3786cd13ea32cf663893

Conflicts:

	core/java/android/provider/Settings.java
	core/java/com/android/internal/widget/LockSettingsService.java
Remove useless/repetitive code

fixScale(float) method has been extracted from the code but the original
code has been kept in place. Because of this, the animation scale is
"fixed" twice which is not necessary. This patch, simply call
fixScale(float) once and stores the result of it in the scale variable.

Change-Id: I50aeacbc2c13ebbf447506ae4309d50c0e313837
HALO: fix the integer division bug

The newHeight is calculated by an integer division, which leads to an
ugly bug. E.g. a 95x96 image will get a newHeight of 0 because
(95 / 96 * 113) equals to 0. This will lead to a SystemUI FC.

Fix it by multipling first and dividing afterwards.

Change-Id: I7ded7fa9c9f667e2c6ba9d90ddd16a494b6faedc