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

Commit 2760a753 authored by Nicolò Mazzucato's avatar Nicolò Mazzucato Committed by Android (Google) Code Review
Browse files

Merge "Create flag for enabling layout tracing in SystemUI" into main

parents c3a9fc65 cd5f25b5
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -210,6 +210,13 @@ flag {
   bug: "298186160"
   bug: "298186160"
}
}


flag {
  name: "enable_layout_tracing"
  namespace: "systemui"
  description: "Enables detailed traversal slices during measure and layout in perfetto traces"
  bug: "315274804"
}

flag {
flag {
   name: "quick_settings_visual_haptics_longpress"
   name: "quick_settings_visual_haptics_longpress"
   namespace: "systemui"
   namespace: "systemui"
+4 −0
Original line number Original line Diff line number Diff line
@@ -110,6 +110,10 @@ public class SystemUIApplication extends Application implements
        View.setTracedRequestLayoutClassClass(
        View.setTracedRequestLayoutClassClass(
                SystemProperties.get("persist.debug.trace_request_layout_class", null));
                SystemProperties.get("persist.debug.trace_request_layout_class", null));


        if (Flags.enableLayoutTracing()) {
            View.setTraceLayoutSteps(true);
        }

        if (Process.myUserHandle().equals(UserHandle.SYSTEM)) {
        if (Process.myUserHandle().equals(UserHandle.SYSTEM)) {
            IntentFilter bootCompletedFilter = new
            IntentFilter bootCompletedFilter = new
                    IntentFilter(Intent.ACTION_LOCKED_BOOT_COMPLETED);
                    IntentFilter(Intent.ACTION_LOCKED_BOOT_COMPLETED);