blob: e82b54c9db9aa6acc557c561b5650aa16421ff5a [file] [log] [blame]
Henry Fang3e3cbb72019-01-31 22:46:57 +00001/*
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.cas@1.1;
17
18import @1.1::ICas;
19import @1.1::ICasListener;
20import @1.0::IMediaCasService;
21
22/**
23 * IMediaCasService is the main entry point for interacting with a vendor's
24 * cas HAL to create cas and descrambler plugin instances. A cas plugin instance
25 * opens cas sessions which are used to obtain keys for a descrambler session,
26 * which can in turn be used to descramble protected video content.
27 */
28
29interface IMediaCasService extends @1.0::IMediaCasService {
30 /**
31 * Construct a new instance of a @1.1 ICAS CasPlugin given a CA_system_id.
32 *
33 * @param caSystemId the id of the CA system.
34 * @param listener the event listener to receive events coming from the CasPlugin.
35 * @return cas the newly created CasPlugin interface.
36 */
37 createPluginExt(int32_t caSystemId, ICasListener listener) generates (ICas cas);
38};