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

Commit 069298ba authored by Hongwei Wang's avatar Hongwei Wang Committed by Automerger Merge Worker
Browse files

Merge "Enable protolog by default for WMShell" into tm-qpr-dev am: 25e295e1 am: 5d332d77

parents df5bd760 5d332d77
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.wm.shell;

import android.os.Build;

import com.android.wm.shell.protolog.ShellProtoLogImpl;
import com.android.wm.shell.sysui.ShellCommandHandler;
import com.android.wm.shell.sysui.ShellInit;
@@ -41,6 +43,9 @@ public class ProtoLogController implements ShellCommandHandler.ShellCommandActio

    void onInit() {
        mShellCommandHandler.addCommandCallback("protolog", this, this);
        if (Build.IS_DEBUGGABLE) {
            mShellProtoLog.startProtoLog(null /* PrintWriter */);
        }
    }

    @Override
+1 −2
Original line number Diff line number Diff line
@@ -31,8 +31,7 @@ import java.io.PrintWriter;
 */
public class ShellProtoLogImpl extends BaseProtoLogImpl {
    private static final String TAG = "ProtoLogImpl";
    private static final int BUFFER_CAPACITY = 1024 * 1024;
    // TODO: find a proper location to save the protolog message file
    private static final int BUFFER_CAPACITY = 128 * 1024;
    private static final String LOG_FILENAME = "/data/misc/wmtrace/shell_log.winscope";
    private static final String VIEWER_CONFIG_FILENAME = "/system_ext/etc/wmshell.protolog.json.gz";