Lines Matching defs:result

52     int result = fcntl(mReceivePipeFd, F_SETFL, O_NONBLOCK);
53 LOG_ALWAYS_FATAL_IF(result != 0, "channel '%s' ~ Could not make receive pipe "
56 result = fcntl(mSendPipeFd, F_SETFL, O_NONBLOCK);
57 LOG_ALWAYS_FATAL_IF(result != 0, "channel '%s' ~ Could not make send pipe "
74 status_t result;
78 result = -errno;
82 result = ashmem_set_prot_region(serverAshmemFd, PROT_READ | PROT_WRITE);
83 if (result < 0) {
85 name.string(), result, serverAshmemFd);
92 result = -errno;
98 result = -errno;
104 result = -errno;
130 return result;
209 int result = ashmem_get_size_region(ashmemFd);
210 if (result < 0) {
212 mChannel->getName().string(), result, ashmemFd);
215 mAshmemSize = (size_t) result;
239 int result;
242 result = sem_post(& mSharedMessage->semaphore);
243 if (result < 0) {
250 result = sem_destroy(& mSharedMessage->semaphore);
251 if (result < 0) {
262 result = ashmem_unpin_region(ashmemFd, 0, 0);
263 if (result < 0) {
265 mChannel->getName().string(), result, ashmemFd);
291 int result = ashmem_pin_region(ashmemFd, 0, 0);
292 if (result < 0) {
294 mChannel->getName().string(), result, ashmemFd);
300 result = sem_init(& mSharedMessage->semaphore, 1, 1);
301 if (result < 0) {
336 status_t result = publishInputEvent(AINPUT_EVENT_TYPE_KEY, deviceId, source);
337 if (result < 0) {
338 return result;
384 status_t result = publishInputEvent(AINPUT_EVENT_TYPE_MOTION, deviceId, source);
385 if (result < 0) {
386 return result;
451 int result;
453 result = sem_trywait(& mSharedMessage->semaphore);
454 if (result < 0) {
480 result = sem_post(& mSharedMessage->semaphore);
481 if (result < 0) {
507 status_t result = mChannel->receiveSignal(& signal);
508 if (result) {
509 return result;
538 int result = ashmem_get_size_region(ashmemFd);
539 if (result < 0) {
541 mChannel->getName().string(), result, ashmemFd);
545 mAshmemSize = (size_t) result;
567 int result = ashmem_pin_region(ashmemFd, 0, 0);
568 if (result != ASHMEM_NOT_PURGED) {
569 if (result == ASHMEM_WAS_PURGED) {
572 mChannel->getName().string(), result, ashmemFd);
577 mChannel->getName().string(), result, ashmemFd);
590 result = sem_wait(& mSharedMessage->semaphore);
591 if (result < 0) {
645 status_t result = mChannel->receiveSignal(& signal);
646 if (result) {
647 return result;