Lines Matching refs:task

53  * When an app token becomes invisible, we take a snapshot (bitmap) of the corresponding task and
57 * System applications may retrieve a snapshot to represent the current state of a task, and draw
60 * When we task becomes visible again, we show a starting window with the snapshot as the content to
145 // We need to take a snapshot of the task if and only if all activities of the task are
154 final Task task = tasks.valueAt(i);
155 final int mode = getSnapshotMode(task);
161 snapshot = drawAppThemeSnapshot(task);
164 snapshot = snapshotTask(task);
174 Slog.e(TAG, "Invalid task snapshot dimensions " + buffer.getWidth() + "x"
177 mCache.putSnapshot(task, snapshot);
178 mPersister.persistSnapshot(task.mTaskId, task.mUserId, snapshot);
179 if (task.getController() != null) {
180 task.getController().reportSnapshotChanged(snapshot);
206 private TaskSnapshot snapshotTask(Task task) {
207 final AppWindowToken top = task.getTopChild();
246 final Task task = atoken.getTask();
248 // If the task of the app is not visible anymore, it means no other app in that task
249 // is opening. Thus, the task is closing.
250 if (task != null && !task.isVisible()) {
251 outClosingTasks.add(task);
257 int getSnapshotMode(Task task) {
258 final AppWindowToken topChild = task.getTopChild();
259 if (StackId.isHomeOrRecentsStack(task.mStack.mStackId)) {
272 private TaskSnapshot drawAppThemeSnapshot(Task task) {
273 final AppWindowToken topChild = task.getTopChild();
281 final int color = task.getTaskDescription().getBackgroundColor();
282 final int statusBarColor = task.getTaskDescription().getStatusBarColor();
283 final int navigationBarColor = task.getTaskDescription().getNavigationBarColor();
334 * Temporarily pauses/unpauses persisting of task snapshots.
336 * @param paused Whether task snapshot persisting should be paused.
356 mService.mRoot.forAllTasks(task -> {
357 if (task.isVisible()) {
358 mTmpTasks.add(task);