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
Freeing frame map

FileMap memory is never released until application exit

Release it now as the texture is already loaded and the memory
used for the packed resource can be released.

Change-Id: Id08a1e466337b3a0179684eb6a444e18147ee343
Revert "Set some GC parameters only for dalvik"

This reverts commit de4539603e165f8df0d23a21b6a285213d7f712e.

Change-Id: I2fd71b8b8b6e72cdbe929bfc2afe275cb46e6c29
QS: Add TD-SCDMA support to the LTE toggle tile

Recognize TD-SDCDMA LTE modes as valid LTE to light up the tile.

While I'm at it, remove the network checks from the actual toggle
action, since TelephonyManager now ignores the boolean argument
and always toggles, making the checks pointless.

Change-Id: I8e0020def1f091a6fef9dce4d9700478a826e9a3
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 branch 'cm-11.0' of https://github.com/CyanogenMod/android_frameworks_base into cm-11.0