• 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.hardware.common.fmq.MQDescriptor;
20 import android.hardware.common.fmq.SynchronizedReadWrite;
21 import android.hardware.tv.tuner.DvrSettings;
22 import android.media.tv.tuner.ITunerFilter;
23 
24 /**
25  * Tuner Dvr interface handles tuner related operations.
26  *
27  * {@hide}
28  */
29 interface ITunerDvr {
30     /**
31      * Get the descriptor of the DVR's FMQ.
32      */
getQueueDesc()33     MQDescriptor<byte, SynchronizedReadWrite> getQueueDesc();
34 
35     /**
36      * Configure the DVR.
37      */
configure(in DvrSettings settings)38     void configure(in DvrSettings settings);
39 
40     /**
41      * Attach one filter to DVR interface for recording.
42      */
attachFilter(in ITunerFilter filter)43     void attachFilter(in ITunerFilter filter);
44 
45     /**
46      * Detach one filter from the DVR's recording.
47      */
detachFilter(in ITunerFilter filter)48     void detachFilter(in ITunerFilter filter);
49 
50     /**
51      * Start DVR.
52      */
start()53     void start();
54 
55     /**
56      * Stop DVR.
57      */
stop()58     void stop();
59 
60     /**
61      * Flush DVR data.
62      */
flush()63     void flush();
64 
65     /**
66      * close the DVR instance to release resource for DVR.
67      */
close()68     void close();
69 }
70