Lines Matching refs:SensorContext
46 SensorContext::SensorContext(const struct hw_module_t *module) in SensorContext() function in SensorContext
72 int SensorContext::close() { in close()
80 int SensorContext::activate(int handle, int enabled) { in activate()
91 int SensorContext::setDelay(int handle, int64_t delayNs) { in setDelay()
102 int SensorContext::poll(sensors_event_t *data, int count) { in poll()
111 int SensorContext::batch( in batch()
125 int SensorContext::flush(int handle) { in flush()
136 int SensorContext::register_direct_channel( in register_direct_channel()
148 int SensorContext::config_direct_report( in config_direct_report()
155 int SensorContext::CloseWrapper(struct hw_device_t *dev) { in CloseWrapper()
156 return reinterpret_cast<SensorContext *>(dev)->close(); in CloseWrapper()
160 int SensorContext::ActivateWrapper( in ActivateWrapper()
162 return reinterpret_cast<SensorContext *>(dev)->activate(handle, enabled); in ActivateWrapper()
166 int SensorContext::SetDelayWrapper( in SetDelayWrapper()
168 return reinterpret_cast<SensorContext *>(dev)->setDelay(handle, delayNs); in SetDelayWrapper()
172 int SensorContext::PollWrapper( in PollWrapper()
174 return reinterpret_cast<SensorContext *>(dev)->poll(data, count); in PollWrapper()
178 int SensorContext::BatchWrapper( in BatchWrapper()
185 return reinterpret_cast<SensorContext *>(dev)->batch( in BatchWrapper()
190 int SensorContext::FlushWrapper(struct sensors_poll_device_1 *dev, int handle) { in FlushWrapper()
191 return reinterpret_cast<SensorContext *>(dev)->flush(handle); in FlushWrapper()
195 int SensorContext::RegisterDirectChannelWrapper(struct sensors_poll_device_1 *dev, in RegisterDirectChannelWrapper()
197 return reinterpret_cast<SensorContext *>(dev)->register_direct_channel( in RegisterDirectChannelWrapper()
202 int SensorContext::ConfigDirectReportWrapper(struct sensors_poll_device_1 *dev, in ConfigDirectReportWrapper()
204 return reinterpret_cast<SensorContext *>(dev)->config_direct_report( in ConfigDirectReportWrapper()
208 int SensorContext::inject_sensor_data(const sensors_event_t *event) { in inject_sensor_data()
230 int SensorContext::InjectSensorDataWrapper(struct sensors_poll_device_1 *dev, in InjectSensorDataWrapper()
232 return reinterpret_cast<SensorContext *>(dev)->inject_sensor_data(event); in InjectSensorDataWrapper()
235 bool SensorContext::getHubAlive() { in getHubAlive()
239 size_t SensorContext::getSensorList(sensor_t const **list) { in getSensorList()
246 SensorContext::HubConnectionOperation::HubConnectionOperation(sp<HubConnection> hubConnection) in HubConnectionOperation()
253 bool SensorContext::HubConnectionOperation::owns(int handle) { in owns()
257 int SensorContext::HubConnectionOperation::activate(int handle, int enabled) { in activate()
262 int SensorContext::HubConnectionOperation::setDelay(int handle, int64_t delayNs) { in setDelay()
286 int SensorContext::HubConnectionOperation::batch( in batch()
313 int SensorContext::HubConnectionOperation::flush(int handle) { in flush()
335 SensorContext::DynamicSensorManagerOperation::DynamicSensorManagerOperation(DynamicSensorManager* m… in DynamicSensorManagerOperation()
339 bool SensorContext::DynamicSensorManagerOperation::owns(int handle) { in owns()
343 int SensorContext::DynamicSensorManagerOperation::activate(int handle, int enabled) { in activate()
347 int SensorContext::DynamicSensorManagerOperation::setDelay(int handle, int64_t delayNs) { in setDelay()
351 int SensorContext::DynamicSensorManagerOperation::batch(int handle, int64_t sampling_period_ns, in batch()
356 int SensorContext::DynamicSensorManagerOperation::flush(int handle) { in flush()
361 void SensorContext::initializeHalExtension() { in initializeHalExtension()
388 SensorContext *ctx = new SensorContext(module); in open_sensors()