Home | History | Annotate | Download | only in libsensors

Lines Matching refs:mPollFds

135     struct pollfd mPollFds[numFds];
181 mPollFds[mpl].fd = mSensors[mpl]->getFd();
182 mPollFds[mpl].events = POLLIN;
183 mPollFds[mpl].revents = 0;
186 mPollFds[compass].fd = ((MPLSensor*)mSensors[mpl])->getCompassFd();
187 mPollFds[compass].events = POLLIN;
188 mPollFds[compass].revents = 0;
191 mPollFds[dmpOrient].fd = ((MPLSensor*)mSensors[mpl])->getDmpOrientFd();
192 mPollFds[dmpOrient].events = POLLPRI;
193 mPollFds[dmpOrient].revents = 0;
196 mPollFds[light].fd = mSensors[light]->getFd();
197 mPollFds[light].events = POLLIN;
198 mPollFds[light].revents = 0;
201 mPollFds[pressure].fd = mSensors[pressure]->getFd();
202 mPollFds[pressure].events = POLLIN;
203 mPollFds[pressure].revents = 0;
212 mPollFds[wake].fd = wakeFds[0];
213 mPollFds[wake].events = POLLIN;
214 mPollFds[wake].revents = 0;
224 close(mPollFds[wake].fd);
262 if ((mPollFds[i].revents & (POLLIN | POLLPRI)) || (sensor->hasPendingEvents())) {
273 mPollFds[i].revents = 0;
278 mPollFds[dmpOrient].revents= 0;
290 mPollFds[i].revents = 0;
299 n = poll(mPollFds, numFds, nbEvents ? 0 : polltime);
305 if (mPollFds[wake].revents & (POLLIN | POLLPRI)) {
307 int result = read(mPollFds[wake].fd, &msg, 1);
310 mPollFds[wake].revents = 0;