private void queueReadyJobsForExecutionLockedH(){
  ArraySet<JobStatus> jobs=mJobs.getJobs();
  if (DEBUG) {
  }
  for (int i=0; i < jobs.size(); i++) {
    JobStatus job=jobs.valueAt(i);
    if (isReadyToBeExecutedLocked(job)) {
      if (DEBUG) {
      }
      mPendingJobs.add(job);
    }
 else     if (isReadyToBeCancelledLocked(job)) {
      stopJobOnServiceContextLocked(job);
    }
  }
  if (DEBUG) {
    final int queuedJobs=mPendingJobs.size();
    if (queuedJobs == 0) {
    }
 else {
    }
  }
}

private void queueReadyJobsForExecutionLockedH ( ) { ArraySet < JobStatus > jobs = mJobs . getJobs ( ) ; if ( DEBUG ) { } for ( int i = 0 ; i < jobs . size ( ) ; i ++ ) { JobStatus job = jobs . valueAt ( i ) ; if ( isReadyToBeExecutedLocked ( job ) ) { if ( DEBUG ) { } mPendingJobs . add ( job ) ; } else if ( isReadyToBeCancelledLocked ( job ) ) { stopJobOnServiceContextLocked ( job ) ; } } if ( DEBUG ) { final int queuedJobs = mPendingJobs . size ( ) ; if ( queuedJobs == 0 ) { } else { } } }
run through list of jobs and execute all possible - at least one is expired so we do as many as we can .
