Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 621b790d authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am f455986a: Add documentation for BluetoothSocket.getConnectionType()

* commit 'f455986a':
  Add documentation for BluetoothSocket.getConnectionType()
parents 9066d6d7 f455986a
Loading
Loading
Loading
Loading
+7 −3
Original line number Original line Diff line number Diff line
@@ -91,9 +91,13 @@ public final class BluetoothSocket implements Closeable {
    public static final int MAX_RFCOMM_CHANNEL = 30;
    public static final int MAX_RFCOMM_CHANNEL = 30;
    /*package*/ static final int MAX_L2CAP_PACKAGE_SIZE = 0xFFFF;
    /*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;
    public static final int TYPE_RFCOMM = 1;

    /** SCO socket */
    public static final int TYPE_SCO = 2;
    public static final int TYPE_SCO = 2;

    /** L2CAP socket */
    public static final int TYPE_L2CAP = 3;
    public static final int TYPE_L2CAP = 3;


    /*package*/ static final int EBADFD = 77;
    /*package*/ static final int EBADFD = 77;
@@ -578,8 +582,8 @@ public final class BluetoothSocket implements Closeable {
    }
    }


    /**
    /**
     * Get the type of the underlying connection
     * Get the type of the underlying connection.
     * @return one of TYPE_
     * @return one of {@link #TYPE_RFCOMM}, {@link #TYPE_SCO} or {@link #TYPE_L2CAP}
     */
     */
    public int getConnectionType() {
    public int getConnectionType() {
        return mType;
        return mType;