Lines Matching refs:c

54     sp<Camera> c = new Camera(-1);  in create()  local
55 if (camera->connect(c) == NO_ERROR) { in create()
56 c->mStatus = NO_ERROR; in create()
57 c->mCamera = camera; in create()
58 IInterface::asBinder(camera)->linkToDeath(c); in create()
59 return c; in create()
86 sp<Camera> c = new Camera(cameraId); in connectLegacy() local
87 sp<::android::hardware::ICameraClient> cl = c; in connectLegacy()
94 clientUid, /*out*/&(c->mCamera)); in connectLegacy()
96 if (ret.isOk() && c->mCamera != nullptr) { in connectLegacy()
97 IInterface::asBinder(c->mCamera)->linkToDeath(c); in connectLegacy()
98 c->mStatus = NO_ERROR; in connectLegacy()
99 camera = c; in connectLegacy()
132 c.clear(); in connectLegacy()
140 sp <::android::hardware::ICamera> c = mCamera; in reconnect() local
141 if (c == 0) return NO_INIT; in reconnect()
142 return c->connect(this); in reconnect()
147 sp <::android::hardware::ICamera> c = mCamera; in lock() local
148 if (c == 0) return NO_INIT; in lock()
149 return c->lock(); in lock()
154 sp <::android::hardware::ICamera> c = mCamera; in unlock() local
155 if (c == 0) return NO_INIT; in unlock()
156 return c->unlock(); in unlock()
163 sp <::android::hardware::ICamera> c = mCamera; in setPreviewTarget() local
164 if (c == 0) return NO_INIT; in setPreviewTarget()
166 return c->setPreviewTarget(bufferProducer); in setPreviewTarget()
172 sp <::android::hardware::ICamera> c = mCamera; in setVideoTarget() local
173 if (c == 0) return NO_INIT; in setVideoTarget()
175 return c->setVideoTarget(bufferProducer); in setVideoTarget()
182 sp <::android::hardware::ICamera> c = mCamera; in startPreview() local
183 if (c == 0) return NO_INIT; in startPreview()
184 return c->startPreview(); in startPreview()
190 sp <::android::hardware::ICamera> c = mCamera; in setVideoBufferMode() local
191 if (c == 0) return NO_INIT; in setVideoBufferMode()
192 return c->setVideoBufferMode(videoBufferMode); in setVideoBufferMode()
199 sp <::android::hardware::ICamera> c = mCamera; in startRecording() local
200 if (c == 0) return NO_INIT; in startRecording()
201 return c->startRecording(); in startRecording()
208 sp <::android::hardware::ICamera> c = mCamera; in stopPreview() local
209 if (c == 0) return; in stopPreview()
210 c->stopPreview(); in stopPreview()
221 sp <::android::hardware::ICamera> c = mCamera; in stopRecording() local
222 if (c == 0) return; in stopRecording()
223 c->stopRecording(); in stopRecording()
230 sp <::android::hardware::ICamera> c = mCamera; in releaseRecordingFrame() local
231 if (c == 0) return; in releaseRecordingFrame()
232 c->releaseRecordingFrame(mem); in releaseRecordingFrame()
238 sp <::android::hardware::ICamera> c = mCamera; in releaseRecordingFrameHandle() local
239 if (c == 0) return; in releaseRecordingFrameHandle()
240 c->releaseRecordingFrameHandle(handle); in releaseRecordingFrameHandle()
246 sp <::android::hardware::ICamera> c = mCamera; in releaseRecordingFrameHandleBatch() local
247 if (c == 0) return; in releaseRecordingFrameHandleBatch()
248 c->releaseRecordingFrameHandleBatch(handles); in releaseRecordingFrameHandleBatch()
255 sp <::android::hardware::ICamera> c = mCamera; in previewEnabled() local
256 if (c == 0) return false; in previewEnabled()
257 return c->previewEnabled(); in previewEnabled()
264 sp <::android::hardware::ICamera> c = mCamera; in recordingEnabled() local
265 if (c == 0) return false; in recordingEnabled()
266 return c->recordingEnabled(); in recordingEnabled()
272 sp <::android::hardware::ICamera> c = mCamera; in autoFocus() local
273 if (c == 0) return NO_INIT; in autoFocus()
274 return c->autoFocus(); in autoFocus()
280 sp <::android::hardware::ICamera> c = mCamera; in cancelAutoFocus() local
281 if (c == 0) return NO_INIT; in cancelAutoFocus()
282 return c->cancelAutoFocus(); in cancelAutoFocus()
289 sp <::android::hardware::ICamera> c = mCamera; in takePicture() local
290 if (c == 0) return NO_INIT; in takePicture()
291 return c->takePicture(msgType); in takePicture()
298 sp <::android::hardware::ICamera> c = mCamera; in setParameters() local
299 if (c == 0) return NO_INIT; in setParameters()
300 return c->setParameters(params); in setParameters()
308 sp <::android::hardware::ICamera> c = mCamera; in getParameters() local
309 if (c != 0) params = mCamera->getParameters(); in getParameters()
317 sp <::android::hardware::ICamera> c = mCamera; in sendCommand() local
318 if (c == 0) return NO_INIT; in sendCommand()
319 return c->sendCommand(cmd, arg1, arg2); in sendCommand()
337 sp <::android::hardware::ICamera> c = mCamera; in setPreviewCallbackFlags() local
338 if (c == 0) return; in setPreviewCallbackFlags()
345 sp <::android::hardware::ICamera> c = mCamera; in setPreviewCallbackTarget() local
346 if (c == 0) return NO_INIT; in setPreviewCallbackTarget()
347 return c->setPreviewCallbackTarget(callbackProducer); in setPreviewCallbackTarget()