Bluetooth: FTP Server: New Folder Structure handling

This patch fixes the following issues in FTP Server code
   - Unable to create folders with name PHONE_MEMORY and EXTERNAL_MEMORY
     in any folders.
   - Browsing of Folders from Bluesoleil IVT leads to infinite loop.
   - No error code returned if folder creation fails.

CRs-Fixed: 587413, 587354, 588194
Change-Id: I3419320feb8973fea684a32ba2b385a48cb70cbe
SAP: Change USER_CONFIRM_TIMEOUT_VALUE to 30 secs

This patch increases the USER_CONFIRM_TIMEOUT_VALUE from
7 secs to 30 secs since 7secs is not enough time for the
user to open the notification box and acknowledge the
request.

CRs-Fixed: 586242
Change-Id: I41983609d2ebaea9bf516abe59959eca78125e03
Merge "SAP: Change USER_CONFIRM_TIMEOUT_VALUE to 30 secs"
Merge "Bluetooth: FTP Server: New Folder Structure handling"
Bluetooth: Add support for LE proximity profile

This Enables Proximity service and pxp monitor test application

Change-Id: I7be72defcae8c1d926e55aa29c744d7e64425f93
CRs-fixed: 580130
Supports Proximity profile using Low Power PXP APIs

Provides support for proximity profile implementation
using Low Power Proximity APIs.

Change-Id: Ibc80e498bb20c221333c161db7b8b08a24c28acb
CRs-fixed: 590419
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 "Supports Proximity profile using Low Power PXP APIs"