blob: d7d09de6fc3ce75f215dcc9a3dbf2c82de163e5e [file] [log] [blame]
Yuexi Ma270712a2016-11-30 17:24:04 -08001component_class: HAL_HIDL
2component_type_version: 1.0
3component_name: "IHdmiCec"
4
5package: "android.hardware.tv.cec"
6
7import: "android.hardware.tv.cec@1.0::IHdmiCecCallback"
8import: "android.hardware.tv.cec@1.0::types"
9
10interface: {
11 api: {
12 name: "addLogicalAddress"
13 return_type_hidl: {
14 type: TYPE_ENUM
15 predefined_type: "::android::hardware::tv::cec::V1_0::Result"
16 }
17 arg: {
18 type: TYPE_ENUM
19 predefined_type: "::android::hardware::tv::cec::V1_0::CecLogicalAddress"
20 }
21 callflow: {
22 next: "*"
23 }
24 }
25
26 api: {
27 name: "clearLogicalAddress"
28 callflow: {
29 next: "addLogicalAddress"
30 }
31 callflow: {
32 exit: true
33 }
34 }
35
36 api: {
37 name: "getPhysicalAddress"
38 return_type_hidl: {
39 type: TYPE_ENUM
40 predefined_type: "::android::hardware::tv::cec::V1_0::Result"
41 }
42 return_type_hidl: {
43 type: TYPE_SCALAR
44 scalar_type: "uint16_t"
45 }
46 callflow: {
47 next: "*"
48 }
49 }
50
51 api: {
52 name: "sendMessage"
53 return_type_hidl: {
54 type: TYPE_ENUM
55 predefined_type: "::android::hardware::tv::cec::V1_0::SendMessageResult"
56 }
57 arg: {
58 type: TYPE_STRUCT
59 predefined_type: "::android::hardware::tv::cec::V1_0::CecMessage"
60 }
61 callflow: {
62 next: "*"
63 }
64 }
65
66 api: {
67 name: "setCallback"
68 arg: {
69 type: TYPE_HIDL_CALLBACK
70 predefined_type: "IHdmiCecCallback"
71 is_callback: true
72 }
73 callflow: {
74 next: "addLogicalAddress"
75 }
76 callflow: {
77 entry: true
78 }
79 }
80
81 api: {
82 name: "getCecVersion"
83 return_type_hidl: {
84 type: TYPE_SCALAR
85 scalar_type: "int32_t"
86 }
87 callflow: {
88 next: "*"
89 }
90 }
91
92 api: {
93 name: "getVendorId"
94 return_type_hidl: {
95 type: TYPE_SCALAR
96 scalar_type: "uint32_t"
97 }
98 callflow: {
99 next: "*"
100 }
101 }
102
103 api: {
104 name: "getPortInfo"
105 return_type_hidl: {
106 type: TYPE_VECTOR
107 vector_value: {
108 type: TYPE_STRUCT
109 predefined_type: "::android::hardware::tv::cec::V1_0::HdmiPortInfo"
110 }
111 }
112 callflow: {
113 next: "*"
114 }
115 }
116
117 api: {
118 name: "setOption"
119 arg: {
120 type: TYPE_ENUM
121 predefined_type: "::android::hardware::tv::cec::V1_0::OptionKey"
122 }
123 arg: {
124 type: TYPE_SCALAR
125 scalar_type: "bool_t"
126 }
127 callflow: {
128 next: "*"
129 }
130 }
131
132 api: {
133 name: "setLanguage"
134 arg: {
135 type: TYPE_STRING
136 }
137 callflow: {
138 next: "*"
139 }
140 }
141
142 api: {
143 name: "enableAudioReturnChannel"
144 arg: {
145 type: TYPE_SCALAR
146 scalar_type: "int32_t"
147 }
148 arg: {
149 type: TYPE_SCALAR
150 scalar_type: "bool_t"
151 }
152 callflow: {
153 next: "*"
154 }
155 }
156
157 api: {
158 name: "isConnected"
159 return_type_hidl: {
160 type: TYPE_SCALAR
161 scalar_type: "bool_t"
162 }
163 arg: {
164 type: TYPE_SCALAR
165 scalar_type: "int32_t"
166 }
167 callflow: {
168 next: "*"
169 }
170 }
171
172}