PerfettoHandshake.ResponseExitCodes


public static class PerfettoHandshake.ResponseExitCodes


Summary

Constants

static final int
static final int

Indicates that the broadcast resulted in result=0, which is an equivalent of android.app.Activity.RESULT_CANCELED.

static final int

Required version described in EnableTracingResponse.requiredVersion.

static final int

Could be a result of a stale version of the binary cached locally.

static final int

Required version described in EnableTracingResponse.requiredVersion.

static final int

More specific information in EnableTracingResponse.message

static final int

Constants

RESULT_CODE_ALREADY_ENABLED

public static final int RESULT_CODE_ALREADY_ENABLED = 2

RESULT_CODE_CANCELLED

public static final int RESULT_CODE_CANCELLED = 0

Indicates that the broadcast resulted in result=0, which is an equivalent of android.app.Activity.RESULT_CANCELED.

This most likely means that the app does not expose a PerfettoHandshake compatible receiver.

RESULT_CODE_ERROR_BINARY_MISSING

public static final int RESULT_CODE_ERROR_BINARY_MISSING = 11

Required version described in EnableTracingResponse.requiredVersion. A follow-up enableTracing request expected with ExternalLibraryProvider specified.

RESULT_CODE_ERROR_BINARY_VERIFICATION_ERROR

public static final int RESULT_CODE_ERROR_BINARY_VERIFICATION_ERROR = 13

Could be a result of a stale version of the binary cached locally. Retrying with a freshly downloaded library likely to fix the issue. More specific information in EnableTracingResponse.message

RESULT_CODE_ERROR_BINARY_VERSION_MISMATCH

public static final int RESULT_CODE_ERROR_BINARY_VERSION_MISMATCH = 12

Required version described in EnableTracingResponse.requiredVersion.

RESULT_CODE_ERROR_OTHER

public static final int RESULT_CODE_ERROR_OTHER = 99

More specific information in EnableTracingResponse.message

RESULT_CODE_SUCCESS

public static final int RESULT_CODE_SUCCESS = 1

Public fields