blob: 9e90755a5cb43f7d93ba2671cc8c38ab79fbdf71 [file] [log] [blame]
Peng Xubba9d9a2016-11-21 20:14:41 -08001component_class: HAL_HIDL
2component_type_version: 1.0
3component_name: "ISensors"
4
5package: "android.hardware.sensors"
6
7import: "android.hardware.sensors@1.0::types"
8
9interface: {
10 api: {
11 name: "getSensorsList"
12 return_type_hidl: {
13 type: TYPE_VECTOR
14 vector_value: {
15 type: TYPE_STRUCT
16 predefined_type: "::android::hardware::sensors::V1_0::SensorInfo"
17 }
18 }
19 }
20
21 api: {
22 name: "setOperationMode"
23 return_type_hidl: {
24 type: TYPE_ENUM
25 predefined_type: "::android::hardware::sensors::V1_0::Result"
26 }
27 arg: {
28 type: TYPE_ENUM
29 predefined_type: "::android::hardware::sensors::V1_0::OperationMode"
30 }
31 }
32
33 api: {
34 name: "activate"
35 return_type_hidl: {
36 type: TYPE_ENUM
37 predefined_type: "::android::hardware::sensors::V1_0::Result"
38 }
39 arg: {
40 type: TYPE_SCALAR
41 scalar_type: "int32_t"
42 }
43 arg: {
44 type: TYPE_SCALAR
45 scalar_type: "bool_t"
46 }
47 }
48
49 api: {
Peng Xubba9d9a2016-11-21 20:14:41 -080050 name: "poll"
51 return_type_hidl: {
52 type: TYPE_ENUM
53 predefined_type: "::android::hardware::sensors::V1_0::Result"
54 }
55 return_type_hidl: {
56 type: TYPE_VECTOR
57 vector_value: {
58 type: TYPE_STRUCT
59 predefined_type: "::android::hardware::sensors::V1_0::Event"
60 }
61 }
62 return_type_hidl: {
63 type: TYPE_VECTOR
64 vector_value: {
65 type: TYPE_STRUCT
66 predefined_type: "::android::hardware::sensors::V1_0::SensorInfo"
67 }
68 }
69 arg: {
70 type: TYPE_SCALAR
71 scalar_type: "int32_t"
72 }
73 }
74
75 api: {
76 name: "batch"
77 return_type_hidl: {
78 type: TYPE_ENUM
79 predefined_type: "::android::hardware::sensors::V1_0::Result"
80 }
81 arg: {
82 type: TYPE_SCALAR
83 scalar_type: "int32_t"
84 }
85 arg: {
86 type: TYPE_SCALAR
Peng Xubba9d9a2016-11-21 20:14:41 -080087 scalar_type: "int64_t"
88 }
89 arg: {
90 type: TYPE_SCALAR
91 scalar_type: "int64_t"
92 }
93 }
94
95 api: {
96 name: "flush"
97 return_type_hidl: {
98 type: TYPE_ENUM
99 predefined_type: "::android::hardware::sensors::V1_0::Result"
100 }
101 arg: {
102 type: TYPE_SCALAR
103 scalar_type: "int32_t"
104 }
105 }
106
107 api: {
108 name: "injectSensorData"
109 return_type_hidl: {
110 type: TYPE_ENUM
111 predefined_type: "::android::hardware::sensors::V1_0::Result"
112 }
113 arg: {
114 type: TYPE_STRUCT
115 predefined_type: "::android::hardware::sensors::V1_0::Event"
116 }
117 }
118
Peng Xu1f12c7a2017-01-11 11:08:45 -0800119 api: {
120 name: "registerDirectChannel"
121 return_type_hidl: {
122 type: TYPE_ENUM
123 predefined_type: "::android::hardware::sensors::V1_0::Result"
124 }
125 return_type_hidl: {
126 type: TYPE_SCALAR
127 scalar_type: "int32_t"
128 }
129 arg: {
130 type: TYPE_STRUCT
131 predefined_type: "::android::hardware::sensors::V1_0::SharedMemInfo"
132 }
133 }
134
135 api: {
136 name: "unregisterDirectChannel"
137 return_type_hidl: {
138 type: TYPE_ENUM
139 predefined_type: "::android::hardware::sensors::V1_0::Result"
140 }
141 arg: {
142 type: TYPE_SCALAR
143 scalar_type: "int32_t"
144 }
145 }
146
147 api: {
148 name: "configDirectReport"
149 return_type_hidl: {
150 type: TYPE_ENUM
151 predefined_type: "::android::hardware::sensors::V1_0::Result"
152 }
153 return_type_hidl: {
154 type: TYPE_SCALAR
155 scalar_type: "int32_t"
156 }
157 arg: {
158 type: TYPE_SCALAR
159 scalar_type: "int32_t"
160 }
161 arg: {
162 type: TYPE_SCALAR
163 scalar_type: "int32_t"
164 }
165 arg: {
166 type: TYPE_ENUM
167 predefined_type: "::android::hardware::sensors::V1_0::RateLevel"
168 }
169 }
170
Peng Xubba9d9a2016-11-21 20:14:41 -0800171}