Bluetooth: Add trust device feature.

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

Change-Id: Iee491db2e5b6090761a4f42467ac36ed53923fc4
CRs-fixed: 523135
MAP: Implementation of MAP Client role on Bluedroid.

Implementation changes to support Message Access Profile
client  role on Bluedroid stack.

CRs-fixed: 530274

Change-Id: I209909a2b18e43c7931571526b983453795f6c6b
Bluetooth: Update the Bluetooth state in STOP_TIMEOUT case

Bluetooth adapter state is getting updated with turn off
but the same intent is not getting broad casted to the
application, so it hanged in turning off state.

Broadcasting the TRUN_OFF intent in STOP_TIMEOUT case.

CRs-fixed: 534372
Change-Id: I4f05a946e56a87ff62c6e505b6bfbfbfe7c8c951
Bluetooth:Send Connection request after Connection Failure.

When one of profile is un-checked from setting sub-menu and initial
connection has failed then try to re-connect selected profile.

Change-Id: I67bf658b5b9ce556fc0d54030989e6033651051b
CRs-Fixed: 543050

Conflicts:
	src/com/android/bluetooth/btservice/AdapterService.java
Bluetooth: Add Get/Set socket option to the Blueooth Socket

Added Get/Set socket option for the Bluetooth socket.These APIs
will be called from the frameworks.

Change-Id: I5ceef23d49e382089f479e8d618eec1dbc6ed5fb

Conflicts:
	jni/com_android_bluetooth_btservice_AdapterService.cpp
	src/com/android/bluetooth/btservice/AdapterService.java
Implement getRemoteType of IBluetooth.aidl

Bring the device type from hal to app api
bug 8529188

Change-Id: Id4a9837afc7234cb50ab6abf73da4bdc010db392
[2/3]Bluetooth: add "Accept all files" option for incoming files via Bluetooth

  This patch will let the OBEX server read "Accept all files" option
before it starts to check mime-type whitelist.
  If not enabled,the check process will go on as usual.
  If enabled,mime-type checking will be skipped.

Change-Id: I056f88246911da0f47da9043187ff3f959315dce

Conflicts:
	src/com/android/bluetooth/opp/BluetoothOppObexServerSession.java
BT: HFP: Set VR flags to false when HS disconnects

When a HS is disconnected while in VR session and then
reconnected again, VR attempt from HS fails as VR flags
mVoiceRecognitionStarted and mWaitingForVoiceRecognition
were not reset to false when HS disconnected.

CRs-Fixed: 623255
Change-Id: I008f01393a5529f63cd8392401e1402a9afe70a8
Bluetooth: Workaround for aapt warnings

Change-Id: I42115573a9226aea9cbf4a668770fef852d2a2cc
Bluetooth: HID : Add support for Set Idle and Get Idle commands

This patch adds support for Get Idle and Set Idle command handling
in jni and HidService which will be used to provide interface for
sending thse commands to HID Remote device.

Change-Id: I066d47c022905a39c11d365a9d26d128f94fe2f6
CRs-Fixed: 522511
Fix build