Lines Matching refs:res

49   status_t res = NO_ERROR;  in setPreviewWindow()  local
61 res = window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN); in setPreviewWindow()
62 if (res == NO_ERROR) { in setPreviewWindow()
67 res = -res; // set_usage returns a negative errno. in setPreviewWindow()
69 res, strerror(res)); in setPreviewWindow()
74 return res; in setPreviewWindow()
100 int res; in onNextFrameAvailable() local
114 res = mPreviewWindow->set_buffers_geometry( in onNextFrameAvailable()
117 if (res != NO_ERROR) { in onNextFrameAvailable()
118 ALOGE("%s: Error in set_buffers_geometry %d -> %s", __FUNCTION__, -res, in onNextFrameAvailable()
119 strerror(-res)); in onNextFrameAvailable()
131 res = mPreviewWindow->dequeue_buffer(mPreviewWindow, &buffer, &stride); in onNextFrameAvailable()
132 if (res != NO_ERROR || buffer == NULL) { in onNextFrameAvailable()
134 -res, strerror(-res)); in onNextFrameAvailable()
139 res = mPreviewWindow->lock_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
140 if (res != NO_ERROR) { in onNextFrameAvailable()
142 -res, strerror(-res)); in onNextFrameAvailable()
150 res = GrallocModule::getInstance().import(*buffer, &importedBuffer); in onNextFrameAvailable()
151 if (res != NO_ERROR) { in onNextFrameAvailable()
152 ALOGE("%s: gralloc.import failure: %d -> %s", __FUNCTION__, res, in onNextFrameAvailable()
153 strerror(res)); in onNextFrameAvailable()
159 res = GrallocModule::getInstance().lock(importedBuffer, in onNextFrameAvailable()
163 if (res != NO_ERROR) { in onNextFrameAvailable()
164 ALOGE("%s: gralloc.lock failure: %d -> %s", __FUNCTION__, res, in onNextFrameAvailable()
165 strerror(res)); in onNextFrameAvailable()
172 res = camera_dev->getCurrentPreviewFrame(img); in onNextFrameAvailable()
173 if (res == NO_ERROR) { in onNextFrameAvailable()
178 ALOGE("%s: Unable to obtain preview frame: %d", __FUNCTION__, res); in onNextFrameAvailable()