GlobalActions: Set the initial status of airplane mode toggle

Actually, the initial status of airplane mode toggle is set to false
when the power menu dialog is initialized.
This causes an issue if you set airplane mode and then reboot.
After the reboot, the dialog displays the wrong airplane mode status,
eg. "Airplane mode is not active", and if you toggle that option, a wrong
intent is sent again to put ON the airplane mode, instead of OFF, the
toggle (that is in transition state) will be set disabled.

This commit fixes this issue.

Change-Id: Id30355c1e090355645c437086c79ab59093c27a8
fix mobile data and bluetooth ribbon tiles

Change-Id: Ic6640445081b0fbda2ce80db1c8d06756df2d2d6
Merge "fix mobile data and bluetooth ribbon tiles" into kk44
Revert "Revert "[2/2] Framework/base: Configure headset hook""

Upon closer (any) examination, this was working as intended.

This reverts commit 3861877281e4469197f864e021d8d6b534bceb32.
BroadcastQueue: fix class typo of next receiver

nextReceiver should be cast to ResolveInfo
instead of ActivityInfo since it's ResolveInfo
that is pushed into List r.receivers.
Otherwise nextReceiver will always be null
as there is no ActivityInfo in r.receivers.

Signed-off-by: Leavitt Zhang <leavittz@nvidia.com>
Change-Id: Iea3a720e6d7296fedff318643a1b4f5b9fce900c
Share hardware capability info between QuickSettingsController instances

If these variables are going to be in the heap rather than on the stack (which, given the frequency with which they're used, wouldn't be the end of the world),
we may as well only do it once.

This will not have the problem introduced in http://vaniraosp.goo.im/#/c/9195/ and fixed in aa865ed because all of the values AND the boolean that keeps them from being re-retrieved and re-stored are static.

Change-Id: I0e83cd618822ce42df2c5b97d485c19e90ff2d77
Merge remote-tracking branch 'cm/cm-11.0' into HEAD

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Change-Id: Ia7b77076fe67d6c6edda9be2b08b4664f9b55011
Merge remote-tracking branch 'vanir/kk44' into kk44