Lines Matching refs:res
114 status_t res; in Initialize() local
134 res = constructStaticInfo(&mCameraInfo, true); in Initialize()
135 if (res != OK) { in Initialize()
137 __FUNCTION__, strerror(-res), res); in Initialize()
138 return res; in Initialize()
140 res = constructStaticInfo(&mCameraInfo, false); in Initialize()
141 if (res != OK) { in Initialize()
143 __FUNCTION__, strerror(-res), res); in Initialize()
144 return res; in Initialize()
146 if (res != OK) return res; in Initialize()
163 status_t res; in connectCamera() local
184 res = mSensor->startUp(); in connectCamera()
185 if (res != NO_ERROR) return res; in connectCamera()
187 res = mConfigureThread->run("EmulatedFakeCamera2::configureThread"); in connectCamera()
188 if (res != NO_ERROR) return res; in connectCamera()
190 res = mReadoutThread->run("EmulatedFakeCamera2::readoutThread"); in connectCamera()
191 if (res != NO_ERROR) return res; in connectCamera()
193 res = mControlThread->run("EmulatedFakeCamera2::controlThread"); in connectCamera()
194 if (res != NO_ERROR) return res; in connectCamera()
244 status_t res; in closeCamera() local
251 res = mSensor->shutDown(); in closeCamera()
252 if (res != NO_ERROR) { in closeCamera()
253 ALOGE("%s: Unable to shut down sensor: %d", __FUNCTION__, res); in closeCamera()
254 return res; in closeCamera()
339 status_t res; in constructDefaultRequest() local
341 res = constructDefaultRequest(request_template, in constructDefaultRequest()
344 if (res != OK) { in constructDefaultRequest()
345 return res; in constructDefaultRequest()
348 res = constructDefaultRequest(request_template, in constructDefaultRequest()
351 if (res != OK) { in constructDefaultRequest()
356 return res; in constructDefaultRequest()
732 status_t res; in threadLoop() local
739 status_t res; in threadLoop() local
740 res = mInputSignal.waitRelative(mInputMutex, kWaitPerLoop); in threadLoop()
741 if (res != NO_ERROR && res != TIMED_OUT) { in threadLoop()
743 __FUNCTION__, res); in threadLoop()
756 res = mParent->mRequestQueueSrc->dequeue_request( in threadLoop()
759 if (res != NO_ERROR) { in threadLoop()
760 ALOGE("%s: Error dequeuing next request: %d", __FUNCTION__, res); in threadLoop()
776 res = find_camera_metadata_entry(mRequest, in threadLoop()
779 if (res != NO_ERROR) { in threadLoop()
832 status_t res; in setupCapture() local
839 res = find_camera_metadata_entry(mRequest, in setupCapture()
842 if (res != NO_ERROR) { in setupCapture()
876 res = find_camera_metadata_entry(mRequest, in setupCapture()
879 if (res != NO_ERROR) { in setupCapture()
881 __FUNCTION__, strerror(-res), res); in setupCapture()
887 res = find_camera_metadata_entry(mRequest, in setupCapture()
890 if (res != NO_ERROR) { in setupCapture()
892 __FUNCTION__, strerror(-res), res); in setupCapture()
898 res = find_camera_metadata_entry(mRequest, in setupCapture()
901 if (res != NO_ERROR) { in setupCapture()
912 res = find_camera_metadata_entry(mRequest, in setupCapture()
915 if (res != NO_ERROR) { in setupCapture()
955 status_t res; in setupReprocess() local
961 res = find_camera_metadata_entry(mRequest, in setupReprocess()
964 if (res != NO_ERROR) { in setupReprocess()
992 res = find_camera_metadata_entry(mRequest, in setupReprocess()
995 if (res != NO_ERROR) { in setupReprocess()
1025 res = find_camera_metadata_entry(mRequest, in setupReprocess()
1028 if (res != NO_ERROR) { in setupReprocess()
1030 __FUNCTION__, strerror(-res), res); in setupReprocess()
1057 status_t res; in getBuffers() local
1065 res = s.ops->dequeue_buffer(s.ops, &(b.buffer) ); in getBuffers()
1066 if (res != NO_ERROR || b.buffer == NULL) { in getBuffers()
1068 __FUNCTION__, b.streamId, strerror(-res), res); in getBuffers()
1074 res = mParent->mGBM->lock(*(b.buffer), in getBuffers()
1080 if (res != NO_ERROR) { in getBuffers()
1082 __FUNCTION__, strerror(-res), res); in getBuffers()
1092 res = s.ops->acquire_buffer(s.ops, &(b.buffer) ); in getBuffers()
1093 if (res != NO_ERROR || b.buffer == NULL) { in getBuffers()
1096 strerror(-res), res); in getBuffers()
1102 res = GraphicBufferMapper::get().lock(*(b.buffer), in getBuffers()
1106 if (res != NO_ERROR) { in getBuffers()
1108 __FUNCTION__, strerror(-res), res); in getBuffers()
1154 status_t res; in waitForReady() local
1157 res = mReadySignal.waitRelative(mInputMutex, timeout); in waitForReady()
1158 if (res == TIMED_OUT) return false; in waitForReady()
1159 if (res != OK) { in waitForReady()
1161 strerror(-res), res); in waitForReady()
1226 status_t res; in threadLoop() local
1234 res = mInputSignal.waitRelative(mInputMutex, kWaitPerLoop); in threadLoop()
1235 if (res != NO_ERROR && res != TIMED_OUT) { in threadLoop()
1237 __FUNCTION__, res); in threadLoop()
1281 res = find_camera_metadata_entry(mRequest, in threadLoop()
1284 if (res != NO_ERROR) { in threadLoop()
1286 __FUNCTION__, strerror(-res), res); in threadLoop()
1293 res = find_camera_metadata_entry(mRequest, in threadLoop()
1296 if (res != NO_ERROR) { in threadLoop()
1298 __FUNCTION__, strerror(-res), res); in threadLoop()
1304 res = find_camera_metadata_entry(mRequest, in threadLoop()
1307 if (res != NO_ERROR) { in threadLoop()
1309 __FUNCTION__, strerror(-res), res); in threadLoop()
1330 res = mParent->mFrameQueueDst->dequeue_frame(mParent->mFrameQueueDst, in threadLoop()
1333 if (res != NO_ERROR || frame == NULL) { in threadLoop()
1339 res = append_camera_metadata(frame, mRequest); in threadLoop()
1340 if (res != NO_ERROR) { in threadLoop()
1359 res = mParent->mRequestQueueSrc->free_request(mParent->mRequestQueueSrc, mRequest); in threadLoop()
1360 if (res != NO_ERROR) { in threadLoop()
1362 __FUNCTION__, res); in threadLoop()
1383 res = s.ops->enqueue_buffer(s.ops, captureTime, b.buffer); in threadLoop()
1384 if (res != OK) { in threadLoop()
1386 strerror(-res), res); in threadLoop()
1413 status_t res; in onJpegDone() local
1427 res = s.ops->enqueue_buffer(s.ops, mJpegTimestamp, jpegBuffer.buffer); in onJpegDone()
1432 status_t res; in onJpegInputDone() local
1436 res = s.ops->release_buffer(s.ops, inputBuffer.buffer); in onJpegInputDone()
1437 if (res != OK) { in onJpegInputDone()
1439 inputBuffer.buffer, strerror(-res), res); in onJpegInputDone()
1449 status_t res; in collectStatisticsMetadata() local
1451 res = find_camera_metadata_entry(frame, in collectStatisticsMetadata()
1454 if (res != OK) { in collectStatisticsMetadata()
1491 res = add_camera_metadata_entry(frame, ANDROID_STATISTICS_FACE_RECTANGLES, in collectStatisticsMetadata()
1493 if (res != OK) { in collectStatisticsMetadata()
1498 res = add_camera_metadata_entry(frame, ANDROID_STATISTICS_FACE_SCORES, in collectStatisticsMetadata()
1500 if (res != OK) { in collectStatisticsMetadata()
1536 res = add_camera_metadata_entry(frame, ANDROID_STATISTICS_FACE_LANDMARKS, in collectStatisticsMetadata()
1538 if (res != OK) { in collectStatisticsMetadata()
1543 res = add_camera_metadata_entry(frame, ANDROID_STATISTICS_FACE_IDS, in collectStatisticsMetadata()
1545 if (res != OK) { in collectStatisticsMetadata()
1609 status_t res; in processRequest() local
1611 #define READ_IF_OK(res, what, def) \ in processRequest() argument
1612 (((res) == OK) ? (what) : (uint8_t)(def)) in processRequest()
1614 res = find_camera_metadata_entry(request, in processRequest()
1617 mControlMode = READ_IF_OK(res, mode.data.u8[0], ANDROID_CONTROL_MODE_OFF); in processRequest()
1631 return res; in processRequest()
1634 res = find_camera_metadata_entry(request, in processRequest()
1637 mEffectMode = READ_IF_OK(res, mode.data.u8[0], in processRequest()
1640 res = find_camera_metadata_entry(request, in processRequest()
1643 mSceneMode = READ_IF_OK(res, mode.data.u8[0], in processRequest()
1646 res = find_camera_metadata_entry(request, in processRequest()
1657 res = find_camera_metadata_entry(request, in processRequest()
1660 mAeMode = READ_IF_OK(res, mode.data.u8[0], in processRequest()
1663 res = find_camera_metadata_entry(request, in processRequest()
1666 uint8_t aeLockVal = READ_IF_OK(res, mode.data.u8[0], in processRequest()
1674 res = find_camera_metadata_entry(request, in processRequest()
1677 mAwbMode = READ_IF_OK(res, mode.data.u8[0], in processRequest()
1684 res = find_camera_metadata_entry(request, in processRequest()
1687 if (res == OK) { in processRequest()