[1/n] Launcher Startup Latency: add StartupLatencyLogger to launcher3 and log startup latency

More details at "Log Startup Latency" section in go/launcher-startup-latency

Test: tested on phone, foldable and tablet, print latency logs in logcat
Bug: 278092752
Change-Id: Ibf269b0ecd6007d29b95e36f65ab6f02c45deb3a
This commit is contained in:
Fengjiang Li
2023-04-13 18:18:27 +00:00
parent 5f45663552
commit 5a36c17a32
11 changed files with 703 additions and 22 deletions

View File

@@ -1063,7 +1063,8 @@ public class QuickstepLauncher extends Launcher {
}
@Override
public void onInitialBindComplete(IntSet boundPages, RunnableList pendingTasks) {
public void onInitialBindComplete(IntSet boundPages, RunnableList pendingTasks,
int workspaceItemCount, boolean isBindSync) {
pendingTasks.add(() -> {
// This is added in pending task as we need to wait for views to be positioned
// correctly before registering them for the animation.
@@ -1073,7 +1074,7 @@ public class QuickstepLauncher extends Launcher {
mLauncherUnfoldAnimationController.updateRegisteredViewsIfNeeded();
}
});
super.onInitialBindComplete(boundPages, pendingTasks);
super.onInitialBindComplete(boundPages, pendingTasks, workspaceItemCount, isBindSync);
}
@Override