blob: 6e71d24ed9e8b70c8a7f9248415696a843d10c41 [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"
Zhuoyao Zhang3bef9392017-02-13 18:03:06 -08009import: "android.hidl.base@1.0::types"
Yuexi Ma270712a2016-11-30 17:24:04 -080010
11interface: {
12 api: {
13 name: "addLogicalAddress"
14 return_type_hidl: {
15 type: TYPE_ENUM
16 predefined_type: "::android::hardware::tv::cec::V1_0::Result"
17 }
18 arg: {
19 type: TYPE_ENUM
20 predefined_type: "::android::hardware::tv::cec::V1_0::CecLogicalAddress"
21 }
22 callflow: {
23 next: "*"
24 }
25 }
26
27 api: {
28 name: "clearLogicalAddress"
29 callflow: {
30 next: "addLogicalAddress"
31 }
32 callflow: {
33 exit: true
34 }
35 }
36
37 api: {
38 name: "getPhysicalAddress"
39 return_type_hidl: {
40 type: TYPE_ENUM
41 predefined_type: "::android::hardware::tv::cec::V1_0::Result"
42 }
43 return_type_hidl: {
44 type: TYPE_SCALAR
45 scalar_type: "uint16_t"
46 }
47 callflow: {
48 next: "*"
49 }
50 }
51
52 api: {
53 name: "sendMessage"
54 return_type_hidl: {
55 type: TYPE_ENUM
56 predefined_type: "::android::hardware::tv::cec::V1_0::SendMessageResult"
57 }
58 arg: {
59 type: TYPE_STRUCT
60 predefined_type: "::android::hardware::tv::cec::V1_0::CecMessage"
61 }
62 callflow: {
63 next: "*"
64 }
65 }
66
67 api: {
68 name: "setCallback"
69 arg: {
70 type: TYPE_HIDL_CALLBACK
Zhuoyao Zhang3bef9392017-02-13 18:03:06 -080071 predefined_type: "::android::hardware::tv::cec::V1_0::IHdmiCecCallback"
Yuexi Ma270712a2016-11-30 17:24:04 -080072 }
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}