ProfilingResult
class ProfilingResult : Parcelable
kotlin.Any | |
↳ | android.os.ProfilingResult |
Encapsulates results of a single profiling request operation.
Summary
Constants | |
---|---|
static Int |
The request was executed and failed for a reason not specified below. |
static Int |
The request failed due to invalid ProfilingRequest. |
static Int |
The request was executed and failed due to a lack of disk space. |
static Int |
The request was executed but post processing failed and the result was discarded. |
static Int |
The request was denied due to profiling already in progress. |
static Int |
The request was denied due to process level rate limiting. |
static Int |
The request was denied due to system level rate limiting. |
static Int |
The request was executed and succeeded. |
static Int |
The request was denied or failed for an unspecified reason. |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Int |
The result ErrorCode for the profiling request indicating the failure reason if applicable. |
String? |
Additional details about failures that occurred, if applicable. |
String? |
The file path of the profiling result data. |
String? |
getTag() The tag defined by the caller at request time. |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<ProfilingResult!> |
Constants
ERROR_FAILED_EXECUTING
static val ERROR_FAILED_EXECUTING: Int
The request was executed and failed for a reason not specified below.
Value: 4
ERROR_FAILED_INVALID_REQUEST
static val ERROR_FAILED_INVALID_REQUEST: Int
The request failed due to invalid ProfilingRequest.
Value: 7
ERROR_FAILED_NO_DISK_SPACE
static val ERROR_FAILED_NO_DISK_SPACE: Int
The request was executed and failed due to a lack of disk space.
Value: 6
ERROR_FAILED_POST_PROCESSING
static val ERROR_FAILED_POST_PROCESSING: Int
The request was executed but post processing failed and the result was discarded.
Value: 5
ERROR_FAILED_PROFILING_IN_PROGRESS
static val ERROR_FAILED_PROFILING_IN_PROGRESS: Int
The request was denied due to profiling already in progress.
Value: 3
ERROR_FAILED_RATE_LIMIT_PROCESS
static val ERROR_FAILED_RATE_LIMIT_PROCESS: Int
The request was denied due to process level rate limiting.
Value: 2
ERROR_FAILED_RATE_LIMIT_SYSTEM
static val ERROR_FAILED_RATE_LIMIT_SYSTEM: Int
The request was denied due to system level rate limiting.
Value: 1
ERROR_NONE
static val ERROR_NONE: Int
The request was executed and succeeded.
Value: 0
ERROR_UNKNOWN
static val ERROR_UNKNOWN: Int
The request was denied or failed for an unspecified reason.
Value: 8
Public methods
describeContents
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getErrorCode
fun getErrorCode(): Int
The result ErrorCode for the profiling request indicating the failure reason if applicable.
getErrorMessage
fun getErrorMessage(): String?
Additional details about failures that occurred, if applicable.
Return | |
---|---|
String? |
This value may be null . |
getResultFilePath
fun getResultFilePath(): String?
The file path of the profiling result data. Will be null if {@see #getErrorCode} returns code other than {@see #ERROR_NONE}.
getTag
fun getTag(): String?
The tag defined by the caller at request time.
Return | |
---|---|
String? |
This value may be null . |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
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_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |