diff options
author | Stanley Tng <stng@google.com> | 2018-06-29 14:05:04 -0700 |
---|---|---|
committer | Stanley Tng <stng@google.com> | 2018-09-13 13:46:39 -0700 |
commit | 412cbec0c57647b955747e9b55bce071870b9a1e (patch) | |
tree | 871f91d102461fa032945e2a4ea1bd8003d144f7 /framework/java/android/bluetooth/BluetoothSocket.java | |
parent | 80915c203f1923da325bfff74457244e270c24d5 (diff) |
Unhide the LE CoC APIs
Expose the LE Connection-oriented Channels APIs for applications to use.
Test: Run the SL4A ACTS test: BleCocTest
Bug: 70683224
Change-Id: I68128bc7154966ec065091c973351f8892da9b4d
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothSocket.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothSocket.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothSocket.java b/framework/java/android/bluetooth/BluetoothSocket.java index 780f896139..3a1e2f58c9 100644 --- a/framework/java/android/bluetooth/BluetoothSocket.java +++ b/framework/java/android/bluetooth/BluetoothSocket.java @@ -667,6 +667,10 @@ public final class BluetoothSocket implements Closeable { * @return one of {@link #TYPE_RFCOMM}, {@link #TYPE_SCO} or {@link #TYPE_L2CAP} */ public int getConnectionType() { + if (mType == TYPE_L2CAP_LE) { + // Treat the LE CoC to be the same type as L2CAP. + return TYPE_L2CAP; + } return mType; } |