diff options
author | Andre Eisenbach <eisenbach@google.com> | 2015-05-04 13:48:50 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-05-04 21:56:17 +0000 |
commit | f455986a45328614c8dd07a4d60a30b9ddc3d994 (patch) | |
tree | 372fbedcf3678936aefc43e3a7916a6bf68029f4 /core/java/android/bluetooth | |
parent | c81af1ca7838f79ecc39fe0a9bf269880fa515e5 (diff) | |
download | frameworks_base-f455986a45328614c8dd07a4d60a30b9ddc3d994.zip frameworks_base-f455986a45328614c8dd07a4d60a30b9ddc3d994.tar.gz frameworks_base-f455986a45328614c8dd07a4d60a30b9ddc3d994.tar.bz2 |
Add documentation for BluetoothSocket.getConnectionType()
Bug: 20824264
Change-Id: I58aa8f5bbe08ddb252f01f4ad187ae8741963f0b
Diffstat (limited to 'core/java/android/bluetooth')
-rw-r--r-- | core/java/android/bluetooth/BluetoothSocket.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/core/java/android/bluetooth/BluetoothSocket.java b/core/java/android/bluetooth/BluetoothSocket.java index 5702d11..5cf2300 100644 --- a/core/java/android/bluetooth/BluetoothSocket.java +++ b/core/java/android/bluetooth/BluetoothSocket.java @@ -91,9 +91,13 @@ public final class BluetoothSocket implements Closeable { public static final int MAX_RFCOMM_CHANNEL = 30; /*package*/ static final int MAX_L2CAP_PACKAGE_SIZE = 0xFFFF; - /** Keep TYPE_ fields in sync with BluetoothSocket.cpp */ + /** RFCOMM socket */ public static final int TYPE_RFCOMM = 1; + + /** SCO socket */ public static final int TYPE_SCO = 2; + + /** L2CAP socket */ public static final int TYPE_L2CAP = 3; /*package*/ static final int EBADFD = 77; @@ -578,8 +582,8 @@ public final class BluetoothSocket implements Closeable { } /** - * Get the type of the underlying connection - * @return one of TYPE_ + * Get the type of the underlying connection. + * @return one of {@link #TYPE_RFCOMM}, {@link #TYPE_SCO} or {@link #TYPE_L2CAP} */ public int getConnectionType() { return mType; |