Display BTH connected status correctly

This patch removes incorrect condition.
(to not use LocalBluetoothProfile#isPreferred())
This condition uses the priority that already disconnected profile,
so this codition always returns false.

To verify this issue:
1. Turn on Bluetooth.
2. Pair and connect to BTH(A2DP/HFP)
3. The display now says "Connected"
3. Disconnect HFP profile
4. The display still says "Connected" but it should say "Connected (no phone)"

Change-Id: I9e2bfa6d23bf1be7587c9556b4b05459d02c4817
Signed-off-by: houst0nn <houstonn@gmail.com>
HTML injection fix for bluetooth pairing, issue 65946

During bluetooth pairing, HTML injection is possible via the device name displayed to the user. This escapes the device name, before creating HTML from it, so it will preserve things like < and > but will not affect rendering of HTML

Bug: 12976386
Change-Id: I8a02d3be8c1a779dc9ed1c9ef8083a1159ab3f2b
Signed-off-by: houst0nn <houstonn@gmail.com>
Bluetooth: GAP: Cancel the pairing notification on bond state change

Cancel the pairing notification on bond state change happens from
BOND_BONDING to BOND_NONE.  Otherwise it will present in the
notification area until it gets cancelled by opening it and press
cancel on pairing dialog.

Change-Id: I96f673e29e612cd748165a1323a5b4a4276a843c
Signed-off-by: houst0nn <houstonn@gmail.com>
Merge "Bluetooth: GAP: Cancel the pairing notification on bond state change" into kitkat
Merge "HTML injection fix for bluetooth pairing, issue 65946" into kitkat
Merge remote-tracking branch 'PA/kitkat' into remix-staging

Conflicts:
	src/com/android/settings/bluetooth/BluetoothPairingDialog.java