Lines Matching refs:handle

80 int SensorContext::activate(int handle, int enabled) {  in activate()  argument
84 if (h->owns(handle)) { in activate()
85 return h->activate(handle, enabled); in activate()
91 int SensorContext::setDelay(int handle, int64_t delayNs) { in setDelay() argument
95 if (h->owns(handle)) { in setDelay()
96 return h->setDelay(handle, delayNs); in setDelay()
112 int handle, in batch() argument
118 if (h->owns(handle)) { in batch()
119 return h->batch(handle, sampling_period_ns, max_report_latency_ns); in batch()
125 int SensorContext::flush(int handle) { in flush() argument
129 if (h->owns(handle)) { in flush()
130 return h->flush(handle); in flush()
161 struct sensors_poll_device_t *dev, int handle, int enabled) { in ActivateWrapper() argument
162 return reinterpret_cast<SensorContext *>(dev)->activate(handle, enabled); in ActivateWrapper()
167 struct sensors_poll_device_t *dev, int handle, int64_t delayNs) { in SetDelayWrapper() argument
168 return reinterpret_cast<SensorContext *>(dev)->setDelay(handle, delayNs); in SetDelayWrapper()
180 int handle, in BatchWrapper() argument
186 handle, sampling_period_ns, max_report_latency_ns); in BatchWrapper()
190 int SensorContext::FlushWrapper(struct sensors_poll_device_1 *dev, int handle) { in FlushWrapper() argument
191 return reinterpret_cast<SensorContext *>(dev)->flush(handle); in FlushWrapper()
249 mHandles.emplace(kSensorList[i].handle); in HubConnectionOperation()
253 bool SensorContext::HubConnectionOperation::owns(int handle) { in owns() argument
254 return mHandles.find(handle) != mHandles.end(); in owns()
257 int SensorContext::HubConnectionOperation::activate(int handle, int enabled) { in activate() argument
258 mHubConnection->queueActivate(handle, enabled); in activate()
262 int SensorContext::HubConnectionOperation::setDelay(int handle, int64_t delayNs) { in setDelay() argument
267 if (sensor.handle != handle) { in setDelay()
282 mHubConnection->queueSetDelay(handle, delayNsClamped); in setDelay()
287 int handle, int64_t sampling_period_ns, in batch() argument
293 if (sensor.handle != handle) { in batch()
308 mHubConnection->queueBatch(handle, sampling_period_ns_clamped, in batch()
313 int SensorContext::HubConnectionOperation::flush(int handle) { in flush() argument
314 mHubConnection->queueFlush(handle); in flush()
339 bool SensorContext::DynamicSensorManagerOperation::owns(int handle) { in owns() argument
340 return mDynamicSensorManager->owns(handle); in owns()
343 int SensorContext::DynamicSensorManagerOperation::activate(int handle, int enabled) { in activate() argument
344 return mDynamicSensorManager->activate(handle, enabled); in activate()
347 int SensorContext::DynamicSensorManagerOperation::setDelay(int handle, int64_t delayNs) { in setDelay() argument
348 return mDynamicSensorManager->setDelay(handle, delayNs); in setDelay()
351 int SensorContext::DynamicSensorManagerOperation::batch(int handle, int64_t sampling_period_ns, in batch() argument
353 return mDynamicSensorManager->batch(handle, sampling_period_ns, max_report_latency_ns); in batch()
356 int SensorContext::DynamicSensorManagerOperation::flush(int handle) { in flush() argument
357 return mDynamicSensorManager->flush(handle); in flush()