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

Commit f89a2b75 authored by Felix Stern's avatar Felix Stern
Browse files

Add more IME related protologs for ImeISP#onPostLayout

Test: None, logs only
Flag: android.view.inputmethod.refactor_insets_controller
Bug: 387510950
Change-Id: I8ff552a66baa68145290308056ff6b753125ed56
parent 74c4087d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -103,6 +103,8 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
            // again, so that the control with leash can be eventually dispatched
            if (!mGivenInsetsReady && isServerVisible() && !givenInsetsPending
                    && mControlTarget != null) {
                ProtoLog.d(WM_DEBUG_IME,
                        "onPostLayout: IME control ready to be dispatched, ws=%s", ws);
                mGivenInsetsReady = true;
                ImeTracker.forLogging().onProgress(mStatsToken,
                        ImeTracker.PHASE_WM_POST_LAYOUT_NOTIFY_CONTROLS_CHANGED);
@@ -118,6 +120,8 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
                        ImeTracker.PHASE_WM_POST_LAYOUT_NOTIFY_CONTROLS_CHANGED);
                mStatsToken = null;
            } else if (wasServerVisible && !isServerVisible()) {
                ProtoLog.d(WM_DEBUG_IME, "onPostLayout: setImeShowing(false) was: %s, ws=%s",
                        isImeShowing(), ws);
                setImeShowing(false);
            }
        }
@@ -621,6 +625,7 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
            // request (cancelling the initial show) or hide request (aborting the initial show).
            logIsScheduledAndReadyToShowIme(!visible /* aborted */);
        }
        ProtoLog.d(WM_DEBUG_IME, "receiveImeStatsToken: visible=%s", visible);
        if (visible) {
            ImeTracker.forLogging().onCancelled(
                    mStatsToken, ImeTracker.PHASE_WM_ABORT_SHOW_IME_POST_LAYOUT);