Home | History | Annotate | Download | only in libcameraservice

Lines Matching refs:res

63     status_t res;
69 res = module->common.methods->open(&module->common, name,
72 if (res != OK) {
74 mId, strerror(-res), res);
75 return res;
88 res = module->get_camera_info(mId, &info);
89 if (res != OK ) return res;
99 res = mRequestQueue.setConsumerDevice(device);
100 if (res != OK) {
102 __FUNCTION__, mId, strerror(-res), res);
104 return res;
106 res = mFrameQueue.setProducerDevice(device);
107 if (res != OK) {
109 __FUNCTION__, mId, strerror(-res), res);
111 return res;
114 res = device->ops->get_metadata_vendor_tag_ops(device, &mVendorTagOps);
115 if (res != OK ) {
117 __FUNCTION__, mId, strerror(-res), res);
119 return res;
121 res = set_camera_metadata_vendor_tag_ops(mVendorTagOps);
122 if (res != OK) {
124 __FUNCTION__, mId, strerror(-res), res);
126 return res;
128 res = device->ops->set_notify_callback(device, notificationCallback,
130 if (res != OK) {
134 return res;
145 status_t res = OK;
156 res = mHal2Device->common.close(&mHal2Device->common);
157 if (res != OK) {
160 mId, strerror(-res), res);
165 return res;
203 status_t res;
204 res = mHal2Device->ops->dump(mHal2Device, fd);
206 return res;
244 status_t res;
249 res = stream->connectToDevice(consumer, width, height, format, size);
250 if (res != OK) {
253 __FUNCTION__, mId, width, height, format, strerror(-res), res);
254 return res;
265 status_t res;
285 res = stream->connectToDevice((*streamI));
286 if (res != OK) {
289 strerror(-res), res);
290 return res;
355 status_t res = (*streamI)->release();
356 if (res != OK) {
358 "%s (%d)", __FUNCTION__, id, strerror(-res), res);
359 return res;
381 status_t res = (*streamI)->release();
382 if (res != OK) {
385 strerror(-res), res);
386 return res;
439 status_t res;
440 res = mHal2Device->ops->set_notify_callback(mHal2Device, notificationCallback,
442 if (res != OK) {
445 return res;
493 status_t res;
495 res = mFrameQueue.dequeue(&rawFrame);
498 } else if (res == OK) {
501 return res;
506 status_t res;
508 res = mHal2Device->ops->trigger_action(mHal2Device,
510 if (res != OK) {
514 return res;
519 status_t res;
521 res = mHal2Device->ops->trigger_action(mHal2Device,
523 if (res != OK) {
527 return res;
532 status_t res;
534 res
536 if (res != OK) {
540 return res;
548 status_t res = OK;
552 res = (*streamI)->pushIntoStream(buffer, listener);
553 if (res != OK) {
555 __FUNCTION__, reprocessStreamId, strerror(-res), res);
556 return res;
565 res = BAD_VALUE;
567 return res;
602 status_t res;
603 res = d->ops->set_request_queue_src_ops(d,
605 if (res != OK) return res;
612 status_t res;
613 res = d->ops->set_frame_queue_dst_ops(d,
615 return res;
644 status_t res;
677 res = find_camera_metadata_entry(b,
680 if (res != OK) {
682 __FUNCTION__, strerror(-res), res);
691 res = find_camera_metadata_entry(b,
694 if (res == OK) {
708 status_t res;
710 res = notEmpty.waitRelative(mMutex,timeout);
711 if (res != OK) return res;
719 status_t res;
723 res = mNewRequestId.waitRelative(mMutex, timeout);
724 if (res != OK) return res;
837 status_t res = OK;
844 res = mHal2Device->ops->notify_request_queue_not_empty(mHal2Device);
847 return res;
970 status_t res;
994 res = mHal2Device->ops->allocate_stream(mHal2Device,
997 if (res != OK) {
999 __FUNCTION__, strerror(-res), res);
1000 return res;
1015 res = native_window_api_connect(mConsumerInterface.get(),
1017 if (res != OK) {
1021 return res;
1026 res = native_window_set_usage(mConsumerInterface.get(), mUsage);
1027 if (res != OK) {
1030 return res;
1033 res = native_window_set_scaling_mode(mConsumerInterface.get(),
1035 if (res != OK) {
1037 __FUNCTION__, strerror(-res), res);
1038 return res;
1041 res = setTransform(0);
1042 if (res != OK) {
1043 return res;
1047 res = native_window_set_buffers_geometry(mConsumerInterface.get(),
1049 if (res != OK) {
1053 return res;
1056 res = native_window_set_buffers_geometry(mConsumerInterface.get(),
1058 if (res != OK) {
1062 return res;
1067 res = mConsumerInterface->query(mConsumerInterface.get(),
1069 if (res != OK) {
1072 return res;
1084 res = native_window_set_buffer_count(mConsumerInterface.get(),
1086 if (res != OK) {
1089 return res;
1097 res = native_window_dequeue_buffer_and_wait(mConsumerInterface.get(),
1099 if (res != OK) {
1110 res = mHal2Device->ops->register_stream_buffers(mHal2Device,
1114 if (res != OK) {
1124 res = mConsumerInterface->cancelBuffer(mConsumerInterface.get(),
1126 if (res != OK) {
1134 return res;
1139 status_t res;
1143 res = mHal2Device->ops->release_stream(mHal2Device, mId);
1144 if (res != OK) {
1147 return res;
1151 res = native_window_api_disconnect(mConsumerInterface.get(),
1157 if (res == DEAD_OBJECT) {
1161 else if (res != OK) {
1163 __FUNCTION__, mId, res, strerror(-res));
1164 return res;
1174 status_t res;
1179 res = native_window_set_buffers_transform(mConsumerInterface.get(),
1181 if (res != OK) {
1183 __FUNCTION__, transform, strerror(-res), res);
1185 return res;
1215 int res;
1225 res = native_window_dequeue_buffer_and_wait(a, &anb);
1226 if (res != OK) {
1228 strerror(-res), res);
1229 return res;
1236 return res;
1345 status_t res;
1366 res = mHal2Device->ops->allocate_reprocess_stream_from_stream(mHal2Device,
1369 if (res != OK) {
1371 __FUNCTION__, strerror(-res), res);
1372 return res;
1387 status_t res;
1390 res = mHal2Device->ops->release_reprocess_stream(mHal2Device, mId);
1391 if (res != OK) {
1394 return res;