• Home
  • Raw
  • Download

Lines Matching refs:res

59     status_t res;  in initialize()  local
65 res = module->common.methods->open(&module->common, name, in initialize()
68 if (res != OK) { in initialize()
70 mId, strerror(-res), res); in initialize()
71 return res; in initialize()
84 res = module->get_camera_info(mId, &info); in initialize()
85 if (res != OK ) return res; in initialize()
95 res = mRequestQueue.setConsumerDevice(device); in initialize()
96 if (res != OK) { in initialize()
98 __FUNCTION__, mId, strerror(-res), res); in initialize()
100 return res; in initialize()
102 res = mFrameQueue.setProducerDevice(device); in initialize()
103 if (res != OK) { in initialize()
105 __FUNCTION__, mId, strerror(-res), res); in initialize()
107 return res; in initialize()
110 res = device->ops->get_metadata_vendor_tag_ops(device, &mVendorTagOps); in initialize()
111 if (res != OK ) { in initialize()
113 __FUNCTION__, mId, strerror(-res), res); in initialize()
115 return res; in initialize()
117 res = set_camera_metadata_vendor_tag_ops(mVendorTagOps); in initialize()
118 if (res != OK) { in initialize()
120 __FUNCTION__, mId, strerror(-res), res); in initialize()
122 return res; in initialize()
124 res = device->ops->set_notify_callback(device, notificationCallback, in initialize()
126 if (res != OK) { in initialize()
130 return res; in initialize()
141 status_t res = OK; in disconnect() local
152 res = mDevice->common.close(&mDevice->common); in disconnect()
153 if (res != OK) { in disconnect()
156 mId, strerror(-res), res); in disconnect()
161 return res; in disconnect()
199 status_t res; in dump() local
200 res = mDevice->ops->dump(mDevice, fd); in dump()
202 return res; in dump()
240 status_t res; in createStream() local
245 res = stream->connectToDevice(consumer, width, height, format, size); in createStream()
246 if (res != OK) { in createStream()
249 __FUNCTION__, mId, width, height, format, strerror(-res), res); in createStream()
250 return res; in createStream()
261 status_t res; in createReprocessStreamFromStream() local
281 res = stream->connectToDevice((*streamI)); in createReprocessStreamFromStream()
282 if (res != OK) { in createReprocessStreamFromStream()
285 strerror(-res), res); in createReprocessStreamFromStream()
286 return res; in createReprocessStreamFromStream()
351 status_t res = (*streamI)->release(); in deleteStream() local
352 if (res != OK) { in deleteStream()
354 "%s (%d)", __FUNCTION__, id, strerror(-res), res); in deleteStream()
355 return res; in deleteStream()
377 status_t res = (*streamI)->release(); in deleteReprocessStream() local
378 if (res != OK) { in deleteReprocessStream()
381 strerror(-res), res); in deleteReprocessStream()
382 return res; in deleteReprocessStream()
435 status_t res; in setNotifyCallback() local
436 res = mDevice->ops->set_notify_callback(mDevice, notificationCallback, in setNotifyCallback()
438 if (res != OK) { in setNotifyCallback()
441 return res; in setNotifyCallback()
485 status_t res; in getNextFrame() local
487 res = mFrameQueue.dequeue(&rawFrame); in getNextFrame()
490 } else if (res == OK) { in getNextFrame()
493 return res; in getNextFrame()
498 status_t res; in triggerAutofocus() local
500 res = mDevice->ops->trigger_action(mDevice, in triggerAutofocus()
502 if (res != OK) { in triggerAutofocus()
506 return res; in triggerAutofocus()
511 status_t res; in triggerCancelAutofocus() local
513 res = mDevice->ops->trigger_action(mDevice, in triggerCancelAutofocus()
515 if (res != OK) { in triggerCancelAutofocus()
519 return res; in triggerCancelAutofocus()
524 status_t res; in triggerPrecaptureMetering() local
526 res = mDevice->ops->trigger_action(mDevice, in triggerPrecaptureMetering()
528 if (res != OK) { in triggerPrecaptureMetering()
532 return res; in triggerPrecaptureMetering()
540 status_t res = OK; in pushReprocessBuffer() local
544 res = (*streamI)->pushIntoStream(buffer, listener); in pushReprocessBuffer()
545 if (res != OK) { in pushReprocessBuffer()
547 __FUNCTION__, reprocessStreamId, strerror(-res), res); in pushReprocessBuffer()
548 return res; in pushReprocessBuffer()
557 res = BAD_VALUE; in pushReprocessBuffer()
559 return res; in pushReprocessBuffer()
601 status_t res; in setConsumerDevice() local
602 res = d->ops->set_request_queue_src_ops(d, in setConsumerDevice()
604 if (res != OK) return res; in setConsumerDevice()
611 status_t res; in setProducerDevice() local
612 res = d->ops->set_frame_queue_dst_ops(d, in setProducerDevice()
614 return res; in setProducerDevice()
643 status_t res; in dequeue() local
676 res = find_camera_metadata_entry(b, in dequeue()
679 if (res != OK) { in dequeue()
681 __FUNCTION__, strerror(-res), res); in dequeue()
690 res = find_camera_metadata_entry(b, in dequeue()
693 if (res == OK) { in dequeue()
707 status_t res; in waitForBuffer() local
709 res = notEmpty.waitRelative(mMutex,timeout); in waitForBuffer()
710 if (res != OK) return res; in waitForBuffer()
718 status_t res; in waitForDequeue() local
722 res = mNewRequestId.waitRelative(mMutex, timeout); in waitForDequeue()
723 if (res != OK) return res; in waitForDequeue()
768 status_t res; in setStreamSlot() local
837 status_t res = OK; in signalConsumerLocked() local
844 res = mDevice->ops->notify_request_queue_not_empty(mDevice); in signalConsumerLocked()
847 return res; in signalConsumerLocked()
969 status_t res; in connectToDevice() local
993 res = mDevice->ops->allocate_stream(mDevice, in connectToDevice()
996 if (res != OK) { in connectToDevice()
998 __FUNCTION__, strerror(-res), res); in connectToDevice()
999 return res; in connectToDevice()
1014 res = native_window_api_connect(mConsumerInterface.get(), in connectToDevice()
1016 if (res != OK) { in connectToDevice()
1020 return res; in connectToDevice()
1025 res = native_window_set_usage(mConsumerInterface.get(), mUsage); in connectToDevice()
1026 if (res != OK) { in connectToDevice()
1029 return res; in connectToDevice()
1032 res = native_window_set_scaling_mode(mConsumerInterface.get(), in connectToDevice()
1034 if (res != OK) { in connectToDevice()
1036 __FUNCTION__, strerror(-res), res); in connectToDevice()
1037 return res; in connectToDevice()
1040 res = setTransform(0); in connectToDevice()
1041 if (res != OK) { in connectToDevice()
1042 return res; in connectToDevice()
1046 res = native_window_set_buffers_geometry(mConsumerInterface.get(), in connectToDevice()
1048 if (res != OK) { in connectToDevice()
1052 return res; in connectToDevice()
1055 res = native_window_set_buffers_geometry(mConsumerInterface.get(), in connectToDevice()
1057 if (res != OK) { in connectToDevice()
1061 return res; in connectToDevice()
1066 res = mConsumerInterface->query(mConsumerInterface.get(), in connectToDevice()
1068 if (res != OK) { in connectToDevice()
1071 return res; in connectToDevice()
1083 res = native_window_set_buffer_count(mConsumerInterface.get(), in connectToDevice()
1085 if (res != OK) { in connectToDevice()
1088 return res; in connectToDevice()
1096 res = native_window_dequeue_buffer_and_wait(mConsumerInterface.get(), in connectToDevice()
1098 if (res != OK) { in connectToDevice()
1109 res = mDevice->ops->register_stream_buffers(mDevice, in connectToDevice()
1113 if (res != OK) { in connectToDevice()
1123 res = mConsumerInterface->cancelBuffer(mConsumerInterface.get(), in connectToDevice()
1125 if (res != OK) { in connectToDevice()
1133 return res; in connectToDevice()
1138 status_t res; in release() local
1141 res = mDevice->ops->release_stream(mDevice, mId); in release()
1142 if (res != OK) { in release()
1145 return res; in release()
1149 res = native_window_api_disconnect(mConsumerInterface.get(), in release()
1155 if (res == DEAD_OBJECT) { in release()
1159 else if (res != OK) { in release()
1161 __FUNCTION__, mId, res, strerror(-res)); in release()
1162 return res; in release()
1172 status_t res; in setTransform() local
1177 res = native_window_set_buffers_transform(mConsumerInterface.get(), in setTransform()
1179 if (res != OK) { in setTransform()
1181 __FUNCTION__, transform, strerror(-res), res); in setTransform()
1183 return res; in setTransform()
1213 int res; in dequeue_buffer() local
1223 res = native_window_dequeue_buffer_and_wait(a, &anb); in dequeue_buffer()
1224 if (res != OK) { in dequeue_buffer()
1226 strerror(-res), res); in dequeue_buffer()
1227 return res; in dequeue_buffer()
1234 return res; in dequeue_buffer()
1343 status_t res; in connectToDevice() local
1364 res = mDevice->ops->allocate_reprocess_stream_from_stream(mDevice, in connectToDevice()
1367 if (res != OK) { in connectToDevice()
1369 __FUNCTION__, strerror(-res), res); in connectToDevice()
1370 return res; in connectToDevice()
1385 status_t res; in release() local
1388 res = mDevice->ops->release_reprocess_stream(mDevice, mId); in release()
1389 if (res != OK) { in release()
1392 return res; in release()
1447 int res; in acquire_buffer() local