Base: fix icon overflowing with centre clock

Based on @maxwen commits
1 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
2 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
3 - https://github.com/maxwen/frameworks_base/commit/b5f7820e50fd03522b5462777779a4520594c796

All credits goes to him.

Change-Id: I86dd9b133adc917d8590a7b3c28abd30ccea48f4
server: Handle broadcast intent and receiver

Ensure the receivers of broadcast intent is not launched before boot
completion by adding an intent flag, since connectivity events can
happen before boot has completed.

Change-Id: Id6fc9e34c89d947d768def38e5c5bb0df54a3a7b
Release wakelocks acquired by SyncManager

Release the wakelocks internally acquired by SyncManager to improve
power performance.

Change-Id: I6d9663292cb4471d92ed9132beb7ed1ba2e8128f
CRs-Fixed: 585825
Quicksettings: Few misc adjustements and fixes.

* Fix sleep time tile label on clean flash boot, was showing unknown till you set it in settings.
  Initialize screen timeout with default 30 seconds (wrongly initialized with 0 that is never compared).
* Use switch statement (better performance wise).
* Bit cleanup for wifi ap tile, useless resources reload.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Merge remote-tracking branch 'PA-base/kitkat' into kitkat-remix
[1/2] Gesture Anywhere

When enabled a user can activate the gesture anywhere view by touching
the designated trigger area.  If a gesture is recognized as one the user
has created and assigned to an action, that action will be performed.
Since this is part of the system UI and implemented as an overlay, it
will be available and usable system wide, with the exception of the
keyguard for obvious reasons.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
libaudioeffect_jni GREF leak fix

- excessive jni reference in AudioEffects
- global references created during native setup are not deleted
- global references are dleted in setup failure and during native releases

Changeset 2:
    -fixed whitespace, and rebased on jb42

Modifications, 1 tab == 4 spaces

Change-Id: I3ff54cc3b0c5394e978421dad3a7a257551f776e
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
Fix for Lock before unlock (read description)
- Using lock before unlock combined with patterm pin or password when try to unlock using any app or activity instead of normal lock (padlock shortcut) the unlock process only work if we enter the method two times and not in first attempt.

Change-Id: I60c0ec22d7b0278fd0e3b69c42fad6e2afdd5b92
QS: Fix handling of dialer checks

Fixes an issue with network tile. Previously, if SystemUI crashed the network
mode tile would be disabled per the dialer check because constructor initialized
mUsesAospDialer to false.  Now we initialize it to the value of the system setting
and set it to 0 on shutdown.

Corrects display of disabled when the user has google dialer installed. Before,
the rssiTile would default to unknown.  Now it checks if google dialer is being
used and properly sets the disabled string.

PS1: Initial implement
PS2: Fix indents
PS3: Refactor content resolver
PS4: Update commit message
PS5: Style fixes

Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Change-Id: I75cd767667924762fa432c29192674ce9c402c20
Merge "QS: Fix handling of dialer checks" into kitkat
Merge remote-tracking branch 'PA-base/kitkat' into kitkat-remix
Added sahlnaskh arabic font to Android.mk & fonts.mk files to actually get the font installed

Change-Id: I5f954b3f0d3a53495077389d976804883e4e838a
SettingsProvider: allow TETHER_DUN_REQUIRED to be overwritten

Allow overwriting of the default TETHER_DUN_REQUIRED value with
the build property 'ro.telephony.tetherdunrequired'

Recognized values are:
0 for not enforced
1 for enforced
2 for undefined (default; behaves as enforced)

Change-Id: I77c87230b54418ee5c385e5a7effd304a9743990
[1/2] base: Add ADB Paranoia mode

ADB Paranoia mode will reboot the device in the event of the following:

- The device is locked
- An ADB master device is connected
- ADB Paranoia mode is enabled in Development menu

Used in conjunction with device encryption, this should offer decent
protection against malicious adversaries with basic physical access to
your device. This will not help if your device has hardware level
exploits that can be used without rebooting the device, and without
connecting ADB.

Change-Id: I339d0bdf08ebe2d2c9096718d234ea7d396f3a98
Keyguard: Ensure that a widget and page is attached before attaching the ChallengeLayout.OnBouncerStateChangedListener

otherwise it can result in a NPE due that the page was not loaded. Especially on low end
devices this can happen (see zoomOutToBouncer() method @KeyguardWidgetPager)

Change-Id: I7e940eb2fdf885f158f4c5ff2872ebafcda76da0

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
Replace default wallpaper with the new one
Merge remote-tracking branch 'upstream/kitkat-remix' into kitkat-remix

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java