public class RecentsTaskLoadPlan extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RecentsTaskLoadPlan.Options
The set of conditions to load tasks.
|
Modifier and Type | Method and Description |
---|---|
void |
executePlan(RecentsTaskLoadPlan.Options opts,
RecentsTaskLoader loader,
com.android.systemui.recents.model.TaskResourceLoadQueue loadQueue)
Called to apply the actual loading based on the specified conditions.
|
List<ActivityManager.RecentTaskInfo> |
getRawTasks()
Returns the raw list of recent tasks.
|
TaskStack |
getTaskStack()
Returns the TaskStack from the preloaded list of recent tasks.
|
boolean |
hasTasks()
Returns whether there are any tasks in any stacks.
|
void |
preloadPlan(RecentsTaskLoader loader,
int runningTaskId,
boolean includeFrontMostExcludedTask)
Preloads the list of recent tasks from the system.
|
void |
preloadRawTasks(boolean includeFrontMostExcludedTask)
An optimization to preload the raw list of tasks.
|
public void preloadRawTasks(boolean includeFrontMostExcludedTask)
public void preloadPlan(RecentsTaskLoader loader, int runningTaskId, boolean includeFrontMostExcludedTask)
public void executePlan(RecentsTaskLoadPlan.Options opts, RecentsTaskLoader loader, com.android.systemui.recents.model.TaskResourceLoadQueue loadQueue)
public TaskStack getTaskStack()
public List<ActivityManager.RecentTaskInfo> getRawTasks()
public boolean hasTasks()