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 @1.0::HidlCasSessionId; 20import @1.1::ICas; 21import ScramblingMode; 22import SessionIntent; 23import Status; 24 25/** 26 * ICas is the API to control the cas system and is accessible from both 27 * Java and native level. It is used to manage sessions, provision/refresh 28 * the cas system, and process the EMM/ECM messages. It also allows bi-directional, 29 * scheme-specific communications between the client and the cas system. 30 */ 31interface ICas extends @1.1::ICas { 32 /** 33 * Open a session to descramble one or more streams by specifying intention 34 * and scrambling mode. 35 * 36 * @param intent the intention of the session to be opened. 37 * @param mode the scrambling mode the session will use. 38 * @return status the status of the call. 39 * @return sessionId the id of the newly opened session. 40 */ 41 openSession_1_2(SessionIntent intent, ScramblingMode mode) 42 generates (Status status, HidlCasSessionId sessionId); 43}; 44