• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright 2021, 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 
17 package android.media.tv.tuner;
18 
19 import android.media.tv.tuner.ITunerDemux;
20 import android.media.tv.tuner.ITunerFilter;
21 import android.media.tv.tuner.TunerDemuxPid;
22 
23 /**
24  * Tuner Demux interface handles tuner related operations.
25  *
26  * {@hide}
27  */
28 interface ITunerDescrambler {
29     /**
30      * Set a demux as source of the descrambler.
31      */
setDemuxSource(in ITunerDemux tunerDemux)32     void setDemuxSource(in ITunerDemux tunerDemux);
33 
34     /**
35      * Set a key token to link descrambler to a key slot.
36      */
setKeyToken(in byte[] keyToken)37     void setKeyToken(in byte[] keyToken);
38 
39     /**
40      * Add packets' PID to the descrambler for descrambling.
41      */
addPid(in TunerDemuxPid pid, in ITunerFilter optionalSourceFilter)42     void addPid(in TunerDemuxPid pid, in ITunerFilter optionalSourceFilter);
43 
44     /**
45      * Remove packets' PID from the descrambler.
46      */
removePid(in TunerDemuxPid pid, in ITunerFilter optionalSourceFilter)47     void removePid(in TunerDemuxPid pid, in ITunerFilter optionalSourceFilter);
48 
49     /**
50      * Close a new interface of ITunerDescrambler.
51      */
close()52     void close();
53 }
54