diff options
author | Eric Olsen <eolsen@android.com> | 2010-03-18 18:08:02 -0700 |
---|---|---|
committer | Eric Olsen <eolsen@android.com> | 2010-03-18 18:08:02 -0700 |
commit | 5e12aec16335dc3ae09d4cc8faa3e0deac5f2d31 (patch) | |
tree | b3d54adf19dde7a12f43134601f432ab120fafd4 /core/java/android/bluetooth | |
parent | db78bbc063ce15009aa70e62fa6883e33ae52f3a (diff) | |
download | frameworks_base-5e12aec16335dc3ae09d4cc8faa3e0deac5f2d31.zip frameworks_base-5e12aec16335dc3ae09d4cc8faa3e0deac5f2d31.tar.gz frameworks_base-5e12aec16335dc3ae09d4cc8faa3e0deac5f2d31.tar.bz2 |
Add the blacklist for the SCO connections
Change-Id: Ibfdfb21fb2f27d01d2b8bff48041398aa4308353
Signed-off-by: Eric Olsen <eolsen@android.com>
Diffstat (limited to 'core/java/android/bluetooth')
-rw-r--r-- | core/java/android/bluetooth/ScoSocket.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/bluetooth/ScoSocket.java b/core/java/android/bluetooth/ScoSocket.java index 116310a..b65a99a 100644 --- a/core/java/android/bluetooth/ScoSocket.java +++ b/core/java/android/bluetooth/ScoSocket.java @@ -86,14 +86,14 @@ public class ScoSocket { /** Connect this SCO socket to the given BT address. * Does not block. */ - public synchronized boolean connect(String address) { + public synchronized boolean connect(String address, String name) { if (DBG) log("connect() " + this); if (mState != STATE_READY) { if (DBG) log("connect(): Bad state"); return false; } acquireWakeLock(); - if (connectNative(address)) { + if (connectNative(address, name)) { mState = STATE_CONNECTING; return true; } else { @@ -102,7 +102,7 @@ public class ScoSocket { return false; } } - private native boolean connectNative(String address); + private native boolean connectNative(String address, String name); /** Accept incoming SCO connections. * Does not block. |