Yuexi Ma | e5f2e67 | 2016-11-30 17:32:27 -0800 | [diff] [blame] | 1 | component_class: HAL_HIDL |
| 2 | component_type_version: 1.0 |
| 3 | component_name: "ITvInput" |
| 4 | |
| 5 | package: "android.hardware.tv.input" |
| 6 | |
Zhuoyao Zhang | 3bef939 | 2017-02-13 18:03:06 -0800 | [diff] [blame] | 7 | import: "android.hardware.audio.common@2.0::types" |
Yuexi Ma | e5f2e67 | 2016-11-30 17:32:27 -0800 | [diff] [blame] | 8 | import: "android.hardware.tv.input@1.0::ITvInputCallback" |
| 9 | import: "android.hardware.tv.input@1.0::types" |
Zhuoyao Zhang | 3bef939 | 2017-02-13 18:03:06 -0800 | [diff] [blame] | 10 | import: "android.hidl.base@1.0::types" |
Yuexi Ma | e5f2e67 | 2016-11-30 17:32:27 -0800 | [diff] [blame] | 11 | |
| 12 | interface: { |
| 13 | api: { |
| 14 | name: "setCallback" |
| 15 | arg: { |
| 16 | type: TYPE_HIDL_CALLBACK |
Zhuoyao Zhang | 3bef939 | 2017-02-13 18:03:06 -0800 | [diff] [blame] | 17 | predefined_type: "::android::hardware::tv::input::V1_0::ITvInputCallback" |
Yuexi Ma | e5f2e67 | 2016-11-30 17:32:27 -0800 | [diff] [blame] | 18 | } |
| 19 | callflow: { |
| 20 | entry: true |
| 21 | } |
| 22 | callflow: { |
| 23 | exit: true |
| 24 | } |
| 25 | callflow: { |
| 26 | next: "getStreamConfigurations" |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | api: { |
| 31 | name: "getStreamConfigurations" |
| 32 | return_type_hidl: { |
| 33 | type: TYPE_ENUM |
| 34 | predefined_type: "::android::hardware::tv::input::V1_0::Result" |
| 35 | } |
| 36 | return_type_hidl: { |
| 37 | type: TYPE_VECTOR |
| 38 | vector_value: { |
| 39 | type: TYPE_STRUCT |
| 40 | predefined_type: "::android::hardware::tv::input::V1_0::TvStreamConfig" |
| 41 | } |
| 42 | } |
| 43 | arg: { |
| 44 | type: TYPE_SCALAR |
| 45 | scalar_type: "int32_t" |
| 46 | } |
| 47 | callflow: { |
| 48 | next: "openStream" |
| 49 | next: "getStreamConfigurations" |
| 50 | next: "closeStream" |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | api: { |
| 55 | name: "openStream" |
| 56 | return_type_hidl: { |
| 57 | type: TYPE_ENUM |
| 58 | predefined_type: "::android::hardware::tv::input::V1_0::Result" |
| 59 | } |
| 60 | return_type_hidl: { |
Yuexi Ma | 3fcbd1f | 2016-12-29 14:58:35 -0800 | [diff] [blame] | 61 | type: TYPE_HANDLE |
Yuexi Ma | e5f2e67 | 2016-11-30 17:32:27 -0800 | [diff] [blame] | 62 | } |
| 63 | arg: { |
| 64 | type: TYPE_SCALAR |
| 65 | scalar_type: "int32_t" |
| 66 | } |
| 67 | arg: { |
| 68 | type: TYPE_SCALAR |
| 69 | scalar_type: "int32_t" |
| 70 | } |
| 71 | callflow: { |
| 72 | next: "closeStream" |
| 73 | next: "getStreamConfigurations" |
| 74 | next: "openStream" |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | api: { |
| 79 | name: "closeStream" |
| 80 | return_type_hidl: { |
| 81 | type: TYPE_ENUM |
| 82 | predefined_type: "::android::hardware::tv::input::V1_0::Result" |
| 83 | } |
| 84 | arg: { |
| 85 | type: TYPE_SCALAR |
| 86 | scalar_type: "int32_t" |
| 87 | } |
| 88 | arg: { |
| 89 | type: TYPE_SCALAR |
| 90 | scalar_type: "int32_t" |
| 91 | } |
| 92 | callflow: { |
| 93 | next: "getStreamConfigurations" |
| 94 | next: "openStream" |
| 95 | next: "closeStream" |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | } |