Searched refs:tasks (Results 1 - 25 of 55) sorted by path

123

/frameworks/base/core/java/android/app/
H A DActivityManager.java711 * Returns true if the tasks contained in the stack can be resized independently of the
748 * Returns true if the size of tasks in the input stack are affected by the docked stack
766 * Returns true if the windows of tasks being moved to the target stack from the source
838 * there are other tasks in the stack.
1531 * Information you can retrieve about tasks that the user has most recently
1604 * Task affiliation for grouping with other tasks.
1737 * Flag for use with {@link #getRecentTasks}: return all tasks, even those
1745 * recent tasks that currently are not available to the user.
1750 * Provides a list that contains recent tasks for all
1757 * Ignores all tasks tha
[all...]
/frameworks/base/core/tests/overlaytests/
H A Dtestrunner.py408 def __init__(self, type, tasks):
410 self.tasks = tasks
419 for t in self.tasks:
426 tasks = [
440 return CompoundTask(TASK_DISABLE_OVERLAYS, tasks)
443 tasks = [
450 return CompoundTask(TASK_ENABLE_SINGLE_OVERLAY, tasks)
453 tasks = [
463 return CompoundTask(TASK_ENABLE_MULTIPLE_OVERLAYS, tasks)
610 tasks = [] variable
[all...]
/frameworks/base/libs/hwui/
H A DCaches.h165 TaskManager tasks; member in class:android::uirenderer::Caches
H A DPathCache.cpp324 TaskProcessor<sk_sp<Bitmap> >(&caches.tasks), mMaxTextureSize(caches.maxTextureSize) {
402 if (!Caches::getInstance().tasks.canRunTasks()) {
H A DTessellationCache.cpp139 : TaskProcessor<VertexBuffer*>(&caches.tasks) {}
273 : TaskProcessor<TessellationCache::vertexBuffer_pair_t>(&caches.tasks) {}
/frameworks/base/libs/hwui/renderthread/
H A DOpenGLPipeline.cpp199 return &Caches::getInstance().tasks;
/frameworks/base/libs/hwui/tests/common/
H A DLeakChecker.cpp76 Caches::getInstance().tasks.stop();
/frameworks/base/libs/hwui/tests/microbench/
H A DTaskManagerBench.cpp42 std::vector<sp<TrivialTask> > tasks; local
43 tasks.reserve(state.max_iterations);
46 tasks.emplace_back(new TrivialTask);
47 benchmark::DoNotOptimize(tasks.back());
55 std::vector<sp<TrivialTask> > tasks; local
56 tasks.reserve(state.max_iterations);
59 tasks.emplace_back(new TrivialTask);
60 benchmark::DoNotOptimize(tasks.back());
61 processor->add(tasks.back());
64 for (sp<TrivialTask>& task : tasks) {
73 std::vector<sp<TrivialTask> > tasks; local
[all...]
/frameworks/base/libs/hwui/thread/
H A DTaskManager.cpp92 std::vector<TaskWrapper> tasks; local
95 tasks.swap(mTasks);
98 for (size_t i = 0; i < tasks.size(); i++) {
99 const TaskWrapper& task = tasks[i];
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsActivity.java179 // currentTime and remove the old tasks in between which would not be previously
188 // We are only removing tasks that are between the new current time
195 List<ActivityManager.RecentTaskInfo> tasks = loadPlan.getRawTasks();
196 for (int i = tasks.size() - 1; i >= 0; i--) {
197 ActivityManager.RecentTaskInfo task = tasks.get(i);
407 // Start loading tasks according to the load plan
450 // If from an app, track the stack index of the app in the stack (for affiliated tasks)
H A DRecentsImpl.java151 // thumbnails/tasks visible)
263 // When we start, preload the data associated with the previous recent tasks.
493 // Return early if there are no tasks in the focused stack
502 ArrayList<Task> tasks = focusedStack.getStackTasks();
505 int taskCount = tasks.size();
507 Task task = tasks.get(i);
509 toTask = tasks.get(i - 1);
515 toTask = tasks.get(i - 1);
547 // Return early if there are no tasks in the focused stack
550 // Return early if there is no running task (can't determine affiliated tasks i
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DSystemServicesProxy.java386 * Returns a list of the recents tasks.
389 * will be visible, otherwise no excluded tasks will be
396 // If we are mocking, then create some recent tasks
398 ArrayList<ActivityManager.RecentTaskInfo> tasks =
424 tasks.add(rti);
426 return tasks;
429 // Remove home/recents/excluded tasks
440 List<ActivityManager.RecentTaskInfo> tasks = null;
442 tasks = mAm.getRecentTasksForUser(numTasksToQuery, flags, userId);
444 Log.e(TAG, "Failed to get recent tasks",
[all...]
H A DUtilities.java256 * Updates {@param transforms} to be the same size as {@param tasks}.
258 public static void matchTaskListSize(List<Task> tasks, List<TaskViewTransform> transforms) { argument
261 int taskCount = tasks.size();
263 // If there are less transforms than tasks, then add as many transforms as necessary
268 // If there are more transforms than tasks, then just subset the transform list
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DRecentsTaskLoadPlan.java49 * 1) preloadRawTasks() will load the raw set of recents tasks from the system
61 /** The set of conditions to load tasks. */
100 * An optimization to preload the raw list of tasks. The raw tasks are saved in least-recent
113 // Since the raw tasks are given in most-recent to least-recent order, we need to reverse it
118 * Preloads the list of recent tasks from the system. After this call, the TaskStack will
119 * have a list of all the recent tasks with their metadata, not including icons or
122 * The tasks will be ordered by:
123 * - least-recent to most-recent stack tasks
124 * - least-recent to most-recent freeform tasks
[all...]
H A DTaskStack.java82 * A list of filtered tasks.
129 // filtered tasks
134 /** Sets the list of tasks */
135 void set(List<Task> tasks) { argument
137 mTasks.addAll(tasks);
151 /** Returns the index of this task in the list of filtered tasks */
159 /** Returns the size of the list of filtered tasks */
169 /** Updates the list of filtered tasks whenever the base task list changes */
193 /** Updates the mapping of tasks to indices. */
208 /** Returns the list of filtered tasks */
686 setTasks(Context context, List<Task> tasks, boolean notifyStackChanges) argument
1120 createTaskKeyMapFromList(List<Task> tasks) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsTransitionHelper.java278 * Composes the animation specs for all the tasks in the target stack.
289 // Calculate the offscreen task rect (for tasks that are not backed by views)
317 // Otherwise, for freeform tasks, create a new animation spec for each task we have to
320 ArrayList<Task> tasks = stack.getStackTasks();
321 int taskCount = tasks.size();
323 Task t = tasks.get(i);
H A DTaskStackLayoutAlgorithm.java120 // The medium/maximum dim on the tasks
227 public VisibilityReport(int tasks, int thumbnails) { argument
228 numVisibleTasks = tasks;
296 // The paths defining the motion of the tasks when the stack is focused and unfocused
302 // The paths defining the distribution of the dim to apply to tasks in the stack when focused
514 // Return early if we have no tasks
515 ArrayList<Task> tasks = stack.getStackTasks();
516 if (tasks.isEmpty()) {
523 // Filter the set of freeform and stack tasks
526 for (int i = 0; i < tasks
792 computeStackVisibilityReport(ArrayList<Task> tasks) argument
[all...]
H A DTaskStackView.java230 // A convenience update listener to request updating clipping of tasks
382 * Sets the stack tasks of this TaskStackView from the given TaskStack.
388 // new and old tasks when we next layout
427 * stack tasks)
497 * Computes the task transforms at the current stack scroll for all visible tasks. If a valid
499 * visible range includes all tasks at the target stack scroll. This is useful for ensure that
502 * This call ignores freeform tasks.
505 * match the size of {@param tasks}
506 * @param tasks The set of tasks fo
516 computeVisibleTaskTransforms(ArrayList<TaskViewTransform> taskTransforms, ArrayList<Task> tasks, float curStackScroll, float targetStackScroll, ArraySet<Task.TaskKey> ignoreTasksSet, boolean ignoreTaskOverrides) argument
764 getCurrentTaskTransforms(ArrayList<Task> tasks, ArrayList<TaskViewTransform> transformsOut) argument
787 getLayoutTaskTransforms(float stackScroll, int focusState, ArrayList<Task> tasks, boolean ignoreTaskOverrides, ArrayList<TaskViewTransform> transformsOut) argument
1439 findAnchorTask(List<Task> tasks, MutableBoolean isFrontMostTask) argument
1709 updatePrefetchingTask(ArrayList<Task> tasks, int frontIndex, int backIndex) argument
[all...]
H A DTaskStackViewTouchHandler.java99 // The current and final set of task transforms, sized to match the list of tasks in the stack
196 // For the non-dismissing tasks, freeze the position into the task overrides
404 // TODO: Animate Recents away as we launch the freeform tasks
480 // Add this task to the set of tasks we are deleting
483 // Determine if we are animating the other tasks while dismissing this task
501 // Calculate where the views would be without the deleting tasks
506 // Bound the stack scroll to pull tasks forward if necessary
522 // Pick up the newly visible views, not including the deleting tasks
544 // Only update the swipe progress for the surrounding tasks if the dismiss animation was not
625 * Interpolates the non-deleting tasks t
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
H A DTaskGridLayoutAlgorithm.java65 * When the amount of tasks is determined, the size and position of every task view can be
67 * amount of tasks.
88 // If we're in portrait but task views are landscape, show more lines of fewer tasks.
95 // If we're in landscape but task views are portrait, show fewer lines of more tasks.
125 // We also need to invert the index in order to display the most recent tasks first.
161 * are k tasks.
214 // We also need to invert the index in order to display the most recent tasks first.
227 // We only show the 8 most recent tasks.
234 * @param taskCount The amount of tasks.
322 public VisibilityReport computeStackVisibilityReport(ArrayList<Task> tasks) { argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAppButtonData.java29 // Recent tasks for this app, sorted by lastActiveTime, descending.
30 public ArrayList<RecentTaskInfo> tasks; field in class:AppButtonData
38 return tasks == null ? 0 : tasks.size();
49 if (tasks == null) {
50 tasks = new ArrayList<RecentTaskInfo>();
52 tasks.add(task);
56 if (tasks != null) {
57 tasks.clear();
H A DNotificationPanelView.java2458 List<ActivityManager.RunningTaskInfo> tasks = am.getRunningTasks(1);
2459 return !tasks.isEmpty() && pkgName.equals(tasks.get(0).topActivity.getPackageName());
H A DPhoneStatusBarPolicy.java615 List<ActivityManager.RecentTaskInfo> tasks = mContext.getSystemService(ActivityManager.class)
617 for (int i = 0; i < tasks.size(); i++) {
618 if (tasks.get(i).id == taskId) {
619 return tasks.get(i).baseIntent;
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java673 * List of intents that were used to start the most recent tasks.
5162 // TODO: VI Consider treating local voice interactions and voice tasks
5782 // Remove all tasks match the cleared application package and user
6361 // Clean-up disabled tasks
9628 // Skip tasks that do not match the caller. We don't need to verify
9784 // Only add calling user or related users recent tasks
9808 // allow them to see a small subset of tasks -- their own and home.
9837 // Don't include auto remove tasks that are finished or finishing.
10072 // things like the presense of a docked stack for tasks that aren't resizeable.
10182 // Remove all tasks wit
[all...]
H A DActivityStack.java781 /** Checks if there are tasks with specific UID in the stack. */
1007 // It is possible for multiple tasks to have the same root affinity especially
1065 // Move userId's tasks to the top.
1536 ArrayList<TaskRecord> tasks = stack.mTaskHistory;
1537 int taskNdx = tasks.indexOf(task);
1545 tasks = historyStack.mTaskHistory;
1546 final int numTasks = tasks.size();
1548 final TaskRecord currentTask = tasks.get(taskNdx);
1676 // A case would be if recents stack exists but has no tasks and is below the docked stack
1869 // The visibility of tasks an
4135 releaseSomeActivitiesLocked(ProcessRecord app, ArraySet<TaskRecord> tasks, String reason) argument
[all...]

Completed in 373 milliseconds

123