mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Improve taskId logging for Overview
Fix: 338034523 Test: manual Flag: NONE Change-Id: I0ba84047a83bd9bdbd891bddf86f6cbe36bca572
This commit is contained in:
@@ -56,4 +56,10 @@ public class DesktopTask extends GroupTask {
|
||||
public DesktopTask copy() {
|
||||
return new DesktopTask(tasks);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "type=" + taskViewType + " tasks=" + tasks;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -70,4 +70,10 @@ public class GroupTask {
|
||||
task2 != null ? new Task(task2) : null,
|
||||
mSplitBounds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "type=" + taskViewType + " task1=" + task1 + " task2=" + task2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -311,9 +311,13 @@ public class DesktopTaskView extends TaskView {
|
||||
DesktopRecentsTransitionController recentsController =
|
||||
recentsView.getDesktopRecentsController();
|
||||
if (recentsController != null) {
|
||||
recentsController.launchDesktopFromRecents(this, success -> {
|
||||
endCallback.executeAllAndDestroy();
|
||||
});
|
||||
recentsController.launchDesktopFromRecents(this,
|
||||
success -> endCallback.executeAllAndDestroy());
|
||||
Log.d(TAG, "launchTaskAnimated - launchDesktopFromRecents: " + Arrays.toString(
|
||||
getTaskIds()));
|
||||
} else {
|
||||
Log.d(TAG, "launchTaskAnimated - recentsController is null: " + Arrays.toString(
|
||||
getTaskIds()));
|
||||
}
|
||||
|
||||
// Callbacks get run from recentsView for case when recents animation already running
|
||||
|
||||
@@ -60,7 +60,7 @@ import java.util.function.Consumer;
|
||||
*/
|
||||
public class GroupedTaskView extends TaskView {
|
||||
|
||||
private static final String TAG = TaskView.class.getSimpleName();
|
||||
private static final String TAG = GroupedTaskView.class.getSimpleName();
|
||||
@Nullable
|
||||
private Task mSecondaryTask;
|
||||
// TODO(b/336612373): Support new TTV for GroupedTaskView
|
||||
|
||||
@@ -1707,6 +1707,12 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
|
||||
return;
|
||||
}
|
||||
|
||||
if (taskGroups == null) {
|
||||
Log.d(TAG, "applyLoadPlan - taskGroups is null");
|
||||
} else {
|
||||
Log.d(TAG, "applyLoadPlan - taskGroups: " + taskGroups.stream().map(
|
||||
GroupTask::toString).toList());
|
||||
}
|
||||
mLoadPlanEverApplied = true;
|
||||
if (taskGroups == null || taskGroups.isEmpty()) {
|
||||
removeTasksViewsAndClearAllButton();
|
||||
@@ -2587,7 +2593,7 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
|
||||
*/
|
||||
public void onGestureAnimationStart(
|
||||
Task[] runningTasks, RotationTouchHelper rotationTouchHelper) {
|
||||
Log.d(TAG, "onGestureAnimationStart");
|
||||
Log.d(TAG, "onGestureAnimationStart - runningTasks: " + Arrays.toString(runningTasks));
|
||||
mActiveGestureRunningTasks = runningTasks;
|
||||
// This needs to be called before the other states are set since it can create the task view
|
||||
if (mOrientationState.setGestureActive(true)) {
|
||||
@@ -2761,6 +2767,7 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
|
||||
* is called. Also scrolls the view to this task.
|
||||
*/
|
||||
private void showCurrentTask(Task[] runningTasks) {
|
||||
Log.d(TAG, "showCurrentTask - runningTasks: " + Arrays.toString(runningTasks));
|
||||
if (runningTasks.length == 0) {
|
||||
return;
|
||||
}
|
||||
@@ -5457,8 +5464,9 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
|
||||
* Called when a running recents animation has finished or canceled.
|
||||
*/
|
||||
public void onRecentsAnimationComplete() {
|
||||
Log.d(TAG, "onRecentsAnimationComplete - mRecentsAnimationController: "
|
||||
+ mRecentsAnimationController);
|
||||
Log.d(TAG, "onRecentsAnimationComplete "
|
||||
+ "- mRecentsAnimationController: " + mRecentsAnimationController
|
||||
+ ", mSideTaskLaunchCallback: " + mSideTaskLaunchCallback);
|
||||
// At this point, the recents animation is not running and if the animation was canceled
|
||||
// by a display rotation then reset this state to show the screenshot
|
||||
setRunningTaskViewShowScreenshot(true);
|
||||
@@ -6012,7 +6020,8 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
|
||||
}
|
||||
|
||||
public void cleanupRemoteTargets() {
|
||||
Log.d(TAG, "cleanupRemoteTargets");
|
||||
Log.d(TAG, "cleanupRemoteTargets - mRemoteTargetHandles: " + Arrays.toString(
|
||||
mRemoteTargetHandles));
|
||||
mRemoteTargetHandles = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -864,7 +864,8 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
RunnableList callbackList = launchTasks();
|
||||
Log.d("b/310064698", mTask + " - onClick - callbackList: " + callbackList);
|
||||
if (callbackList != null) {
|
||||
callbackList.add(() -> Log.d("b/310064698", mTask + " - onClick - launchCompleted"));
|
||||
callbackList.add(() -> Log.d("b/310064698", Arrays.toString(
|
||||
getTaskIds()) + " - onClick - launchCompleted"));
|
||||
}
|
||||
mContainer.getStatsLogManager().logger().withItemInfo(getItemInfo())
|
||||
.log(LAUNCHER_TASK_LAUNCH_TAP);
|
||||
@@ -936,7 +937,7 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
Log.d(TAG, "launchTaskAnimated - mTask is null");
|
||||
Log.d(TAG, "launchTaskAnimated - mTask is null" + Arrays.toString(getTaskIds()));
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1006,9 +1007,12 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
callback.accept(false);
|
||||
});
|
||||
}
|
||||
Log.d(TAG,
|
||||
"launchTask - startActivityFromRecents: " + Arrays.toString(getTaskIds()));
|
||||
});
|
||||
} else {
|
||||
callback.accept(false);
|
||||
Log.d(TAG, "launchTask - mTask is null" + Arrays.toString(getTaskIds()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user