From ff09b41793c30f8a0cce10330d1ef6a36dd5af52 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Fri, 21 Jul 2023 13:24:48 -0400 Subject: [PATCH] Trace RemoteEditText#hideIme which can make binder calls I am not certain how to safely background this call, but I want to trace this method ASAP so that we can quickly identify when this is the culprit in the future. Bug: 288578300 Test: perfetto Change-Id: I060224b37a51a0e063f71cf6151284cb6ef4ed61 --- .../com/android/systemui/statusbar/policy/RemoteInputView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java index 02b7e9176cf21..e00365d8fbcbe 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java @@ -30,6 +30,7 @@ import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.Rect; import android.graphics.drawable.GradientDrawable; +import android.os.Trace; import android.os.UserHandle; import android.text.Editable; import android.text.SpannedString; @@ -1032,10 +1033,12 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene } private void hideIme() { + Trace.beginSection("RemoteEditText#hideIme"); final WindowInsetsController insetsController = getWindowInsetsController(); if (insetsController != null) { insetsController.hide(WindowInsets.Type.ime()); } + Trace.endSection(); } private void defocusIfNeeded(boolean animate) {