Home
last modified time | relevance | path

Searched refs:taskCount (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
DTaskGridLayoutAlgorithm.java75 TaskGridRectInfo(int taskCount) { in TaskGridRectInfo() argument
77 xOffsets = new int[taskCount]; in TaskGridRectInfo()
78 yOffsets = new int[taskCount]; in TaskGridRectInfo()
80 int layoutTaskCount = Math.min(MAX_LAYOUT_TASK_COUNT, taskCount); in TaskGridRectInfo()
123 for (int taskIndex = 0; taskIndex < taskCount; taskIndex++) { in TaskGridRectInfo()
125 int taskLayoutIndex = taskCount - taskIndex - 1; in TaskGridRectInfo()
136 private int getTasksPerLine(int taskCount) {
137 switch(taskCount) {
153 throw new IllegalArgumentException("Unsupported task count " + taskCount);
194 public TaskViewTransform getTransform(int taskIndex, int taskCount,
[all …]
DTaskViewFocusFrame.java127 final int taskCount = stack.getTaskCount(); in onGlobalFocusChanged() local
129 final int taskIndexToFocus = k == -1 ? (taskCount - 1) : (k % taskCount); in onGlobalFocusChanged()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTaskStack.java148 int taskCount = mRawTaskList.size(); in setTasks() local
149 for (int i = taskCount - 1; i >= 0; i--) { in setTasks()
159 taskCount = tasks.size(); in setTasks()
160 for (int i = 0; i < taskCount; i++) { in setTasks()
219 int taskCount = tasks.size(); in getTaskKeys() local
220 for (int i = 0; i < taskCount; i++) { in getTaskKeys()
255 int taskCount = tasks.size(); in getLaunchTarget() local
256 for (int i = 0; i < taskCount; i++) { in getLaunchTarget()
297 int taskCount = getTaskCount(); in getNextLaunchTargetRaw() local
298 if (taskCount == 0) { in getNextLaunchTargetRaw()
[all …]
DFilteredTaskList.java92 int taskCount = mTasks.size(); in updateFilteredTasks() local
93 for (int i = 0; i < taskCount; i++) { in updateFilteredTasks()
98 for (int i = 0; i < taskCount; i++) { in updateFilteredTasks()
112 int taskCount = mFilteredTasks.size(); in updateFilteredTaskIndices() local
114 for (int i = 0; i < taskCount; i++) { in updateFilteredTaskIndices()
DRecentsTaskLoadPlan.java101 int taskCount = mRawTasks.size(); in preloadPlan() local
102 for (int i = 0; i < taskCount; i++) { in preloadPlan()
172 int taskCount = tasks.size(); in executePlan() local
173 for (int i = 0; i < taskCount; i++) { in executePlan()
178 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks); in executePlan()
179 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails); in executePlan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/lowram/
DTaskStackLowRamLayoutAlgorithm.java123 TaskViewTransform transformOut, int taskCount, TaskStackLayoutAlgorithm stackLayout) { in getTransform() argument
124 if (taskCount == 0) { in getTransform()
130 if (taskCount > 1) { in getTransform()
204 public float getMaxScrollP(int taskCount) { in getMaxScrollP() argument
205 return getScrollPForTask(taskCount - 1); in getMaxScrollP()
214 public float getInitialScrollP(int taskCount, boolean fromHome) { in getInitialScrollP() argument
216 return getMaxScrollP(taskCount); in getInitialScrollP()
218 if (taskCount < 2) { in getInitialScrollP()
221 return getScrollPForTask(taskCount - 2); in getInitialScrollP()
245 private int getTotalHeightOfTasks(int taskCount) { in getTotalHeightOfTasks() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackView.java472 int taskCount = tasks.size(); in computeVisibleTaskTransforms() local
486 for (int i = taskCount - 1; i >= 0; i--) { in computeVisibleTaskTransforms()
971 int taskCount = mStack.getTaskCount(); in setRelativeFocusedTask() local
972 newIndex = (newIndex + (forward ? -1 : 1) + taskCount) % taskCount; in setRelativeFocusedTask()
978 int taskCount = tasks.size(); in setRelativeFocusedTask() local
982 newIndex = taskCount - 1; in setRelativeFocusedTask()
988 for (newIndex = taskCount - 1; newIndex >= 0; newIndex--) { in setRelativeFocusedTask()
996 for (newIndex = 0; newIndex < taskCount; newIndex++) { in setRelativeFocusedTask()
1860 final int taskCount = mStack.getTaskCount(); in onBusEvent() local
1862 final int nextIndex = mLayoutAlgorithm.mTaskGridLayoutAlgorithm.navigateFocus(taskCount, in onBusEvent()
[all …]
DTaskStackLayoutAlgorithm.java462 int taskCount = stackTasks.size(); in update() local
463 for (int i = 0; i < taskCount; i++) { in update()
501 ? mTaskStackLowRamLayoutAlgorithm.getMaxScrollP(taskCount) in update()
563 int taskCount = tasks.size(); in setTaskOverridesForInitialState() local
564 for (int i = taskCount - 1; i >= 0; i--) { in setTaskOverridesForInitialState()
565 int indexFromFront = taskCount - i - 1; in setTaskOverridesForInitialState()
786 int taskCount = mTaskIndexMap.size(); in getStackTransform() local
787 mTaskGridLayoutAlgorithm.getTransform(taskIndex, taskCount, transformOut, this); in getStackTransform()
DTaskStackViewTouchHandler.java680 int taskCount = tasks.size(); in findViewAtPoint() local
681 for (int i = taskCount - 1; i >= 0; i--) { in findViewAtPoint()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java626 final int taskCount = mPageToRenderTaskMap.size(); in stopPreload() local
627 for (int i = 0; i < taskCount; i++) { in stopPreload()
713 final int taskCount = mPageToRenderTaskMap.size(); in cancelAllRendering() local
714 for (int i = 0; i < taskCount; i++) { in cancelAllRendering()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsImpl.java579 int taskCount = tasks.size();
580 for (int i = taskCount - 1; i >= 1; i--) {
635 int taskCount = tasks.size(); in showRelativeAffiliatedTask() local
636 for (int i = 0; i < taskCount; i++) { in showRelativeAffiliatedTask()
640 if ((i + 1) < taskCount) { in showRelativeAffiliatedTask()
DRecentsActivity.java475 int taskCount = mRecentsView.getStack().getTaskCount(); in reloadStackView() local
476 MetricsLogger.histogram(this, "overview_task_count", taskCount); in reloadStackView()
/frameworks/base/services/core/java/com/android/server/wm/
DRecentsAnimationController.java265 final int taskCount = visibleTasks.size(); in initialize() local
266 for (int i = 0; i < taskCount; i++) { in initialize()