Lines Matching refs:camera_dev
171 EmulatedCameraDevice* camera_dev) in onNextFrameAvailable() argument
174 mPreviewWindow.onNextFrameAvailable(frame, timestamp, camera_dev); in onNextFrameAvailable()
177 mCallbackNotifier.onNextFrameAvailable(frame, timestamp, camera_dev); in onNextFrameAvailable()
195 EmulatedCameraDevice* const camera_dev = getCameraDevice(); in connectCamera() local
196 ALOGE_IF(camera_dev == NULL, "%s: No camera device instance.", __FUNCTION__); in connectCamera()
198 if (camera_dev != NULL) { in connectCamera()
377 EmulatedCameraDevice* const camera_dev = getCameraDevice(); in takePicture() local
378 if (camera_dev->isStarted()) { in takePicture()
380 camera_dev->stopDeliveringFrames(); in takePicture()
381 camera_dev->stopDevice(); in takePicture()
391 res = camera_dev->startDevice(width, height, org_fmt); in takePicture()
402 res = camera_dev->startDeliveringFrames(true); in takePicture()
539 EmulatedCameraDevice* camera_dev = getCameraDevice(); in doStartPreview() local
540 if (camera_dev->isStarted()) { in doStartPreview()
541 camera_dev->stopDeliveringFrames(); in doStartPreview()
542 camera_dev->stopDevice(); in doStartPreview()
551 if (!camera_dev->isConnected()) { in doStartPreview()
552 res = camera_dev->connectDevice(); in doStartPreview()
608 res = camera_dev->startDevice(width, height, org_fmt); in doStartPreview()
614 res = camera_dev->startDeliveringFrames(false); in doStartPreview()
616 camera_dev->stopDevice(); in doStartPreview()
659 EmulatedCameraDevice* const camera_dev = getCameraDevice(); in cleanupCamera() local
660 if (camera_dev != NULL) { in cleanupCamera()
661 if (camera_dev->isStarted()) { in cleanupCamera()
662 camera_dev->stopDeliveringFrames(); in cleanupCamera()
663 res = camera_dev->stopDevice(); in cleanupCamera()
668 if (camera_dev->isConnected()) { in cleanupCamera()
669 res = camera_dev->disconnectDevice(); in cleanupCamera()