code: public List<IoDevice> getUsedIoDevices()
      {
          final ArrayList<IoDevice> used = new ArrayList<>();
          synchronized (mIODevices)
          {
              for (IoDevice d : mIODevices)
              {
                  if (isDeviceActive(d))
                  {
                      used.add(d);
                  }
              }
          }
          return used;
      }
docs: This returns a list of {@link IoDevice}s that are connected and currently controlling a
  {@link Cursor}. This list will not include any {@link IoDevice} that is not connected or
  connected but not controlling a {@link Cursor}.
  @return The list of used {@link IoDevice}s