Make the "hidden battery" still appear in QS

While the hidden battery indicator mode implemented in the Settings
application should only hide the indicator in the status bar, it also
happens to hide it inside the QS tile for the battery which in turn
leaves an ugly UI. This commit provides a workaround by specifying
in which cases the indicator is being used for QS and providing a
special case for that.

Change-Id: Iede5dedfc90343d5b9f768aefc4a53b2aa56a1da
DialogFragement: Add null pointer check for mDialog for protection

DialogFragement can be dissmissed just after the Dialog is
established. This will cause NullPointerException.

Add null pointer check for mDialog for protection

CRs-fixed: 549689

Change-Id: If57f81d03a8ec2906598363b681ea38806fb2a90
Merge "Make the "hidden battery" still appear in QS" into kitkat
Merge remote-tracking branch 'pa/kitkat' into one+
base: Implement updated CDMA signal strength values

Change-Id: I6dd5d95e52282b1686858134d89c09705bda435b
SystemUI: Make percentage appear for hidden batt

This commit makes the battery percentage appear in QS when the user
chooses the "hidden battery" option as the battery style. Prior to
this commit, the same battery style was used for the QS tile just
without the percentage indicator. This means no major changes are
being introduced but the usability is being improved as the user
can glance at the QS tile to see the exact percentage instead of
being forced to open the linked Settings page.

Fixes AOSPA-687.

Change-Id: I2131332f2639721f99e149d3add0eb2877b4debe
Merge "DialogFragement: Add null pointer check for mDialog for protection" into kitkat
NotifcationManagerService: Instant led test fix

missing conditional statement needed to complete CyanogenMod's Instant led test (http://review.cyanogenmod.org/#/c/57347/)

Signed-off-by: cj360 <ayunker551@gmail.com>
Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Change-Id: Ie93938087112685f324b9b856523b61792885251
Merge "server: make clat interface name public" into kitkat
Merge "Add CAP_BLOCK_SUSPEND Linux capability to system server" into kitkat
Merge "Reduce total number of background apps for low memory devices" into kitkat
Merge "frameworks/base: Update timelapse quality check" into kitkat
Merge "libmediaplayer: update MIME types to include DASH support" into kitkat
Merge "When mInputText isn't on focus, hide the soft keyboard" into kitkat
Merge "Make sure that items are visible" into kitkat
Merge "framework/base: Create surface based on the panel orientation." into kitkat
Merge "ChooseTypeAndAccountActivity: Fix the Null pointer Exception of monkey test" into kitkat
Merge "Bluetooth: Fix to avoid object leaks during BT OFF" into kitkat
Merge " Audio: SetForceUse config check in AudioService" into kitkat
Merge "Mms: Fix FC issue that when tapping contact icon many times" into kitkat