Loading packages/SystemUI/src/com/android/systemui/recents/RecentsDebugFlags.java +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public class RecentsDebugFlags implements TunerService.Tunable { // This disables the bitmap and icon caches public static final boolean DisableBackgroundCache = false; // Enables the task affiliations public static final boolean EnableAffiliatedTaskGroups = true; public static final boolean EnableAffiliatedTaskGroups = false; // TODO: To be repurposed public static final boolean EnableStackActionButton = false; // Overrides the Tuner flags and enables the timeout Loading packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java +9 −3 Original line number Diff line number Diff line Loading @@ -160,8 +160,15 @@ public class RecentsTaskLoadPlan { long parentTaskLastActiveTime = parentTask != null ? parentTask.lastActiveTime : prevLastActiveTime; if (RecentsDebugFlags.Static.EnableAffiliatedTaskGroups) { t.lastActiveTime = parentTaskLastActiveTime + affiliatedTaskCounts.get(t.affiliatedTaskId, 0) + 1; } else { if (t.lastActiveTime == 0) { t.lastActiveTime = parentTaskLastActiveTime - affiliatedTaskCounts.get(t.affiliatedTaskId, 0) - 1; } } } // Compose the task key Loading Loading @@ -201,7 +208,6 @@ public class RecentsTaskLoadPlan { allTasks.add(task); affiliatedTaskCounts.put(taskKey.id, affiliatedTaskCounts.get(taskKey.id, 0) + 1); affiliatedTasks.put(taskKey.id, taskKey); prevLastActiveTime = t.lastActiveTime; } if (newLastStackActiveTime != -1) { Loading packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java +8 −6 Original line number Diff line number Diff line Loading @@ -429,6 +429,7 @@ public class TaskStack { mStackTaskList.setFilter(new TaskFilter() { @Override public boolean acceptTask(SparseArray<Task> taskIdMap, Task t, int index) { if (RecentsDebugFlags.Static.EnableAffiliatedTaskGroups) { if (t.isAffiliatedTask()) { // If this task is affiliated with another parent in the stack, then the // historical state of this task depends on the state of the parent task Loading @@ -437,6 +438,7 @@ public class TaskStack { t = parentTask; } } } return t.isStackTask; } }); Loading Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsDebugFlags.java +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public class RecentsDebugFlags implements TunerService.Tunable { // This disables the bitmap and icon caches public static final boolean DisableBackgroundCache = false; // Enables the task affiliations public static final boolean EnableAffiliatedTaskGroups = true; public static final boolean EnableAffiliatedTaskGroups = false; // TODO: To be repurposed public static final boolean EnableStackActionButton = false; // Overrides the Tuner flags and enables the timeout Loading
packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java +9 −3 Original line number Diff line number Diff line Loading @@ -160,8 +160,15 @@ public class RecentsTaskLoadPlan { long parentTaskLastActiveTime = parentTask != null ? parentTask.lastActiveTime : prevLastActiveTime; if (RecentsDebugFlags.Static.EnableAffiliatedTaskGroups) { t.lastActiveTime = parentTaskLastActiveTime + affiliatedTaskCounts.get(t.affiliatedTaskId, 0) + 1; } else { if (t.lastActiveTime == 0) { t.lastActiveTime = parentTaskLastActiveTime - affiliatedTaskCounts.get(t.affiliatedTaskId, 0) - 1; } } } // Compose the task key Loading Loading @@ -201,7 +208,6 @@ public class RecentsTaskLoadPlan { allTasks.add(task); affiliatedTaskCounts.put(taskKey.id, affiliatedTaskCounts.get(taskKey.id, 0) + 1); affiliatedTasks.put(taskKey.id, taskKey); prevLastActiveTime = t.lastActiveTime; } if (newLastStackActiveTime != -1) { Loading
packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java +8 −6 Original line number Diff line number Diff line Loading @@ -429,6 +429,7 @@ public class TaskStack { mStackTaskList.setFilter(new TaskFilter() { @Override public boolean acceptTask(SparseArray<Task> taskIdMap, Task t, int index) { if (RecentsDebugFlags.Static.EnableAffiliatedTaskGroups) { if (t.isAffiliatedTask()) { // If this task is affiliated with another parent in the stack, then the // historical state of this task depends on the state of the parent task Loading @@ -437,6 +438,7 @@ public class TaskStack { t = parentTask; } } } return t.isStackTask; } }); Loading