private void writeConstraintsToXml(XmlSerializer out,JobStatus jobStatus) throws IOException {
  out.startTag(null,XML_TAG_PARAMS_CONSTRAINTS);
  if (jobStatus.hasUnmeteredConstraint()) {
    out.attribute(null,"unmetered",Boolean.toString(true));
  }
  if (jobStatus.hasConnectivityConstraint()) {
    out.attribute(null,"connectivity",Boolean.toString(true));
  }
  if (jobStatus.hasIdleConstraint()) {
    out.attribute(null,"idle",Boolean.toString(true));
  }
  if (jobStatus.hasChargingConstraint()) {
    out.attribute(null,"charging",Boolean.toString(true));
  }
  out.endTag(null,XML_TAG_PARAMS_CONSTRAINTS);
}

private void writeConstraintsToXml ( XmlSerializer out , JobStatus jobStatus ) throws IOException { out . startTag ( null , XML_TAG_PARAMS_CONSTRAINTS ) ; if ( jobStatus . hasUnmeteredConstraint ( ) ) { out . attribute ( null , "unmetered" , Boolean . toString ( true ) ) ; } if ( jobStatus . hasConnectivityConstraint ( ) ) { out . attribute ( null , "connectivity" , Boolean . toString ( true ) ) ; } if ( jobStatus . hasIdleConstraint ( ) ) { out . attribute ( null , "idle" , Boolean . toString ( true ) ) ; } if ( jobStatus . hasChargingConstraint ( ) ) { out . attribute ( null , "charging" , Boolean . toString ( true ) ) ; } out . endTag ( null , XML_TAG_PARAMS_CONSTRAINTS ) ; }
write out a tag with data identifying this job ' s constraints . if the constraint isn ' t here it doesn ' t apply .
