docs: public void write(byte[] out) {
          // Create temporary object
          ConnectedThread r;
          // Synchronize a copy of the ConnectedThread
          synchronized (this) {
              if (mState != BluetoothState.STATE_CONNECTED) return;
              r = mConnectedThread;
          }
          // Perform the write unsynchronized
          r.write(out);
      }