Example usage for android.media MediaDrm PROPERTY_VENDOR

List of usage examples for android.media MediaDrm PROPERTY_VENDOR

Introduction

In this page you can find the example usage for android.media MediaDrm PROPERTY_VENDOR.

Prototype

String PROPERTY_VENDOR

To view the source code for android.media MediaDrm PROPERTY_VENDOR.

Click Source Link

Document

String property name: identifies the maker of the DRM plugin

Usage

From source file:at.amartinz.hardware.drm.BaseDrmInfo.java

private MediaDrm setup() {
    MediaDrm drm;//from w w  w  .  ja  v  a  2s . c  o  m
    try {
        drm = new MediaDrm(getUuid());
    } catch (UnsupportedSchemeException use) {
        drm = null;
    }

    if (drm == null) {
        return null;
    }

    vendor = getProperty(drm, MediaDrm.PROPERTY_VENDOR);
    version = getProperty(drm, MediaDrm.PROPERTY_VERSION);
    description = getProperty(drm, MediaDrm.PROPERTY_DESCRIPTION);

    systemId = getProperty(drm, "systemId");
    deviceId = getProperty(drm, MediaDrm.PROPERTY_DEVICE_UNIQUE_ID);

    algorithms = getProperty(drm, MediaDrm.PROPERTY_ALGORITHMS);
    algorithms = splitList(algorithms);

    securityLevel = getProperty(drm, "securityLevel");
    hdcpLevel = getProperty(drm, "hdcpLevel");
    hdcpLevelMax = getProperty(drm, "maxHdcpLevel");

    isUsageReportingSupported = getBooleanProperty(drm, "usageReportingSupport");

    sessionNumberMax = getProperty(drm, "maxNumberOfSessions");
    sessionNumberOpen = getProperty(drm, "numberOfOpenSessions");

    return drm;
}