Bluetooth: Add support for LE proximity profile

This Enables Proximity service and pxp monitor test application

Change-Id: I7be72defcae8c1d926e55aa29c744d7e64425f93
CRs-fixed: 580130
Bluetooth: Cleaning up sap service object to avoid serviceRecord leaks

A case where script is running to do BT ON/OFF 2000 times. Sap service
class object is leaked while turning OFF BT, when it is referenced
(Directly OR Indirectly due to its member variables). So Garbage
Collector doesn't collect class object which is referenced. Setting
NULL for service class object & service connection, while cleaning up
those variable to mark as weak reference. Any objects memory is
immediately claimed by GC, which are marked as weak Reference.

Change-Id: Ia5bb1f9c5c1798f7894eb33d73586728068ac837
CRs-Fixed: 591180
SAP: Add padding bytes properly while checking parameters

This change calculates and add the padding bytes only
when the parameter length is not a multiple of 4 as
per the specification.

Change-Id: Ida5e43715f7ce3e4048e52aa026b0f3fb67c294b
Bluetooth-FTP: Handle invalid STATE_TURNING_OFF intent during Monkey run

Issue is seen only during the Monkey operations and not
under normal operations possibly due to race in the
Bluetooth OFF Process and dereferencing Socket resource.

This change will Handle invalid STATE_TURNING_OFF intent occurrence
in FTP service during Monkey run. Otherwise, VM will crash due to
uncaught exception.

CRs-Fixed: 571750
Change-Id: I7df6ea396cd87809fc727bf938e4078e31fd0aba
Bluetooth: Disable MAP Server profile

Disable QCOM specific MAP1.0 Server implementation
from BluetoothExt. Mark "android:enabled" attribute
for MAP Server components as false to disable QCOM
specific MAP server profile features.

Change-Id: Icac08639e53a2f705a025d679ff020f324d07e79
CRs-Fixed: 587347
Merge "SAP: Add padding bytes properly while checking parameters"
Merge "Bluetooth: Cleaning up sap service object to avoid serviceRecord leaks"
Merge "Bluetooth-FTP: Handle invalid STATE_TURNING_OFF intent during Monkey run"
Merge "Bluetooth: Disable MAP Server profile"
HID-C: Add missing implementation for get report handling

This patch adds the missing implementation for responding to GET Report
requests from HID Host for different report types. For Input report,
handling is added for sending default values if report id is not present,
for output reports, reports are now stored and error is reported if report
id is invalid otherwise default values are returned.

Change-Id: I3bdc8538bfce760959166f9ecaf6582b750f5381
CRs-Fixed: 593100
SAP: Handle ACL_DISCONNECT from the client

This change will handle ACL_DISCONNECT coming
from the client and authorization is not pending anymore.

Change-Id: I92de8edcb5c34a1d2cbf3c2b2e4c5510216f3082
CRs-Fixed: 589990
Merge "HID-C: Add missing implementation for get report handling"
Merge "SAP: Handle ACL_DISCONNECT from the client"
Merge "Bluetooth: Add support for LE proximity profile"
Merge branch 'master' of git://codeaurora.org/platform/vendor/qcom-opensource/bluetooth into cm-11.0

Change-Id: Ieb3804f2315f3353c4523a7faa1cea481ddd5c11