blob: f80fff5dc69b5a5636079c2970b1dbd25755caa5 [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: {
50 name: "setDelay"
51 return_type_hidl: {
52 type: TYPE_ENUM
53 predefined_type: "::android::hardware::sensors::V1_0::Result"
54 }
55 arg: {
56 type: TYPE_SCALAR
57 scalar_type: "int32_t"
58 }
59 arg: {
60 type: TYPE_SCALAR
61 scalar_type: "int64_t"
62 }
63 }
64
65 api: {
66 name: "poll"
67 return_type_hidl: {
68 type: TYPE_ENUM
69 predefined_type: "::android::hardware::sensors::V1_0::Result"
70 }
71 return_type_hidl: {
72 type: TYPE_VECTOR
73 vector_value: {
74 type: TYPE_STRUCT
75 predefined_type: "::android::hardware::sensors::V1_0::Event"
76 }
77 }
78 return_type_hidl: {
79 type: TYPE_VECTOR
80 vector_value: {
81 type: TYPE_STRUCT
82 predefined_type: "::android::hardware::sensors::V1_0::SensorInfo"
83 }
84 }
85 arg: {
86 type: TYPE_SCALAR
87 scalar_type: "int32_t"
88 }
89 }
90
91 api: {
92 name: "batch"
93 return_type_hidl: {
94 type: TYPE_ENUM
95 predefined_type: "::android::hardware::sensors::V1_0::Result"
96 }
97 arg: {
98 type: TYPE_SCALAR
99 scalar_type: "int32_t"
100 }
101 arg: {
102 type: TYPE_SCALAR
103 scalar_type: "int32_t"
104 }
105 arg: {
106 type: TYPE_SCALAR
107 scalar_type: "int64_t"
108 }
109 arg: {
110 type: TYPE_SCALAR
111 scalar_type: "int64_t"
112 }
113 }
114
115 api: {
116 name: "flush"
117 return_type_hidl: {
118 type: TYPE_ENUM
119 predefined_type: "::android::hardware::sensors::V1_0::Result"
120 }
121 arg: {
122 type: TYPE_SCALAR
123 scalar_type: "int32_t"
124 }
125 }
126
127 api: {
128 name: "injectSensorData"
129 return_type_hidl: {
130 type: TYPE_ENUM
131 predefined_type: "::android::hardware::sensors::V1_0::Result"
132 }
133 arg: {
134 type: TYPE_STRUCT
135 predefined_type: "::android::hardware::sensors::V1_0::Event"
136 }
137 }
138
139}