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

Commit 2ede6b98 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "Revert "Enable protolog by default for WMShell"" into tm-qpr-dev...

Merge "Merge "Revert "Enable protolog by default for WMShell"" into tm-qpr-dev am: 178a0bf1 am: 225af7cf" into udc-dev am: b6b98eb9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21534692



Change-Id: Ibd65be74df7347d436f85d63cc2b20498627f715
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 5d2e8eba b6b98eb9
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@

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;
@@ -43,9 +41,6 @@ public class ProtoLogController implements ShellCommandHandler.ShellCommandActio

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

    @Override
+2 −1
Original line number Diff line number Diff line
@@ -31,7 +31,8 @@ import java.io.PrintWriter;
 */
public class ShellProtoLogImpl extends BaseProtoLogImpl {
    private static final String TAG = "ProtoLogImpl";
    private static final int BUFFER_CAPACITY = 128 * 1024;
    private static final int BUFFER_CAPACITY = 1024 * 1024;
    // TODO: find a proper location to save the protolog message file
    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";