Home | History | Annotate | Download | only in libsensors

Lines Matching refs:handle

129     int activate(int handle, int enabled);
130 int setDelay(int handle, int64_t ns);
131 int setDelay_sub(int handle, int64_t ns);
151 int handleToDriver(int handle);
152 int proxy_enable(int handle, int enabled);
153 int proxy_setDelay(int handle, int64_t ns);
195 int sensors_poll_context_t::handleToDriver(int handle) {
196 switch (handle) {
206 int sensors_poll_context_t::activate(int handle, int enabled) {
207 int drv = handleToDriver(handle);
210 switch (handle) {
225 err = mSensors[drv]->setEnable(handle, enabled);
235 int sensors_poll_context_t::setDelay(int handle, int64_t ns) {
236 switch (handle) {
251 return setDelay_sub(handle, ns);
254 int sensors_poll_context_t::setDelay_sub(int handle, int64_t ns) {
255 int drv = handleToDriver(handle);
256 int en = mSensors[drv]->getEnable(handle);
257 int64_t cur = mSensors[drv]->getDelay(handle);
263 err = mSensors[drv]->setDelay(handle, ns);
268 err = mSensors[drv]->setDelay(handle, ns);
333 int handle, int enabled) {
335 return ctx->activate(handle, enabled);
339 int handle, int64_t ns) {
341 return ctx->setDelay(handle, ns);