1/* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16package android.hardware.drm@1.3; 17 18import @1.2::IDrmFactory; 19 20/** 21 * IDrmFactory is the main entry point for interacting with a vendor's 22 * drm HAL to create drm plugin instances. A drm plugin instance 23 * creates drm sessions which are used to obtain keys for a crypto 24 * session so it can decrypt protected video content. 25 * 26 * The 1.3 factory must always create 1.2 IDrmPlugin interfaces, which are 27 * returned via the 1.0 createPlugin method. 28 */ 29 30interface IDrmFactory extends @1.2::IDrmFactory { 31 /** 32 * Return vector of uuids identifying crypto schemes supported by this HAL. 33 * 34 * @return schemes Vector of uuids for which isCryptoSchemeSupported is true; 35 * each uuid can be used as input to createPlugin. 36 */ 37 getSupportedCryptoSchemes() generates(vec<uint8_t[16]> schemes); 38}; 39