Lines Matching refs:result
73 int result = pipe(wakeFds);
74 LOG_ALWAYS_FATAL_IF(result != 0, "Could not create wake pipe. errno=%d", errno);
79 result = fcntl(mWakeReadPipeFd, F_SETFL, O_NONBLOCK);
80 LOG_ALWAYS_FATAL_IF(result != 0, "Could not make wake read pipe non-blocking. errno=%d",
83 result = fcntl(mWakeWritePipeFd, F_SETFL, O_NONBLOCK);
84 LOG_ALWAYS_FATAL_IF(result != 0, "Could not make wake write pipe non-blocking. errno=%d",
97 result = epoll_ctl(mEpollFd, EPOLL_CTL_ADD, mWakeReadPipeFd, & eventItem);
98 LOG_ALWAYS_FATAL_IF(result != 0, "Could not add wake read pipe to epoll instance. errno=%d",
109 int result = pthread_key_create(& gTLSKey, threadDestructor);
110 LOG_ALWAYS_FATAL_IF(result != 0, "Could not allocate TLS key.");
135 int result = pthread_once(& gTLSOnce, initTLSKey);
136 LOG_ALWAYS_FATAL_IF(result != 0, "pthread_once failed");
160 int result = 0;
181 if (result != 0) {
183 ALOGD("%p ~ pollOnce - returning result %d", this, result);
188 return result;
191 result = pollInner(timeoutMillis);
215 int result = ALOOPER_POLL_WAKE;
237 result = ALOOPER_POLL_ERROR;
246 result = ALOOPER_POLL_TIMEOUT;
307 result = ALOOPER_POLL_CALLBACK;
336 result = ALOOPER_POLL_CALLBACK;
339 return result;
344 int result;
346 result = pollOnce(timeoutMillis, outFd, outEvents, outData);
347 } while (result == ALOOPER_POLL_CALLBACK);
348 return result;
354 int result = pollOnce(timeoutMillis, outFd, outEvents, outData);
355 if (result != ALOOPER_POLL_CALLBACK) {
356 return result;