public class RecentsTaskLoader extends Object
Constructor and Description |
---|
RecentsTaskLoader(Context context) |
Modifier and Type | Method and Description |
---|---|
RecentsTaskLoadPlan |
createLoadPlan(Context context)
Creates a new plan for loading the recent tasks.
|
void |
deleteTaskData(Task t,
boolean notifyTaskDataUnloaded)
Completely removes the resource data from the pool.
|
void |
dump(String prefix,
PrintWriter writer) |
int |
getIconCacheSize()
Returns the size of the app icon cache.
|
int |
getThumbnailCacheSize()
Returns the size of the thumbnail cache.
|
void |
loadTaskData(Task t)
Acquires the task resource data directly from the cache, loading if necessary.
|
void |
loadTasks(Context context,
RecentsTaskLoadPlan plan,
RecentsTaskLoadPlan.Options opts)
Begins loading the heavy task data according to the specified options.
|
void |
onBusEvent(PackagesChangedEvent event)
Event Bus Events
|
void |
onTrimMemory(int level)
Handles signals from the system, trimming memory when requested to prevent us from running
out of memory.
|
void |
preloadTasks(RecentsTaskLoadPlan plan,
int runningTaskId,
boolean includeFrontMostExcludedTask)
Preloads recents tasks using the specified plan to store the output.
|
void |
unloadTaskData(Task t)
Releases the task resource data back into the pool.
|
public RecentsTaskLoader(Context context)
public int getIconCacheSize()
public int getThumbnailCacheSize()
public RecentsTaskLoadPlan createLoadPlan(Context context)
public void preloadTasks(RecentsTaskLoadPlan plan, int runningTaskId, boolean includeFrontMostExcludedTask)
public void loadTasks(Context context, RecentsTaskLoadPlan plan, RecentsTaskLoadPlan.Options opts)
public void loadTaskData(Task t)
public void unloadTaskData(Task t)
public void deleteTaskData(Task t, boolean notifyTaskDataUnloaded)
public void onTrimMemory(int level)
public final void onBusEvent(PackagesChangedEvent event)
public void dump(String prefix, PrintWriter writer)