Lines Matching refs:mPollFds
147 struct pollfd mPollFds[numFds]; member
169 mPollFds[acc].fd = mSensors[acc]->getFd(); in sensors_poll_context_t()
170 mPollFds[acc].events = POLLIN; in sensors_poll_context_t()
171 mPollFds[acc].revents = 0; in sensors_poll_context_t()
174 mPollFds[akm].fd = mSensors[akm]->getFd(); in sensors_poll_context_t()
175 mPollFds[akm].events = POLLIN; in sensors_poll_context_t()
176 mPollFds[akm].revents = 0; in sensors_poll_context_t()
185 mPollFds[wake].fd = wakeFds[0]; in sensors_poll_context_t()
186 mPollFds[wake].events = POLLIN; in sensors_poll_context_t()
187 mPollFds[wake].revents = 0; in sensors_poll_context_t()
194 close(mPollFds[wake].fd); in ~sensors_poll_context_t()
286 if ((mPollFds[i].revents & POLLIN) || (sensor->hasPendingEvents())) { in pollEvents()
290 mPollFds[i].revents = 0; in pollEvents()
305 n = poll(mPollFds, numFds, nbEvents ? 0 : -1); in pollEvents()
310 if (mPollFds[wake].revents & POLLIN) { in pollEvents()
312 int result = read(mPollFds[wake].fd, &msg, 1); in pollEvents()
315 mPollFds[wake].revents = 0; in pollEvents()