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
PBAP: Strip unwanted braces from telephone number.

This patch removes unwanted spaces from the telephone
number on vcard entry formation. Handsfree call
was failing because of these characters due to
different BTIF handling in Bluedroid.

Change-Id: I2d63967059a9cb97f214b370fac17234f6e58f55
CRs-fixed: 533935
Bluetooth: Retry pairing attempt again for pagetimeout

This is to add logic to retry pairing if it fails due to page timeout
or remote down. This allows to avoid lots of pairing failures if DUT
tries pairing when remote is trying to connect to previously connected
device.

Change-Id: Ic456406704846816c062923f8782b55e9fa1b96f
CRs-Fixed: 545387
Revert "Bluetooth: Connect only A2dp Sink devices."

Some devices support A2dp sink but they have not set
rendering bit in COD.Instead of COD use UUID to connect
A2dp sink devices.
This reverts commit 661d7e5637665c0d9d0bae6286dccb29914b8fc7.

Change-Id: Iba07b811ca859642c3cb75ed490f71f050811ad4
Properly update profile connection state.

When DUT is toggled between various paired Headsets Connection
state is not updated properly in some scenarios.This is causing
Bluetooth icon to be in connected state even when no Headsets are
connected.Also make sure connected,connecting,disconnecting devices
count is never negative.

Change-Id: Icb1a7215ff6d9491afbb5f7f203ca0a2c6b7f43a
CRs-Fixed: 532783
Merge "Revert "Bluetooth: Connect only A2dp Sink devices.""
Bluetooth:Handling Connect request in AudioOn state.

While in active call, connected to the first BT HS, when we
initiate connection to a second BT HS, connection was not
happening because of which the call audio was routing to the
speaker. Added Connect message handling in the AudioOn state.

Change-Id: I3d9f4265aa2cfddf141ac60f7da82fabfd4bc383
CRs-Fixed: 534731
Merge "PBAP: Strip unwanted braces from telephone number."
Merge "Properly update profile connection state."
Merge "Bluetooth: Retry pairing attempt again for pagetimeout"
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
Update UI properly in Connection race Conditions.

Broadcast connection state of incoming device in pending
state and update UI for disconnection of outgoing connection.

Change-Id: Ibd80fc7010613887df74fb1903b16de73c77939a
CRs-Fixed: 531637
Merge "Bluetooth:Handling Connect request in AudioOn state."
Merge "Update UI properly in Connection race Conditions."
Merge "Bluetooth: Update the Bluetooth state in STOP_TIMEOUT case"
Merge "Bluetooth:Send Connection request after Connection Failure."
Bluetooth: IT Translation

    PS2-3: fix typos

Change-Id: I951d075c5f5c6f2f826a506e4ae72a94c156f48c
Bluetooth: PT-BR update translations

Change-Id: Iaee7592c1e3b4bdb2ec1481e6beb5bc9feb16a59
Bluetooth: RU translation

PS1: updated russian translation

Change-Id: Ib5f7bc6f4a6506037a3dc3903587653877dfd5df
Bluetooth: EL translations

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ief059e1aaeed188c27683142d79a21db5e40d44d