Lines Matching refs:res
139 status_t res; in waitForBuffer() local
141 res = notEmpty.waitRelative(mMutex,timeout); in waitForBuffer()
142 if (res != OK) return res; in waitForBuffer()
343 status_t res; in connectToDevice() local
355 res = d->ops->allocate_stream(d, in connectToDevice()
358 if (res != OK) { in connectToDevice()
360 __FUNCTION__, strerror(-res), res); in connectToDevice()
362 return res; in connectToDevice()
372 res = native_window_api_connect(mConsumerInterface.get(), in connectToDevice()
374 if (res != OK) { in connectToDevice()
378 return res; in connectToDevice()
381 res = native_window_set_usage(mConsumerInterface.get(), mUsage); in connectToDevice()
382 if (res != OK) { in connectToDevice()
386 return res; in connectToDevice()
389 res = native_window_set_buffers_dimensions(mConsumerInterface.get(), in connectToDevice()
391 if (res != OK) { in connectToDevice()
396 return res; in connectToDevice()
398 res = native_window_set_buffers_format(mConsumerInterface.get(), in connectToDevice()
400 if (res != OK) { in connectToDevice()
405 return res; in connectToDevice()
409 res = mConsumerInterface->query(mConsumerInterface.get(), in connectToDevice()
411 if (res != OK) { in connectToDevice()
415 return res; in connectToDevice()
424 res = native_window_set_buffer_count(mConsumerInterface.get(), in connectToDevice()
426 if (res != OK) { in connectToDevice()
430 return res; in connectToDevice()
438 res = native_window_dequeue_buffer_and_wait(mConsumerInterface.get(), in connectToDevice()
440 if (res != OK) { in connectToDevice()
449 res = mDevice->ops->register_stream_buffers(mDevice, in connectToDevice()
453 if (res != OK) { in connectToDevice()
463 res = mConsumerInterface->cancelBuffer(mConsumerInterface.get(), in connectToDevice()
469 return res; in connectToDevice()
473 status_t res; in disconnect() local
475 res = mDevice->ops->release_stream(mDevice, mId); in disconnect()
476 if (res != OK) { in disconnect()
479 return res; in disconnect()
483 res = native_window_api_disconnect(mConsumerInterface.get(), in disconnect()
485 if (res != OK) { in disconnect()
488 return res; in disconnect()
510 int res; in dequeue_buffer() local
519 res = native_window_dequeue_buffer_and_wait(a, &anb); in dequeue_buffer()
520 if (res != OK) return res; in dequeue_buffer()
524 return res; in dequeue_buffer()
576 status_t res; in waitForFrame() local
579 res = mCondition.waitRelative(mMutex, timeout); in waitForFrame()
580 if (res != OK) return res; in waitForFrame()