Lines Matching refs:res
52 status_t res = NO_ERROR; in setPreviewWindow() local
62 res = window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN); in setPreviewWindow()
63 if (res != NO_ERROR) { in setPreviewWindow()
65 res = -res; // set_usage returns a negative errno. in setPreviewWindow()
67 __FUNCTION__, res, strerror(res)); in setPreviewWindow()
72 return res; in setPreviewWindow()
100 int res; in onNextFrameAvailable() local
115 res = mPreviewWindow->set_buffers_geometry(mPreviewWindow, in onNextFrameAvailable()
119 if (res != NO_ERROR) { in onNextFrameAvailable()
121 __FUNCTION__, -res, strerror(-res)); in onNextFrameAvailable()
133 res = mPreviewWindow->dequeue_buffer(mPreviewWindow, &buffer, &stride); in onNextFrameAvailable()
134 if (res != NO_ERROR || buffer == NULL) { in onNextFrameAvailable()
136 __FUNCTION__, -res, strerror(-res)); in onNextFrameAvailable()
141 res = mPreviewWindow->lock_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
142 if (res != NO_ERROR) { in onNextFrameAvailable()
144 __FUNCTION__, -res, strerror(-res)); in onNextFrameAvailable()
152 res = GrallocModule::getInstance().lock( in onNextFrameAvailable()
155 if (res != NO_ERROR) { in onNextFrameAvailable()
157 __FUNCTION__, res, strerror(res)); in onNextFrameAvailable()
165 res = camera_dev->getCurrentPreviewFrame(img, &frame_timestamp); in onNextFrameAvailable()
166 if (res == NO_ERROR) { in onNextFrameAvailable()
172 ALOGE("%s: Unable to obtain preview frame: %d", __FUNCTION__, res); in onNextFrameAvailable()