# Print output for @column tags ?>
public
final
class
PlaybackErrorEvent
extends Event
implements
Parcelable
java.lang.Object | ||
↳ | android.media.metrics.Event | |
↳ | android.media.metrics.PlaybackErrorEvent |
Playback error event.
Nested classes | |
---|---|
class |
PlaybackErrorEvent.Builder
A builder for |
Constants | |
---|---|
int |
ERROR_AUDIO_TRACK_INIT_FAILED
Error code for an AudioTrack initialization failure |
int |
ERROR_AUDIO_TRACK_OTHER
Error code for other AudioTrack errors |
int |
ERROR_AUDIO_TRACK_WRITE_FAILED
Error code for an AudioTrack write operation failure |
int |
ERROR_DECODER_INIT_FAILED
Error code for a decoder initialization failure |
int |
ERROR_DECODING_FAILED
Error code for a failure while trying to decode media samples |
int |
ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES
Error code for trying to decode content whose format exceeds the capabilities of the device. |
int |
ERROR_DECODING_FORMAT_UNSUPPORTED
Error code for trying to decode content whose format is not supported |
int |
ERROR_DECODING_OTHER
Error code for other decoding errors |
int |
ERROR_DRM_CONTENT_ERROR
Error code for attempting to play incompatible DRM-protected content |
int |
ERROR_DRM_DEVICE_REVOKED
Error code for the device having revoked DRM privileges |
int |
ERROR_DRM_DISALLOWED_OPERATION
Error code an operation being disallowed by a license policy |
int |
ERROR_DRM_LICENSE_ACQUISITION_FAILED
Error code for a failure while trying to obtain a license |
int |
ERROR_DRM_OTHER
Error code for other DRM errors |
int |
ERROR_DRM_PROVISIONING_FAILED
Error code for a failure while provisioning the device |
int |
ERROR_DRM_SCHEME_UNSUPPORTED
Error code for a chosen DRM protection scheme not being supported by the device |
int |
ERROR_DRM_SYSTEM_ERROR
Error code for an error in the DRM system |
int |
ERROR_IO_BAD_HTTP_STATUS
Error code for an HTTP server returning an unexpected HTTP response status code |
int |
ERROR_IO_CONNECTION_CLOSED
Error code for an existing network connection being unexpectedly closed |
int |
ERROR_IO_CONNECTION_TIMEOUT
Error code for a network timeout, meaning the server is taking too long to fulfill a request |
int |
ERROR_IO_DNS_FAILED
Error code for failing to resolve a hostname |
int |
ERROR_IO_FILE_NOT_FOUND
Error code for a non-existent file |
int |
ERROR_IO_NETWORK_CONNECTION_FAILED
Error code for a failure while establishing a network connection |
int |
ERROR_IO_NETWORK_UNAVAILABLE
Error code for lack of network connectivity while trying to access a network resource |
int |
ERROR_IO_NO_PERMISSION
Error code for lack of permission to perform an IO operation, for example, lack of permission to access internet or external storage. |
int |
ERROR_IO_OTHER
Error code for other Input/Output errors |
int |
ERROR_OTHER
Error code for other errors |
int |
ERROR_PARSING_CONTAINER_MALFORMED
Error code for a parsing error associated to a media container format bitstream |
int |
ERROR_PARSING_CONTAINER_UNSUPPORTED
Error code for attempting to extract a file with an unsupported media container format, or an unsupported media container feature |
int |
ERROR_PARSING_MANIFEST_MALFORMED
Error code for a parsing error associated to a media manifest |
int |
ERROR_PARSING_MANIFEST_UNSUPPORTED
Error code for an unsupported feature in a media manifest |
int |
ERROR_PARSING_OTHER
Error code for other media parsing errors |
int |
ERROR_PLAYER_BEHIND_LIVE_WINDOW
Error code for the loading position falling behind the sliding window of available live content. |
int |
ERROR_PLAYER_OTHER
Error code for other player errors |
int |
ERROR_PLAYER_REMOTE
Error code for an unidentified error in a remote controller or player |
int |
ERROR_RUNTIME
Error code for runtime errors |
int |
ERROR_UNKNOWN
Unknown error code. |
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<PlaybackErrorEvent> |
CREATOR
|
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
boolean
|
equals(Object o)
Indicates whether some other object is "equal to" this one. |
int
|
getErrorCode()
Gets error code. |
Bundle
|
getMetricsBundle()
Gets metrics-related information that is not supported by dedicated methods. |
int
|
getSubErrorCode()
Gets sub error code. |
long
|
getTimeSinceCreatedMillis()
Gets the timestamp since creation of the playback session in milliseconds. |
int
|
hashCode()
Returns a hash code value for the object. |
String
|
toString()
Returns a string representation of the object. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
public static final int ERROR_AUDIO_TRACK_INIT_FAILED
Error code for an AudioTrack initialization failure
Constant Value: 17 (0x00000011)
public static final int ERROR_AUDIO_TRACK_OTHER
Error code for other AudioTrack errors
Constant Value: 19 (0x00000013)
public static final int ERROR_AUDIO_TRACK_WRITE_FAILED
Error code for an AudioTrack write operation failure
Constant Value: 18 (0x00000012)
public static final int ERROR_DECODER_INIT_FAILED
Error code for a decoder initialization failure
Constant Value: 13 (0x0000000d)
public static final int ERROR_DECODING_FAILED
Error code for a failure while trying to decode media samples
Constant Value: 14 (0x0000000e)
public static final int ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES
Error code for trying to decode content whose format exceeds the capabilities of the device.
Constant Value: 15 (0x0000000f)
public static final int ERROR_DECODING_FORMAT_UNSUPPORTED
Error code for trying to decode content whose format is not supported
Constant Value: 35 (0x00000023)
public static final int ERROR_DECODING_OTHER
Error code for other decoding errors
Constant Value: 16 (0x00000010)
public static final int ERROR_DRM_CONTENT_ERROR
Error code for attempting to play incompatible DRM-protected content
Constant Value: 28 (0x0000001c)
public static final int ERROR_DRM_DEVICE_REVOKED
Error code for the device having revoked DRM privileges
Constant Value: 29 (0x0000001d)
public static final int ERROR_DRM_DISALLOWED_OPERATION
Error code an operation being disallowed by a license policy
Constant Value: 26 (0x0000001a)
public static final int ERROR_DRM_LICENSE_ACQUISITION_FAILED
Error code for a failure while trying to obtain a license
Constant Value: 25 (0x00000019)
public static final int ERROR_DRM_OTHER
Error code for other DRM errors
Constant Value: 30 (0x0000001e)
public static final int ERROR_DRM_PROVISIONING_FAILED
Error code for a failure while provisioning the device
Constant Value: 24 (0x00000018)
public static final int ERROR_DRM_SCHEME_UNSUPPORTED
Error code for a chosen DRM protection scheme not being supported by the device
Constant Value: 23 (0x00000017)
public static final int ERROR_DRM_SYSTEM_ERROR
Error code for an error in the DRM system
Constant Value: 27 (0x0000001b)
public static final int ERROR_IO_BAD_HTTP_STATUS
Error code for an HTTP server returning an unexpected HTTP response status code
Constant Value: 5 (0x00000005)
public static final int ERROR_IO_CONNECTION_CLOSED
Error code for an existing network connection being unexpectedly closed
Constant Value: 8 (0x00000008)
public static final int ERROR_IO_CONNECTION_TIMEOUT
Error code for a network timeout, meaning the server is taking too long to fulfill a request
Constant Value: 7 (0x00000007)
public static final int ERROR_IO_DNS_FAILED
Error code for failing to resolve a hostname
Constant Value: 6 (0x00000006)
public static final int ERROR_IO_FILE_NOT_FOUND
Error code for a non-existent file
Constant Value: 31 (0x0000001f)
public static final int ERROR_IO_NETWORK_CONNECTION_FAILED
Error code for a failure while establishing a network connection
Constant Value: 4 (0x00000004)
public static final int ERROR_IO_NETWORK_UNAVAILABLE
Error code for lack of network connectivity while trying to access a network resource
Constant Value: 3 (0x00000003)
public static final int ERROR_IO_NO_PERMISSION
Error code for lack of permission to perform an IO operation, for example, lack of permission to access internet or external storage.
Constant Value: 32 (0x00000020)
public static final int ERROR_IO_OTHER
Error code for other Input/Output errors
Constant Value: 9 (0x00000009)
public static final int ERROR_OTHER
Error code for other errors
Constant Value: 1 (0x00000001)
public static final int ERROR_PARSING_CONTAINER_MALFORMED
Error code for a parsing error associated to a media container format bitstream
Constant Value: 11 (0x0000000b)
public static final int ERROR_PARSING_CONTAINER_UNSUPPORTED
Error code for attempting to extract a file with an unsupported media container format, or an unsupported media container feature
Constant Value: 34 (0x00000022)
public static final int ERROR_PARSING_MANIFEST_MALFORMED
Error code for a parsing error associated to a media manifest
Constant Value: 10 (0x0000000a)
public static final int ERROR_PARSING_MANIFEST_UNSUPPORTED
Error code for an unsupported feature in a media manifest
Constant Value: 33 (0x00000021)
public static final int ERROR_PARSING_OTHER
Error code for other media parsing errors
Constant Value: 12 (0x0000000c)
public static final int ERROR_PLAYER_BEHIND_LIVE_WINDOW
Error code for the loading position falling behind the sliding window of available live content.
Constant Value: 21 (0x00000015)
public static final int ERROR_PLAYER_OTHER
Error code for other player errors
Constant Value: 22 (0x00000016)
public static final int ERROR_PLAYER_REMOTE
Error code for an unidentified error in a remote controller or player
Constant Value: 20 (0x00000014)
public static final int ERROR_RUNTIME
Error code for runtime errors
Constant Value: 2 (0x00000002)
public static final int ERROR_UNKNOWN
Unknown error code.
Constant Value: 0 (0x00000000)
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 |
public boolean equals (Object o)
Indicates whether some other object is "equal to" this one.
The equals
method implements an equivalence relation
on non-null object references:
x
, x.equals(x)
should return
true
.
x
and y
, x.equals(y)
should return true
if and only if
y.equals(x)
returns true
.
x
, y
, and z
, if
x.equals(y)
returns true
and
y.equals(z)
returns true
, then
x.equals(z)
should return true
.
x
and y
, multiple invocations of
x.equals(y)
consistently return true
or consistently return false
, provided no
information used in equals
comparisons on the
objects is modified.
x
,
x.equals(null)
should return false
.
The equals
method for class Object
implements
the most discriminating possible equivalence relation on objects;
that is, for any non-null reference values x
and
y
, this method returns true
if and only
if x
and y
refer to the same object
(x == y
has the value true
).
Note that it is generally necessary to override the hashCode
method whenever this method is overridden, so as to maintain the
general contract for the hashCode
method, which states
that equal objects must have equal hash codes.
Parameters | |
---|---|
o |
Object : This value may be null . |
Returns | |
---|---|
boolean |
true if this object is the same as the obj
argument; false otherwise. |
public int getErrorCode ()
Gets error code.
public Bundle getMetricsBundle ()
Gets metrics-related information that is not supported by dedicated methods.
It is intended to be used for backwards compatibility by the metrics infrastructure.
Returns | |
---|---|
Bundle |
This value cannot be null . |
public int getSubErrorCode ()
Gets sub error code.
Returns | |
---|---|
int |
Value is between Integer.MIN_VALUE and Integer.MAX_VALUE inclusive |
public long getTimeSinceCreatedMillis ()
Gets the timestamp since creation of the playback session in milliseconds.
Returns | |
---|---|
long |
the timestamp since the playback is created, or -1 if unknown. Value is -1 or greater |
See also:
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:
hashCode
method
must consistently return the same integer, provided no information
used in equals
comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
equals(Object)
method, then calling the hashCode
method on each of
the two objects must produce the same integer result.
equals(java.lang.Object)
method, then calling the hashCode
method 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.
As much as is reasonably practical, the hashCode method defined by
class Object
does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
Java™ programming language.)
Returns | |
---|---|
int |
a hash code value for this object. |
public String toString ()
Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Returns | |
---|---|
String |
a string representation of the object. |
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 |