[]Struct jni_android_sys::android::media::MediaDrm

#[repr(transparent)]
pub struct MediaDrm(_);

public final class MediaDrm

Required feature: "android-media-MediaDrm"

Methods

impl MediaDrm

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env UUID>>
) -> Result<Local<'env, MediaDrm>, Local<'env, Throwable>>
[src]

MediaDrm

Required features: "java-util-UUID"

pub fn isCryptoSchemeSupported_UUID<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env UUID>>
) -> Result<bool, Local<'env, Throwable>>
[src]

isCryptoSchemeSupported

Required features: "java-util-UUID"

pub fn isCryptoSchemeSupported_UUID_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env UUID>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]

isCryptoSchemeSupported

Required features: "java-lang-String", "java-util-UUID"

pub fn setOnExpirationUpdateListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaDrm_OnExpirationUpdateListener>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnExpirationUpdateListener

Required features: "android-media-MediaDrm_OnExpirationUpdateListener", "android-os-Handler"

pub fn setOnKeyStatusChangeListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaDrm_OnKeyStatusChangeListener>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnKeyStatusChangeListener

Required features: "android-media-MediaDrm_OnKeyStatusChangeListener", "android-os-Handler"

pub fn setOnEventListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaDrm_OnEventListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnEventListener

Required features: "android-media-MediaDrm_OnEventListener"

pub fn openSession<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn openSession_int<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn closeSession<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getKeyRequest<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: impl Into<Option<&'env ByteArray>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: i32,
    arg4: impl Into<Option<&'env HashMap>>
) -> Result<Option<Local<'env, MediaDrm_KeyRequest>>, Local<'env, Throwable>>
[src]

getKeyRequest

Required features: "android-media-MediaDrm_KeyRequest", "java-lang-String", "java-util-HashMap"

pub fn provideKeyResponse<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn restoreKeys<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn removeKeys<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn queryKeyStatus<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, HashMap>>, Local<'env, Throwable>>
[src]

queryKeyStatus

Required features: "java-util-HashMap"

pub fn getProvisionRequest<'env>(
    &'env self
) -> Result<Option<Local<'env, MediaDrm_ProvisionRequest>>, Local<'env, Throwable>>
[src]

getProvisionRequest

Required features: "android-media-MediaDrm_ProvisionRequest"

pub fn provideProvisionResponse<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getSecureStops<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getSecureStops

Required features: "java-util-List"

pub fn getSecureStopIds<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getSecureStopIds

Required features: "java-util-List"

pub fn getSecureStop<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn releaseSecureStops<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn removeSecureStop<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn removeAllSecureStops<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn releaseAllSecureStops<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

pub fn getConnectedHdcpLevel<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getMaxHdcpLevel<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getOpenSessionCount<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getMaxSessionCount<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getMaxSecurityLevel<'env>(
    __jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getSecurityLevel<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getPropertyString<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getPropertyString

Required features: "java-lang-String"

pub fn setPropertyString<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

setPropertyString

Required features: "java-lang-String"

pub fn getPropertyByteArray<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

getPropertyByteArray

Required features: "java-lang-String"

pub fn setPropertyByteArray<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

setPropertyByteArray

Required features: "java-lang-String"

pub fn getMetrics<'env>(
    &'env self
) -> Result<Option<Local<'env, PersistableBundle>>, Local<'env, Throwable>>
[src]

getMetrics

Required features: "android-os-PersistableBundle"

pub fn getCryptoSession<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, MediaDrm_CryptoSession>>, Local<'env, Throwable>>
[src]

getCryptoSession

Required features: "android-media-MediaDrm_CryptoSession", "java-lang-String"

pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn release<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Deprecated

pub const EVENT_KEY_EXPIRED: i32[src]

Deprecated

public static final EVENT_KEY_EXPIRED

pub const EVENT_KEY_REQUIRED: i32[src]

public static final EVENT_KEY_REQUIRED

pub const EVENT_PROVISION_REQUIRED: i32[src]

Deprecated

public static final EVENT_PROVISION_REQUIRED

pub const EVENT_SESSION_RECLAIMED: i32[src]

public static final EVENT_SESSION_RECLAIMED

pub const EVENT_VENDOR_DEFINED: i32[src]

public static final EVENT_VENDOR_DEFINED

pub const HDCP_LEVEL_UNKNOWN: i32[src]

public static final HDCP_LEVEL_UNKNOWN

pub const HDCP_NONE: i32[src]

public static final HDCP_NONE

pub const HDCP_NO_DIGITAL_OUTPUT: i32[src]

public static final HDCP_NO_DIGITAL_OUTPUT

pub const HDCP_V1: i32[src]

public static final HDCP_V1

pub const HDCP_V2: i32[src]

public static final HDCP_V2

pub const HDCP_V2_1: i32[src]

public static final HDCP_V2_1

pub const HDCP_V2_2: i32[src]

public static final HDCP_V2_2

pub const KEY_TYPE_OFFLINE: i32[src]

public static final KEY_TYPE_OFFLINE

pub const KEY_TYPE_RELEASE: i32[src]

public static final KEY_TYPE_RELEASE

pub const KEY_TYPE_STREAMING: i32[src]

public static final KEY_TYPE_STREAMING

pub const PROPERTY_ALGORITHMS: &'static str[src]

public static final PROPERTY_ALGORITHMS

pub const PROPERTY_DESCRIPTION: &'static str[src]

public static final PROPERTY_DESCRIPTION

pub const PROPERTY_DEVICE_UNIQUE_ID: &'static str[src]

public static final PROPERTY_DEVICE_UNIQUE_ID

pub const PROPERTY_VENDOR: &'static str[src]

public static final PROPERTY_VENDOR

pub const PROPERTY_VERSION: &'static str[src]

public static final PROPERTY_VERSION

pub const SECURITY_LEVEL_HW_SECURE_ALL: i32[src]

public static final SECURITY_LEVEL_HW_SECURE_ALL

pub const SECURITY_LEVEL_HW_SECURE_CRYPTO: i32[src]

public static final SECURITY_LEVEL_HW_SECURE_CRYPTO

pub const SECURITY_LEVEL_HW_SECURE_DECODE: i32[src]

public static final SECURITY_LEVEL_HW_SECURE_DECODE

pub const SECURITY_LEVEL_SW_SECURE_CRYPTO: i32[src]

public static final SECURITY_LEVEL_SW_SECURE_CRYPTO

pub const SECURITY_LEVEL_SW_SECURE_DECODE: i32[src]

public static final SECURITY_LEVEL_SW_SECURE_DECODE

pub const SECURITY_LEVEL_UNKNOWN: i32[src]

public static final SECURITY_LEVEL_UNKNOWN

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for MediaDrm

impl AsRef<AutoCloseable> for MediaDrm

impl AsValidJObjectAndEnv for MediaDrm

impl Deref for MediaDrm

type Target = Object

The resulting type after dereferencing.

impl JniType for MediaDrm

Auto Trait Implementations

impl RefUnwindSafe for MediaDrm

impl !Send for MediaDrm

impl !Sync for MediaDrm

impl Unpin for MediaDrm

impl UnwindSafe for MediaDrm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.