ActiveDisplay: don't get call status while checking for valid notifications

isValidNotification(...) is called at times other than when we're checking
to see if we need to show active display so lets check for call status at that
time only

Change-Id: I59177f538cee572f9591af89d175b36530041944
ActiveDisplay: revert to keyguard if all notifications are dismissed

Change-Id: I973b9b596b4391c40734b4a0ffbb3ec0fcf31153
Fix NPE on tablets for notification navbar action

QS side doesn't ever add the button it looks for to determine shade state
because it doesnt' have "flip" settings

Change-Id: If47bb6505616b5d98f3eebf656da1435f29f7cb2
FB: DoubleTab2Sleep stopped working propperly
after a boot or sometime when you changed something on statusbar or quicksettings, DT2S stopped working
You have to uncheck and then check the checkbox for it in settings to make it work again
This is because the code would only be executed when the setting actually has changed (OnChange) but not on boot or on RebuildStatusBar

PS:
Set mDoubleTapToWake back to false so it will be sure the GestureDetector will be created
PS3: only add a gesture listener if it's null and mDoubleTab... -> mDoubleTap...  -PrimeDirective

Change-Id: I44f5f1185d8a8ead4b7678c1ebec420f05a16e85
Merge "FB: DoubleTab2Sleep stopped working propperly after a boot or sometime when you changed something on statusbar or quicksettings, DT2S stopped working You have to uncheck and then check the checkbox for it in settings to make it work again This is because the code would only be executed when the setting actually has changed (OnChange) but not on boot or on RebuildStatusBar" into kk44
Fix build error: Needed for cm merges from InCallUI & services/Telephony

Global Settings (MSIM): Add global settings for naming sim cards

Change-Id: Ibbd0d48042a92f82241a4ccaee12a81ca13ccdb4
Merge "Fix build error: Needed for cm merges from InCallUI & services/Telephony" into kk44
WIFI: Fix wimax teardown when wifi connected

Due to patch:
https://github.com/CyanogenMod/android_frameworks_base/commit/f769f4cbc2aaac8d9d49f9ff79a6fe0affc4ff6e

Change-Id: I18e5ced62c8e4976f7a6835ba8c593930dac0586
SystemUI: Fix crash during notification/theme change

Fixes crashing that could occur when a notification is created
during a theme change. Entries were attempting to be added
to views which did not have a layout pass yet, causing it to fail.

When a theme change occurs, the fix is to halt the ticker and command queue
until a layout occurs.

BUGDUMP-151925

Change-Id: Ic19d26178df673a1d52981a8617415e6fbcb219d
core: Improve strings

* Follow the guidelines

Change-Id: If4dbfe00036d65dc56b7852ec5ddbfbe72c921a0

Conflicts:

	core/res/res/values/cm_strings.xml
keyguard: fix chopped layout on hdpi msim devices

* adapted from commit fa06992ab7e49fe1e056787dd281384d92290be1

Change-Id: I23ebb212c96e3ef8aecebb43760cbea7d441b1fd
Flash notifications [1/3]

Trigger the camera LED when a notification is received

TO DO:
add customizable flash patterns ? per package ? meh...

Change-Id: I738b7dab5f0aa942023d812776f0c8a62ea5e8d9
Revert "Flash notifications [1/3]"

... even the white space is wrong.

Might have been pushed accidentally.

This reverts commit e1865f1762710ba86774445885ed9087f4e13ad6.

Change-Id: Ia90b40e087cc3ead3525b98ba446913cdb3883da