private void maybeBuildBackoffPolicyFromXml(JobInfo.Builder jobBuilder,XmlPullParser parser){
  String val=parser.getAttributeValue(null,"initial-backoff");
  if (val != null) {
    long initialBackoff=Long.valueOf(val);
    val=parser.getAttributeValue(null,"backoff-policy");
    int backoffPolicy=Integer.valueOf(val);
    jobBuilder.setBackoffCriteria(initialBackoff,backoffPolicy);
  }
}

private void maybeBuildBackoffPolicyFromXml ( JobInfo . Builder jobBuilder , XmlPullParser parser ) { String val = parser . getAttributeValue ( null , "initial-backoff" ) ; if ( val != null ) { long initialBackoff = Long . valueOf ( val ) ; val = parser . getAttributeValue ( null , "backoff-policy" ) ; int backoffPolicy = Integer . valueOf ( val ) ; jobBuilder . setBackoffCriteria ( initialBackoff , backoffPolicy ) ; } }
builds the back - off policy out of the params tag . these attributes may not exist , depending on whether the back - off was set when the job was first scheduled .
