Henry Fang | cf05ed7 | 2019-08-15 18:57:08 -0700 | [diff] [blame^] | 1 | package android.hardware.tv.tuner@1.0; |
| 2 | |
| 3 | import IDemuxCallback; |
| 4 | |
| 5 | /** |
| 6 | * Demultiplexer(Demux) takes a single multiplexed input and splits it into |
| 7 | * one or more output. |
| 8 | * |
| 9 | */ |
| 10 | interface IDemux { |
| 11 | |
| 12 | /** |
| 13 | * Set a frontend resource as data input of the demux |
| 14 | * |
| 15 | * It is used by the client to specify a hardware frontend as data source of |
| 16 | * this demux instance. A demux instance can have only one data source. |
| 17 | * |
| 18 | * @return result Result status of the operation. |
| 19 | * SUCCESS if successful, |
| 20 | * INVALID_STATE if failed for wrong state. |
| 21 | * UNKNOWN_ERROR if failed for other reasons. |
| 22 | */ |
| 23 | setFrontendDataSource(FrontendId frontendId) generates (Result result); |
| 24 | |
| 25 | /** |
| 26 | * Close the Demux instance |
| 27 | * |
| 28 | * It is used by the client to release the demux instance. HAL clear |
| 29 | * underneath resource. client mustn't access the instance any more. |
| 30 | * |
| 31 | * @return result Result status of the operation. |
| 32 | * SUCCESS if successful, |
| 33 | * UNKNOWN_ERROR if failed for other reasons. |
| 34 | */ |
| 35 | close() generates (Result result); |
| 36 | }; |
| 37 | |