Stay organized with collections
Save and categorize content based on your preferences.
DrmConvertedStatus
public
class
DrmConvertedStatus
extends Object
This class was deprecated
in API level 30.
Please use MediaDrm
An entity class that wraps converted data, conversion status, and the
offset for appending the header and body signature to the converted data.
An instance of this class may be created two ways by the drm framework:
a) a call to DrmManagerClient.convertData()
and
b) a call to DrmManagerClient.closeConvertSession()
.
An valid offset value is provided only from a success call to
DrmManagerClient.closeConvertSession()
.
Summary
Fields |
public
final
byte[] |
convertedData
Converted data.
|
public
final
int |
offset
Offset value for the body and header signature.
|
public
final
int |
statusCode
Status code for the conversion.
|
Public constructors |
DrmConvertedStatus(int statusCode, byte[] convertedData, int offset)
Creates a DrmConvertedStatus object with the specified parameters.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
STATUS_ERROR
public static final int STATUS_ERROR
Indicate a general failed conversion status.
Constant Value:
3
(0x00000003)
public static final int STATUS_INPUTDATA_ERROR
Indicate a failed conversion status due to input data.
Constant Value:
2
(0x00000002)
STATUS_OK
public static final int STATUS_OK
Indicate the conversion status is successful.
Constant Value:
1
(0x00000001)
Fields
convertedData
public final byte[] convertedData
Converted data. It is optional and thus can be null.
offset
public final int offset
Offset value for the body and header signature.
statusCode
public final int statusCode
Status code for the conversion. Must be one of the defined status
constants above.
Public constructors
DrmConvertedStatus
public DrmConvertedStatus (int statusCode,
byte[] convertedData,
int offset)
Creates a DrmConvertedStatus
object with the specified parameters.
Parameters |
statusCode |
int : Conversion status. Must be one of the status code constants
defined above. |
convertedData |
byte : Converted data. It can be null. |
offset |
int : Offset value for appending the header and body signature. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DrmConvertedStatus\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Fields](#lfields) \\| [Ctors](#pubctors) \\| [Inherited Methods](#inhmethods) \n\nDrmConvertedStatus\n==================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/drm/DrmConvertedStatus \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\nclass\nDrmConvertedStatus\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.drm.DrmConvertedStatus |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This class was deprecated\nin API level 30.** \n\nPlease use [MediaDrm](/reference/android/media/MediaDrm)\n\nAn entity class that wraps converted data, conversion status, and the\noffset for appending the header and body signature to the converted data.\nAn instance of this class may be created two ways by the drm framework:\na) a call to [DrmManagerClient.convertData()](/reference/android/drm/DrmManagerClient#convertData(int,%20byte[])) and\nb) a call to [DrmManagerClient.closeConvertSession()](/reference/android/drm/DrmManagerClient#closeConvertSession(int)).\nAn valid offset value is provided only from a success call to\n[DrmManagerClient.closeConvertSession()](/reference/android/drm/DrmManagerClient#closeConvertSession(int)).\n\nSummary\n-------\n\n| ### Constants ||\n|-------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [STATUS_ERROR](/reference/android/drm/DrmConvertedStatus#STATUS_ERROR) Indicate a general failed conversion status. |\n| `int` | [STATUS_INPUTDATA_ERROR](/reference/android/drm/DrmConvertedStatus#STATUS_INPUTDATA_ERROR) Indicate a failed conversion status due to input data. |\n| `int` | [STATUS_OK](/reference/android/drm/DrmConvertedStatus#STATUS_OK) Indicate the conversion status is successful. |\n\n| ### Fields ||\n|------------------------|------------------------------------------------------------------------------------------------------------|\n| ` public final byte[]` | [convertedData](/reference/android/drm/DrmConvertedStatus#convertedData) Converted data. |\n| ` public final int` | [offset](/reference/android/drm/DrmConvertedStatus#offset) Offset value for the body and header signature. |\n| ` public final int` | [statusCode](/reference/android/drm/DrmConvertedStatus#statusCode) Status code for the conversion. |\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[DrmConvertedStatus](/reference/android/drm/DrmConvertedStatus#DrmConvertedStatus(int,%20byte[],%20int))`(int statusCode, byte[] convertedData, int offset) ` Creates a `DrmConvertedStatus` object with the specified parameters. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### STATUS_ERROR\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATUS_ERROR\n```\n\nIndicate a general failed conversion status.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### STATUS_INPUTDATA_ERROR\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATUS_INPUTDATA_ERROR\n```\n\nIndicate a failed conversion status due to input data.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### STATUS_OK\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATUS_OK\n```\n\nIndicate the conversion status is successful.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\nFields\n------\n\n### convertedData\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic final byte[] convertedData\n```\n\nConverted data. It is optional and thus can be null.\n\n\u003cbr /\u003e\n\n### offset\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic final int offset\n```\n\nOffset value for the body and header signature.\n\n\u003cbr /\u003e\n\n### statusCode\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic final int statusCode\n```\n\nStatus code for the conversion. Must be one of the defined status\nconstants above.\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### DrmConvertedStatus\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic DrmConvertedStatus (int statusCode, \n byte[] convertedData, \n int offset)\n```\n\nCreates a `DrmConvertedStatus` object with the specified parameters.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|------------------------------------------------------------------------------------------|\n| `statusCode` | `int`: Conversion status. Must be one of the status code constants defined above. \u003cbr /\u003e |\n| `convertedData` | `byte`: Converted data. It can be null. \u003cbr /\u003e |\n| `offset` | `int`: Offset value for appending the header and body signature. \u003cbr /\u003e |"]]