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

Commit 37a678c2 authored by Mike Ma's avatar Mike Ma Committed by Android (Google) Code Review
Browse files

Merge "Add instrumentation data to host proto lib"

parents f559685b da3a2955
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1558,6 +1558,7 @@ LOCAL_PROTOC_FLAGS := \
LOCAL_SOURCE_FILES_ALL_GENERATED := true
LOCAL_SRC_FILES := \
    tools/streaming_proto/stream.proto \
    cmds/am/proto/instrumentation_data.proto \
    $(call all-proto-files-under, core/proto) \
    $(call all-proto-files-under, libs/incident/proto)
include $(BUILD_HOST_JAVA_LIBRARY)
+10 −0
Original line number Diff line number Diff line
@@ -47,6 +47,16 @@ import java.util.Locale;

/**
 * Runs the am instrument command
 *
 * Test Result Code:
 * 1 - Test running
 * 0 - Test passed
 * -2 - assertion failure
 * -1 - other exceptions
 *
 * Session Result Code:
 * -1: Success
 * other: Failure
 */
public class Instrument {
    public static final String DEFAULT_LOG_DIR = "instrument-logs";