code: public BluetoothSocket deviceConnected(BluetoothDevice device) {
      BluetoothSocket socket = Shadow.newInstanceOf(BluetoothSocket.class);
      ReflectionHelpers.setField(socket, "mDevice", device);
      sockets.offer(socket);
      return socket;
    }
docs: Creates {@link BluetoothSocket} for the given device and makes this socket available
  immediately in the {@link #accept(int)} method.