FW: Fix torch state for QS/Power Widget

Also add long press action for torch toggle.
QuickSettings: FavContact & UserTile: Open full contact page

QuickContact popup can only be used for phoning/messaging/emailing,
which doesn't make sense when you're opening your own contact.

Opening the full contact directly makes it easier to beam or share
with other (one less click)

Also added this change to include FavContact

Change-Id: Ifd31b8c14ccb9f07e10e5bb2079bbc2f1296414b
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Set foreground priority for shutdown receivers.

The broadcast of ACTION_SHUTDOWN has a timeout of 10 seconds. To
reduce the risk of hitting the timeout and speeding up the
shutdown sequence in ShutdownThread we set the priority of the
BroadcastReceivers to FLAG_RECEIVER_FOREGROUND.

We have seen that this change reduces the shutdown time when
the system is under heavy load.

Change-Id: I22cbf6af8cf6fc4bdefaa1c3da8a7eed7e7b7674
systemui: Add CONNECTIVITY_INTERNAL permission

 * SystemUI needs to be able to list interfaces if tethering is in use
   and we ask for a second tethering path to be set up (BT+USB, etc).
 * Add permission to stop exceptions in the framework and enable
   tethering thru multiple paths.

Change-Id: If7a65c31557dc2f0451f0612fb109f61e8056368
Halo fix for hdpi/mdpi

We need to merge these ASAP!

https://github.com/ParanoidAndroid/android_frameworks_base/commit/a4c65e878fbc3c37d6b18c1a9e07308de04c8311

https://github.com/ParanoidAndroid/android_frameworks_base/commit/4a8c02330602a56d58f790165af0379ad2b1cbd9

https://github.com/ParanoidAndroid/android_frameworks_base/commit/c3c4706f290fc96ac817337612a4f5605be55371
 Fixed SystemUI crash when disable GPU acceleration

The designated logic should switch to SW Canvas render if OpenGL-ES 2.0
is not available when GPU 3D core is disabled or non-existed.

Change-Id: Ie66799bc9e1113a4b09adbb09b77021622a08bc4
Signed-off-by: Xianzhong <b07117@freescale.com>
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
HALO bugfixes

1. some icons were overblown
2. tasking meant having your thumb on the speechbubbles

Change-Id: I04637a5ae96c3d9fa30188a320e13989c48f7f0c
Halo: Fix icon position in tablet status bar
FLAG_ACTIVITY_NEW_TASK re-added to floating windows

ActivityStack modified to not cancel results if window is floating and "new".

Change-Id: I45f3dcc816092daa4192be91828592a0b2b2ac59
PrivacyGuard: New icons close to AOSP style
HALO Size (1/2)

Change-Id: I2780dfee66b0b80b57c62b83c40609104fe3c279
Merge pull request #19 from MNT-Mantas/jb-mr1

Halo fix for hdpi/mdpi
Always prevent wake on home keypress when kl config does not contain WAKE

http://review.cyanogenmod.org/#/c/43124/ introduced a change in behaviour
where the home key could wake a device even if the kl config lacked
the WAKE option.  This fix restores the original behaviour.

Change-Id: I56fc23244957a5738823b5e59f0a719670b41f6d
FW: Set size for custom bg as well. (HALO)
Merge remote-tracking branch 'upstream/jb-mr1' into jb-mr1

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