ProfilingResult
public
final
class
ProfilingResult
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.os.ProfilingResult |
Encapsulates results of a single profiling request operation.
Summary
Constants | |
---|---|
int |
ERROR_FAILED_EXECUTING
The request was executed and failed for a reason not specified below. |
int |
ERROR_FAILED_INVALID_REQUEST
The request failed due to invalid ProfilingRequest. |
int |
ERROR_FAILED_NO_DISK_SPACE
The request was executed and failed due to a lack of disk space. |
int |
ERROR_FAILED_POST_PROCESSING
The request was executed but post processing failed and the result was discarded. |
int |
ERROR_FAILED_PROFILING_IN_PROGRESS
The request was denied due to profiling already in progress. |
int |
ERROR_FAILED_RATE_LIMIT_PROCESS
The request was denied due to process level rate limiting. |
int |
ERROR_FAILED_RATE_LIMIT_SYSTEM
The request was denied due to system level rate limiting. |
int |
ERROR_NONE
The request was executed and succeeded. |
int |
ERROR_UNKNOWN
The request was denied or failed for an unspecified reason. |
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<ProfilingResult> |
CREATOR
|
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
int
|
getErrorCode()
The result ErrorCode for the profiling request indicating the failure reason if applicable. |
String
|
getErrorMessage()
Additional details about failures that occurred, if applicable. |
String
|
getResultFilePath()
The file path of the profiling result data. |
String
|
getTag()
The tag defined by the caller at request time. |
int
|
getTriggerType()
Trigger type that started this profiling, or |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
Constants
ERROR_FAILED_EXECUTING
public static final int ERROR_FAILED_EXECUTING
The request was executed and failed for a reason not specified below.
Constant Value: 4 (0x00000004)
ERROR_FAILED_INVALID_REQUEST
public static final int ERROR_FAILED_INVALID_REQUEST
The request failed due to invalid ProfilingRequest.
Constant Value: 7 (0x00000007)
ERROR_FAILED_NO_DISK_SPACE
public static final int ERROR_FAILED_NO_DISK_SPACE
The request was executed and failed due to a lack of disk space.
Constant Value: 6 (0x00000006)
ERROR_FAILED_POST_PROCESSING
public static final int ERROR_FAILED_POST_PROCESSING
The request was executed but post processing failed and the result was discarded.
Constant Value: 5 (0x00000005)
ERROR_FAILED_PROFILING_IN_PROGRESS
public static final int ERROR_FAILED_PROFILING_IN_PROGRESS
The request was denied due to profiling already in progress.
Constant Value: 3 (0x00000003)
ERROR_FAILED_RATE_LIMIT_PROCESS
public static final int ERROR_FAILED_RATE_LIMIT_PROCESS
The request was denied due to process level rate limiting.
Constant Value: 2 (0x00000002)
ERROR_FAILED_RATE_LIMIT_SYSTEM
public static final int ERROR_FAILED_RATE_LIMIT_SYSTEM
The request was denied due to system level rate limiting.
Constant Value: 1 (0x00000001)
ERROR_NONE
public static final int ERROR_NONE
The request was executed and succeeded.
Constant Value: 0 (0x00000000)
ERROR_UNKNOWN
public static final int ERROR_UNKNOWN
The request was denied or failed for an unspecified reason.
Constant Value: 8 (0x00000008)
Fields
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(android.os.Parcel, int)
,
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR
bit.
Returns | |
---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
getErrorCode
public int getErrorCode ()
The result ErrorCode for the profiling request indicating the failure reason if applicable.
getErrorMessage
public String getErrorMessage ()
Additional details about failures that occurred, if applicable.
Returns | |
---|---|
String |
This value may be null . |
getResultFilePath
public String getResultFilePath ()
The file path of the profiling result data. Will be null if returns code other than .
Returns | |
---|---|
String |
See also:
getTag
public String getTag ()
The tag defined by the caller at request time.
Returns | |
---|---|
String |
This value may be null . |
getTriggerType
public int getTriggerType ()
Trigger type that started this profiling, or ProfilingTrigger.TRIGGER_TYPE_NONE
for
profiling not started by a trigger.
Returns | |
---|---|
int |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel : This value cannot be null . |
flags |
int : Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE .
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |