code: public void setAppTasks(List<ActivityManager.AppTask> appTasks) {
      this.appTasks.clear();
      this.appTasks.addAll(appTasks);
    }
docs: Sets the values to be returned by {@link #getAppTasks()}.
  
  @see #getAppTasks()
  @param tasks List of app tasks.