Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 054d15cd authored by Robert Shih's avatar Robert Shih Committed by Android (Google) Code Review
Browse files

Merge "MediaDrm#requiresSecureDecoder: Clarify mime type handling and result" into sc-dev

parents 8a04f3a9 9c2aae6d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2495,7 +2495,10 @@ public final class MediaDrm implements AutoCloseable {
     * The default security level is defined as the highest security level
     * supported on the device.
     *
     * @param mime The mime type of the media data
     * @param mime The mime type of the media data. Please use {@link
     *             #isCryptoSchemeSupported(UUID, String)} to query mime type support separately;
     *             for unsupported mime types the return value of {@link
     *             #requiresSecureDecoder(String)} is crypto scheme dependent.
     */
    public boolean requiresSecureDecoder(@NonNull String mime) {
        return requiresSecureDecoder(mime, getMaxSecurityLevel());
@@ -2505,7 +2508,10 @@ public final class MediaDrm implements AutoCloseable {
     * Query if the crypto scheme requires the use of a secure decoder
     * to decode data of the given mime type at the given security level.
     *
     * @param mime The mime type of the media data
     * @param mime The mime type of the media data. Please use {@link
     *             #isCryptoSchemeSupported(UUID, String, int)} to query mime type support
     *             separately; for unsupported mime types the return value of {@link
     *             #requiresSecureDecoder(String, int)} is crypto scheme dependent.
     * @param level a security level between {@link #SECURITY_LEVEL_SW_SECURE_CRYPTO}
     *              and {@link #SECURITY_LEVEL_HW_SECURE_ALL}. Otherwise the special value
     *              {@link #getMaxSecurityLevel()} is also permitted;