Lines Matching defs:BluetoothSocket
37 * it will return a new {@link BluetoothSocket} to manage the connection.
38 * On the client side, use a single {@link BluetoothSocket} to both initiate
45 * <p>To create a {@link BluetoothSocket} for connecting to a known device, use
52 * <p>To create a {@link BluetoothSocket} as a server (or "host"), see the
61 * <p>{@link BluetoothSocket} is thread
72 public final class BluetoothSocket implements Closeable {
73 private static final String TAG = "BluetoothSocket";
78 /** Keep TYPE_ fields in sync with BluetoothSocket.cpp */
107 * Construct a BluetoothSocket.
118 /*package*/ BluetoothSocket(int type, int fd, boolean auth, boolean encrypt,
120 if (type == BluetoothSocket.TYPE_RFCOMM && uuid == null && fd == -1) {
153 * Construct a BluetoothSocket from address. Used by native code.
163 private BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, String address,
283 /*package*/ BluetoothSocket accept(int timeout) throws IOException {
327 private native BluetoothSocket acceptNative(int timeout) throws IOException;