Bluetooth: bttestapp: Avoid killing the service in suspend mode

Change will avoid calling onDestroy when device went to suspend
or turn off the screen. When display is turned off orientation will
change internally if app's default orientation is landscape.
Orientation change will call onDestroy if configchanges in manifest
will not support orientaton.

CRs-Fixed: 554801
Change-Id: I12925e7b3c1b2b068f6c7c57a60cf84b4db512f2
MAP: Reset MNS waiting flag for RFCOMM connection failure.

Clear MNS waiting flag to indicate RFCOMM connection establishing
in progress when RfComm channel connection fails.

Change-Id: I5ab6a7a10f0db427760c39a9fdd5d88707440a11
CRs-fixed: 573659
Merge "Bluetooth: bttestapp: Avoid killing the service in suspend mode"
Merge "MAP: Reset MNS waiting flag for RFCOMM connection failure."
Bluetooth: HID: Add test app for HID Device Role

This patch adds HID Device Test application for testing Keyboard and Mouse
Role supported by Phone.

Change-Id: Iad428d761a4235c9a8a216a3202af9b456d652e9
CRs-Fixed: 573086
BTTestApp: Correct GetFolderListingSize sucess and toast text.

Correction for GetFolderListingSize sucess and error toast
display messages text.

Change-Id: I123c827e6af83ab63ea0af9ca70b750a35726ffe
CRs-fixed: 574470
Merge "Bluetooth: HID: Add test app for HID Device Role"
Bluetooth: FTP: Acquire wakelocks only when required

This patch updates the wakelock acquiring logic in FTP Server only when
OBEX transaction is being done by FTP Client. Without this patch it was
observed that wakelock was acquired during obex server connection
establishment and was only released when connection was disconnected
which was resulting in extra power consumption when FTP connection was
idle

Change-Id: Iedc72cfdb54bb7a84914c0187063ffccfba25bca
CRs-Fixed: 581718
FTP: Handle null pointer exception for socket accept thread synchronize.

Handle Null pointer exception from socket accept thread to
get synchronize with main thread reported while Monkey tests.

Change-Id: I70580348937ecf96db60527354b8dc1390164f39
CRs-fixed: 571162
MAP: Handle MAP Email setMessageStatus features through Intents.

Perform MAP Email setMessage status operations for READ/UNREAD
and DELETE/UNDELETE through INTENTS to EMAIL App instead of
direct database operations.

Change-Id: I346a76e81d52a2cc1c1a6bea3aca35e2a3e81dc9
CRs-fixed: 534986
Bluetooth: FTP: Fix issue in set path to root folder

This patch fixes issue in setting path to root folder. Without
this patch it was not possible to set path to root folder.

CRs-Fixed: 580279
Change-Id: I751a7058c214cbaac2320e48de11c6676a96c5b1
Merge "BTTestApp: Correct GetFolderListingSize sucess and toast text."
Merge "MAP: Handle MAP Email setMessageStatus features through Intents."
Merge "Bluetooth: FTP: Acquire wakelocks only when required"
Merge "Bluetooth: FTP: Fix issue in set path to root folder"
Merge "FTP: Handle null pointer exception for socket accept thread synchronize."
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"