public boolean isServiceConnected(RcsServiceName... services){
  for (  RcsServiceName service : services) {
    if (!mManagedServices.contains(service)) {
      throw new IllegalArgumentException("Service " + service + " does not belong to set of managed services!");
    }
    if (!mConnectedServices.contains(service)) {
      return false;
    }
  }
  return true;
}

public boolean isServiceConnected ( RcsServiceName ... services ) { for ( RcsServiceName service : services ) { if ( ! mManagedServices . contains ( service ) ) { throw new IllegalArgumentException ( "Service " + service + " does not belong to set of managed services!" ) ; } if ( ! mConnectedServices . contains ( service ) ) { return false ; } } return true ; }
check if services are connected
