FileDocCategorySizeDatePackage
MediaDrm.javaAPI DocAndroid 5.1 API4555Sat Mar 14 14:09:36 GMT 2015android.media

MediaDrm

public final class MediaDrm extends Object

Fields Summary
public static final int
EVENT_KEY_EXPIRED
public static final int
EVENT_KEY_REQUIRED
public static final int
EVENT_PROVISION_REQUIRED
public static final int
EVENT_VENDOR_DEFINED
public static final int
KEY_TYPE_OFFLINE
public static final int
KEY_TYPE_RELEASE
public static final int
KEY_TYPE_STREAMING
public static final String
PROPERTY_ALGORITHMS
public static final String
PROPERTY_DESCRIPTION
public static final String
PROPERTY_DEVICE_UNIQUE_ID
public static final String
PROPERTY_VENDOR
public static final String
PROPERTY_VERSION
Constructors Summary
public MediaDrm(UUID uuid)

 throw new RuntimeException("Stub!"); 
Methods Summary
public native voidcloseSession(byte[] sessionId)

protected voidfinalize()

 throw new RuntimeException("Stub!"); 
public android.media.MediaDrm$CryptoSessiongetCryptoSession(byte[] sessionId, java.lang.String cipherAlgorithm, java.lang.String macAlgorithm)

 throw new RuntimeException("Stub!"); 
public native android.media.MediaDrm$KeyRequestgetKeyRequest(byte[] scope, byte[] init, java.lang.String mimeType, int keyType, java.util.HashMap optionalParameters)

public native byte[]getPropertyByteArray(java.lang.String propertyName)

public native java.lang.StringgetPropertyString(java.lang.String propertyName)

public android.media.MediaDrm$ProvisionRequestgetProvisionRequest()

 throw new RuntimeException("Stub!"); 
public native byte[]getSecureStop(byte[] ssid)

public native java.util.ListgetSecureStops()

public static final booleanisCryptoSchemeSupported(java.util.UUID uuid)

 throw new RuntimeException("Stub!"); 
public static final booleanisCryptoSchemeSupported(java.util.UUID uuid, java.lang.String mimeType)

 throw new RuntimeException("Stub!"); 
public native byte[]openSession()

public native byte[]provideKeyResponse(byte[] scope, byte[] response)

public voidprovideProvisionResponse(byte[] response)

 throw new RuntimeException("Stub!"); 
public native java.util.HashMapqueryKeyStatus(byte[] sessionId)

public final native voidrelease()

public native voidreleaseAllSecureStops()

public native voidreleaseSecureStops(byte[] ssRelease)

public native voidremoveKeys(byte[] sessionId)

public native voidrestoreKeys(byte[] sessionId, byte[] keySetId)

public voidsetOnEventListener(android.media.MediaDrm$OnEventListener listener)

 throw new RuntimeException("Stub!"); 
public native voidsetPropertyByteArray(java.lang.String propertyName, byte[] value)

public native voidsetPropertyString(java.lang.String propertyName, java.lang.String value)