Lines Matching refs:handle
55 .handle = SENSORS_LIGHT_HANDLE,
67 .handle = SENSORS_PROXIMITY_HANDLE,
112 int activate(int handle, int enabled);
113 int setDelay(int handle, int64_t ns);
115 int batch(int handle, int flags, int64_t period_ns, int64_t timeout);
119 int flush(int handle);
143 int handleToDriver(int handle) const {
144 switch (handle) {
174 /* TODO: Handle external pressure sensor */
253 int sensors_poll_context_t::activate(int handle, int enabled) {
255 int index = handleToDriver(handle);
257 int err = mSensor[index]->enable(handle, enabled);
266 int sensors_poll_context_t::setDelay(int handle, int64_t ns)
268 int index = handleToDriver(handle);
270 return mSensor[index]->setDelay(handle, ns);
373 int sensors_poll_context_t::batch(int handle, int flags, int64_t period_ns, int64_t timeout)
375 int index = handleToDriver(handle);
377 return mSensor[index]->batch(handle, flags, period_ns, timeout);
380 int sensors_poll_context_t::flush(int handle)
382 int index = handleToDriver(handle);
384 return mSensor[index]->flush(handle);
398 int handle, int enabled)
401 return ctx->activate(handle, enabled);
405 int handle, int64_t ns)
408 int s= ctx->setDelay(handle, ns);
420 int handle, int flags, int64_t period_ns, int64_t timeout)
423 return ctx->batch(handle, flags, period_ns, timeout);
427 int handle)
430 return ctx->flush(handle);