Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 481d1b13 authored by Maryam Dehaini's avatar Maryam Dehaini
Browse files

Add more trace logs to window decor

Bug: 437194304
Test: m
Flag: com.android.window.flags.enable_window_decoration_refactor
Change-Id: I6b85d49dd1d7742083c0f3a0d10050e627665049
parent 4e94ade0
Loading
Loading
Loading
Loading
+16 −12
Original line number Diff line number Diff line
@@ -481,7 +481,11 @@ abstract class WindowDecoration2<T>(
    }

    /** Releases all window decoration views. */
    private fun releaseViews(wct: WindowContainerTransaction) {
    private fun releaseViews(wct: WindowContainerTransaction) =
        traceSection(
            traceTag = Trace.TRACE_TAG_WINDOW_MANAGER,
            name = "WindowDecoration2#releaseViews",
        ) {
            val t = surfaceControlTransactionSupplier()
            var released = false

+13 −9
Original line number Diff line number Diff line
@@ -497,7 +497,11 @@ abstract class CaptionController<T>(
    }

    /** Releases all caption views. Returns true if caption view host is released. */
    open fun releaseViews(wct: WindowContainerTransaction, t: SurfaceControl.Transaction): Boolean {
    open fun releaseViews(wct: WindowContainerTransaction, t: SurfaceControl.Transaction): Boolean =
        traceSection(
            traceTag = Trace.TRACE_TAG_WINDOW_MANAGER,
            name = "CaptionController#releaseViews",
        ) {
            captionInsets?.remove(wct)
            captionInsets = null