QuickSettings: fix long press on LTE Tile

Fixes network settings to work on single sim.

Based on http://review.cyanogenmod.org/#/c/62875/

Change-Id: I369bb0f99d8acdad27947e10823bc50bd75f4c28
Merge "QuickSettings: fix long press on LTE Tile" into cm-11.0
LocationServiceManager: Fix deadlock due to updateMonitoring.

AppOps can be blocked if askOperation is called from main thread.
This causes location service manager to block while updating monitor
information of all location update receivers.

Fix AppOps to report all askOperation calls from main thread.
Also fix location service manager to handle MODE_ASK.

Change-Id: I085f01e992f60456ad24921bf4ce508ece54e8a6
Bluetooth: Adds check to verify Bluetooth adapter state

This checks whether bluetooth is turned ON or not in
BLE stop scan process. BLE scan apis are called from applications
so need to check if BT adapter state is ON to avoid Bluetooth
crash

Change-Id: Ifc472be9b3f8baf978d6cdca2e4743a75b951635
CRs-Fixed: 634617
Bluetooth:Settings:Handled ACTION_STATE_CHANGED intent at boot time

BluetoothAdapter.ACTION_STATE_CHANGED intent is added to foreground
activity to handle BT sync issue with  Power widget at the boot time

Change-Id: Ib26cb4630c711587da789dc920aa66ded97a9a3b
CRs-Fixed: 576879
Send Media button events as foreground Intent

Send foreground intent for Media Button events to Music Player
so that there is no delay in handling these Intents after the
device is rebooted.

Change-Id: I952a8af93586cb96c0a9f6dc910bfb49287f4b9a
CRs-fixed: 611219
Revert "Freeing frame map"

* This is causing a page fault on some devices.

This reverts commit ebbacb00e894ce3737bf0e194d27c557dcebdf9a.

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