foreword
Android12 has made adjustments to the recent application list, and transferred the recent application list originally in the SystemUI module in the same version to the Launcher3QuickStep application.
In this article, we will combine the source code to sort out the display process of the recent application list, so as to better understand how the SystemUI module sends messages to the Launcher3 module.
1. The SystemUI module displays the relevant code of the recent application list
1. Call the showRecentApps method of CommandQueue in the SystemUI module to display the recent application list.
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
public class CommandQueue extends IStatusBar.Stub implements
CallbackController<Callbacks