Loading core/java/com/android/internal/inputmethod/ImeTracingServerImpl.java +6 −7 Original line number Diff line number Diff line Loading @@ -16,10 +16,9 @@ package com.android.internal.inputmethod; import static android.os.Build.IS_USER; import android.annotation.NonNull; import android.annotation.Nullable; import android.os.Build; import android.os.SystemClock; import android.util.Log; import android.util.proto.ProtoOutputStream; Loading Loading @@ -173,8 +172,8 @@ class ImeTracingServerImpl extends ImeTracing { @GuardedBy("mEnabledLock") @Override public void startTrace(@Nullable PrintWriter pw) { if (IS_USER) { Log.w(TAG, "Warn: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { Log.w(TAG, "Warn: Tracing is not supported on non debuggable builds."); return; } Loading @@ -193,8 +192,8 @@ class ImeTracingServerImpl extends ImeTracing { @Override public void stopTrace(@Nullable PrintWriter pw) { if (IS_USER) { Log.w(TAG, "Warn: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { Log.w(TAG, "Warn: Tracing is not supported on non debuggable builds."); return; } Loading @@ -217,7 +216,7 @@ class ImeTracingServerImpl extends ImeTracing { */ @Override public void saveForBugreport(@Nullable PrintWriter pw) { if (IS_USER) { if (!Build.isDebuggable()) { return; } synchronized (mEnabledLock) { Loading services/core/java/com/android/server/wm/WindowTracing.java +7 −7 Original line number Diff line number Diff line Loading @@ -16,13 +16,13 @@ package com.android.server.wm; import static android.os.Build.IS_USER; import static com.android.server.wm.WindowManagerTraceProto.ELAPSED_REALTIME_NANOS; import static com.android.server.wm.WindowManagerTraceProto.WHERE; import static com.android.server.wm.WindowManagerTraceProto.WINDOW_MANAGER_SERVICE; import android.annotation.Nullable; import android.os.Build; import android.os.ShellCommand; import android.os.Trace; import android.util.Log; Loading Loading @@ -69,16 +69,16 @@ abstract class WindowTracing { } void startTrace(@Nullable PrintWriter pw) { if (IS_USER) { logAndPrintln(pw, "Error: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { logAndPrintln(pw, "Error: Tracing is not supported on non debuggable builds."); return; } startTraceInternal(pw); } void stopTrace(@Nullable PrintWriter pw) { if (IS_USER) { logAndPrintln(pw, "Error: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { logAndPrintln(pw, "Error: Tracing is not supported on non debuggable builds."); return; } stopTraceInternal(pw); Loading @@ -93,8 +93,8 @@ abstract class WindowTracing { * @param pw Print writer */ void saveForBugreport(@Nullable PrintWriter pw) { if (IS_USER) { logAndPrintln(pw, "Error: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { logAndPrintln(pw, "Error: Tracing is not supported on non debuggable builds."); return; } if (!android.tracing.Flags.perfettoProtologTracing() Loading services/core/java/com/android/server/wm/WindowTracingPerfetto.java +2 −2 Original line number Diff line number Diff line Loading @@ -113,8 +113,8 @@ class WindowTracingPerfetto extends WindowTracing { protected void log(String where) { try { Trace.beginSection(TracingUtils.uiTracingSliceName("Window::log")); boolean isStartLogEvent = where == WHERE_START_TRACING; boolean isOnFrameLogEvent = where == WHERE_ON_FRAME; boolean isStartLogEvent = WHERE_START_TRACING.equals(where); boolean isOnFrameLogEvent = WHERE_ON_FRAME.equals(where); ArrayList<Runnable> pendingStopDones = new ArrayList<>(); Loading Loading
core/java/com/android/internal/inputmethod/ImeTracingServerImpl.java +6 −7 Original line number Diff line number Diff line Loading @@ -16,10 +16,9 @@ package com.android.internal.inputmethod; import static android.os.Build.IS_USER; import android.annotation.NonNull; import android.annotation.Nullable; import android.os.Build; import android.os.SystemClock; import android.util.Log; import android.util.proto.ProtoOutputStream; Loading Loading @@ -173,8 +172,8 @@ class ImeTracingServerImpl extends ImeTracing { @GuardedBy("mEnabledLock") @Override public void startTrace(@Nullable PrintWriter pw) { if (IS_USER) { Log.w(TAG, "Warn: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { Log.w(TAG, "Warn: Tracing is not supported on non debuggable builds."); return; } Loading @@ -193,8 +192,8 @@ class ImeTracingServerImpl extends ImeTracing { @Override public void stopTrace(@Nullable PrintWriter pw) { if (IS_USER) { Log.w(TAG, "Warn: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { Log.w(TAG, "Warn: Tracing is not supported on non debuggable builds."); return; } Loading @@ -217,7 +216,7 @@ class ImeTracingServerImpl extends ImeTracing { */ @Override public void saveForBugreport(@Nullable PrintWriter pw) { if (IS_USER) { if (!Build.isDebuggable()) { return; } synchronized (mEnabledLock) { Loading
services/core/java/com/android/server/wm/WindowTracing.java +7 −7 Original line number Diff line number Diff line Loading @@ -16,13 +16,13 @@ package com.android.server.wm; import static android.os.Build.IS_USER; import static com.android.server.wm.WindowManagerTraceProto.ELAPSED_REALTIME_NANOS; import static com.android.server.wm.WindowManagerTraceProto.WHERE; import static com.android.server.wm.WindowManagerTraceProto.WINDOW_MANAGER_SERVICE; import android.annotation.Nullable; import android.os.Build; import android.os.ShellCommand; import android.os.Trace; import android.util.Log; Loading Loading @@ -69,16 +69,16 @@ abstract class WindowTracing { } void startTrace(@Nullable PrintWriter pw) { if (IS_USER) { logAndPrintln(pw, "Error: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { logAndPrintln(pw, "Error: Tracing is not supported on non debuggable builds."); return; } startTraceInternal(pw); } void stopTrace(@Nullable PrintWriter pw) { if (IS_USER) { logAndPrintln(pw, "Error: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { logAndPrintln(pw, "Error: Tracing is not supported on non debuggable builds."); return; } stopTraceInternal(pw); Loading @@ -93,8 +93,8 @@ abstract class WindowTracing { * @param pw Print writer */ void saveForBugreport(@Nullable PrintWriter pw) { if (IS_USER) { logAndPrintln(pw, "Error: Tracing is not supported on user builds."); if (!Build.isDebuggable()) { logAndPrintln(pw, "Error: Tracing is not supported on non debuggable builds."); return; } if (!android.tracing.Flags.perfettoProtologTracing() Loading
services/core/java/com/android/server/wm/WindowTracingPerfetto.java +2 −2 Original line number Diff line number Diff line Loading @@ -113,8 +113,8 @@ class WindowTracingPerfetto extends WindowTracing { protected void log(String where) { try { Trace.beginSection(TracingUtils.uiTracingSliceName("Window::log")); boolean isStartLogEvent = where == WHERE_START_TRACING; boolean isOnFrameLogEvent = where == WHERE_ON_FRAME; boolean isStartLogEvent = WHERE_START_TRACING.equals(where); boolean isOnFrameLogEvent = WHERE_ON_FRAME.equals(where); ArrayList<Runnable> pendingStopDones = new ArrayList<>(); Loading