code: public synchronized void updateTasks(List<TaskInfo> taskInfoList) {
      for (TaskInfo taskInfo : taskInfoList) {
        mJobInfo.setTaskInfo(taskInfo.getTaskId(), taskInfo);
      }
      updateStatus();
    }
docs: Updates internal status with given tasks.
  
  @param taskInfoList List of @TaskInfo instances to update