summaryrefslogtreecommitdiff
path: root/core/java/android/server/BluetoothEventLoop.java
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2009-12-02 17:28:38 -0800
committerJaikumar Ganesh <jaikumar@google.com>2009-12-03 11:35:37 -0800
commit3fbf7b62bb48b10316353087d09cc3720af00642 (patch)
tree33fd2191af1b9609ecf733d1d8af9153351b538f /core/java/android/server/BluetoothEventLoop.java
parent9b7dba936c24fa7959561ddf1a0c8ba4d2165782 (diff)
Add support for Car Dock.
Dr No: Eastham Bug: 2133530
Diffstat (limited to 'core/java/android/server/BluetoothEventLoop.java')
-rw-r--r--core/java/android/server/BluetoothEventLoop.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/server/BluetoothEventLoop.java b/core/java/android/server/BluetoothEventLoop.java
index cb3b6ee0ee01..e960491393bb 100644
--- a/core/java/android/server/BluetoothEventLoop.java
+++ b/core/java/android/server/BluetoothEventLoop.java
@@ -492,6 +492,14 @@ class BluetoothEventLoop {
mBluetoothService.getBondState().getPendingOutgoingBonding();
if (address.equals(pendingOutgoingAddress)) {
// we initiated the bonding
+
+ // Check if its a dock
+ if (mBluetoothService.isBluetoothDock(address)) {
+ String pin = mBluetoothService.getDockPin();
+ mBluetoothService.setPin(address, BluetoothDevice.convertPinToBytes(pin));
+ return;
+ }
+
BluetoothClass btClass = new BluetoothClass(mBluetoothService.getRemoteClass(address));
// try 0000 once if the device looks dumb