java.lang.Object | |
↳ | android.drm.DrmConvertedStatus |
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()
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATUS_ERROR | Indicate a general failed conversion status. | |||||||||
int | STATUS_INPUTDATA_ERROR | Indicate a failed conversion status due to input data. | |||||||||
int | STATUS_OK | Indicate the conversion status is successful. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
convertedData | Converted data. | ||||||||||
offset | Offset value for the body and header signature. | ||||||||||
statusCode | Status code for the conversion. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
DrmConvertedStatus object with the specified parameters.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Indicate a general failed conversion status.
Indicate a failed conversion status due to input data.
Indicate the conversion status is successful.
Converted data. It is optional and thus can be null.
Status code for the conversion. Must be one of the defined status constants above.
Creates a DrmConvertedStatus
object with the specified parameters.
statusCode | Conversion status. Must be one of the status code constants defined above. |
---|---|
convertedData | Converted data. It can be null. |
offset | Offset value for appending the header and body signature. |