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