Android WMS - WMS window update removal (14)

        The previous articles introduced the process of adding Window windows in detail. Here we take a brief look at how AMS implements the update and removal process of Window windows.

1. Window update

        Here we start the analysis from Session.

1、Session

Source code location:/frameworks/base/services/core/java/com/android/server/wm/Session.java

final WindowManagerService mService;

@Override
public int relayout(IWindow window, WindowManager.LayoutParams attrs,
             int requestedWidth, int requestedHeight, int viewFlags, int flags, long frameNumber,
             ClientWindowFrames outFrames, MergedConfiguration mergedConfiguration,
             SurfaceControl outSurfaceControl, InsetsState outInsetsState,
             InsetsSourceControl[] outActiveControls, Point outSurfaceSize) {

    Trace.traceBegin(TRACE_TAG_WINDOW_MANAGER, mRelayoutTag);
    int res = mService.relayoutWindow(this, window, attrs,
                 requestedWidth, requestedHeight, viewFlags, flags, frameNumber,
                 outFrames, mergedConfig

Guess you like

Origin blog.csdn.net/c19344881x/article/details/134166062