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