Fix for framework reboot on format of SD card

MountService is not aware of /storage/emulated/legacy path which is
causing the issue on ExternalStorageFormatter service. We are getting
the a list of non-emulated SD cards and format the first one .

Change-Id: Iba1a9f6e40499f7f6fb095a5ee4e711b02bed439
CRs-fixed: 489037
(cherry picked from commit 06dc68f1fd054f85cc32354a2ea11ff9c34b1721)
MAP: Add support for Connection ID

This patch adds support for connection identifier used while
sending put requests to MNS.

Change-Id: I016940d2ca023fc7d2e3da1c63e338e1528be147
CRs-Fixed: 518395
(cherry picked from commit a12714ef139bdf41bea9e81ea5465a04c12fb910)
Bluetooth: Add trust device feature.

Add set trust feature where the remote device is marked
as a trusted device for subsequent connection.

CRs-fixed: 523135

Change-Id: I9bde4d7dfe07d9d63b58a661ed2413f45501bd7b
(cherry picked from commit 812b7b57de8414e97786f92748a40eaada3c2fb3)
Fix requery behaviour of MemoryCursor.

As we can't restore the contents of the cursor window, we need to keep
it on deactivation so we can restore it on requery().

Change-Id: I06f688bbe9120c307bdc3ddbc3833416becdec82

Conflicts:
	core/java/android/database/MemoryCursor.java

(cherry picked from commit 4601baa8f54394ea58299c0dc0f3482342bef2e1)
Make sure VolumePanel is themeable

Had to change this a while back when we didnt have Theme Engine yet

Change-Id: I1bb6702026b15b02b1aa335fe6bca1bb386ee7f4
(cherry picked from commit 112123f967b61b817c2f1c164677db94d7515dcc)