Lines Matching refs:res
54 status_t res = NO_ERROR;
66 res = window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN);
67 if (res == NO_ERROR) {
72 res = -res; // set_usage returns a negative errno.
74 __FUNCTION__, res, strerror(res));
79 return res;
108 int res;
123 res = mPreviewWindow->set_buffers_geometry(mPreviewWindow,
127 if (res != NO_ERROR) {
129 __FUNCTION__, -res, strerror(-res));
141 res = mPreviewWindow->dequeue_buffer(mPreviewWindow, &buffer, &stride);
142 if (res != NO_ERROR || buffer == NULL) {
144 __FUNCTION__, -res, strerror(-res));
149 res = mPreviewWindow->lock_buffer(mPreviewWindow, buffer);
150 if (res != NO_ERROR) {
152 __FUNCTION__, -res, strerror(-res));
162 res = grbuffer_mapper.lock(*buffer, GRALLOC_USAGE_SW_WRITE_OFTEN, rect, &img);
163 if (res != NO_ERROR) {
165 __FUNCTION__, res, strerror(res));
172 res = camera_dev->getCurrentPreviewFrame(img);
173 if (res == NO_ERROR) {
178 ALOGE("%s: Unable to obtain preview frame: %d", __FUNCTION__, res);