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 */
16
17package android.hardware.cas@1.2;
18
19import ICas;
20import ICasListener;
21import @1.1::IMediaCasService;
22
23/**
24 * IMediaCasService is the main entry point for interacting with a vendor's
25 * cas HAL to create cas and descrambler plugin instances. A cas plugin instance
26 * opens cas sessions which are used to obtain keys for a descrambler session,
27 * which can in turn be used to descramble protected video content.
28 *
29 * The 1.2 must always create 1.2 ICas interfaces, which are
30 * returned via the 1.1 createPluginExt method.
31 *
32 * To use 1.2 features the caller must cast the returned interface to a
33 * 1.2 HAL, using V1_2::ICas::castFrom().
34 */
35interface IMediaCasService extends @1.1::IMediaCasService {};
36