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. |
boolean
|
equals(Object other)
Indicates whether some other object is "equal to" this one. |
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 |
int
|
hashCode()
Returns a hash code value for the object. |
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
|
equals
public boolean equals (Object other)
Indicates whether some other object is "equal to" this one.
The equals method implements an equivalence relation
on non-null object references:
- It is reflexive: for any non-null reference value
x,x.equals(x)should returntrue. - It is symmetric: for any non-null reference values
xandy,x.equals(y)should returntrueif and only ify.equals(x)returnstrue. - It is transitive: for any non-null reference values
x,y, andz, ifx.equals(y)returnstrueandy.equals(z)returnstrue, thenx.equals(z)should returntrue. - It is consistent: for any non-null reference values
xandy, multiple invocations ofx.equals(y)consistently returntrueor consistently returnfalse, provided no information used inequalscomparisons on the objects is modified. - For any non-null reference value
x,x.equals(null)should returnfalse.
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| Parameters | |
|---|---|
other |
Object: This value may be null. |
| Returns | |
|---|---|
boolean |
true if this object is the same as the obj
argument; false otherwise. |
getErrorCode
public int getErrorCode ()
The result ErrorCode for the profiling request indicating the failure reason if applicable.
| Returns | |
|---|---|
int |
Value is one of the following: |
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 getErrorCode() returns code other than ERROR_NONE.
| Returns | |
|---|---|
String |
|
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 |
|
hashCode
public int hashCode ()
Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
HashMap.
The general contract of hashCode is:
- Whenever it is invoked on the same object more than once during
an execution of a Java application, the
hashCodemethod must consistently return the same integer, provided no information used inequalscomparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. - If two objects are equal according to the
equalsmethod, then calling thehashCodemethod on each of the two objects must produce the same integer result. - It is not required that if two objects are unequal
according to the
equalsmethod, then calling thehashCodemethod on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
| Returns | |
|---|---|
int |
a hash code value for this object. |
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 the following:
|