Lines Matching defs:is

11  * distributed under the License is distributed on an "AS IS" BASIS,
41 * <p>The interface for Bluetooth Sockets is similar to that of TCP sockets:
44 * socket. When a connection is accepted by the {@link BluetoothServerSocket},
49 * <p>The most common type of Bluetooth socket is RFCOMM, which is the type
50 * supported by the Android APIs. RFCOMM is a connection-oriented, streaming
51 * transport over Bluetooth. It is also known as the Serial Port Profile (SPP).
57 * This call will block until a connection is established or the connection
63 * <p>Once the socket is connected, whether initiated as a client or accepted
69 * <p>{@link BluetoothSocket} is thread
239 * Get the remote device this socket is connecting, or connected, to.
248 * <p>The input stream will be returned even if the socket is not yet
250 * the associated socket is connected.
259 * <p>The output stream will be returned even if the socket is not yet
261 * the associated socket is connected.
269 * Get the connection status of this socket, ie, whether there is an active connection with
284 * <p>This method will block until a connection is made or the connection
286 * is now connected.
289 * is in progress. Device discovery is a heavyweight procedure on the
292 * discovery. Discovery is not managed by the Activity,
293 * but is run as a system service, so an application should always call
300 if (mDevice == null) throw new IOException("Connect is called on null device");
305 if (bluetoothProxy == null) throw new IOException("Bluetooth is off");
343 Log.e(TAG, "bindListen fail, reason: bluetooth is off");
388 if (mSocketState != SocketState.LISTENING) throw new IOException("bt socket is not in listen state");
399 throw new IOException("bt socket is not in listen state");
425 // There is no good way to confirm since the entire process is asynchronous anyway
467 private String waitSocketSignal(InputStream is) throws IOException {
469 int ret = readAll(is, sig);
487 private int readAll(InputStream is, byte[] b) throws IOException {
490 int ret = is.read(b, b.length - left, left);
501 private int readInt(InputStream is) throws IOException {
503 int ret = readAll(is, ibytes);