Lines Matching refs:cameraId

49 status_t CameraFlashlight::createFlashlightControl(const String8& cameraId) {
51 cameraId.string());
72 atoi(String8(cameraId).string()), &info);
75 __FUNCTION__, cameraId.string());
100 status_t CameraFlashlight::setTorchMode(const String8& cameraId, bool enabled) {
108 cameraId.string(), enabled);
113 if (mOpenedCameraIds.indexOf(cameraId) != NAME_NOT_FOUND) {
123 __FUNCTION__, cameraId.string());
132 res = createFlashlightControl(cameraId);
136 res = mFlashControl->setTorchMode(cameraId, enabled);
142 res = mFlashControl->setTorchMode(cameraId, enabled);
147 res = createFlashlightControl(cameraId);
151 res = mFlashControl->setTorchMode(cameraId, enabled);
195 bool CameraFlashlight::hasFlashUnit(const String8& cameraId) {
197 return hasFlashUnitLocked(cameraId);
200 bool CameraFlashlight::hasFlashUnitLocked(const String8& cameraId) {
207 ssize_t index = mHasFlashlightMap.indexOfKey(cameraId);
210 __FUNCTION__, cameraId.string());
217 status_t CameraFlashlight::prepareDeviceOpen(const String8& cameraId) {
248 if (mOpenedCameraIds.indexOf(cameraId) == NAME_NOT_FOUND) {
249 mOpenedCameraIds.add(cameraId);
255 status_t CameraFlashlight::deviceClosed(const String8& cameraId) {
256 ALOGV("%s: device %s is closed", __FUNCTION__, cameraId.string());
265 ssize_t index = mOpenedCameraIds.indexOf(cameraId);
268 cameraId.string());
310 status_t ModuleFlashControl::hasFlashUnit(const String8& cameraId, bool *hasFlash) {
319 status_t res = mCameraModule->getCameraInfo(atoi(cameraId.string()),
336 status_t ModuleFlashControl::setTorchMode(const String8& cameraId, bool enabled) {
338 cameraId.string(), enabled);
341 return mCameraModule->setTorchMode(cameraId.string(), enabled);
470 const String8& cameraId) {
472 status_t res = mCameraModule->getCameraInfo(atoi(cameraId.string()), &info);
475 cameraId.string());
480 new Camera3Device(atoi(cameraId.string()));
500 mCameraId = cameraId;
518 status_t CameraDeviceClientFlashControl::hasFlashUnit(const String8& cameraId,
521 cameraId.string());
524 return hasFlashUnitLocked(cameraId, hasFlash);
529 const String8& cameraId, bool *hasFlash) {
536 atoi(cameraId.string()), &info);
539 cameraId.string());
591 const String8& cameraId, bool enabled) {
595 status_t res = hasFlashUnitLocked(cameraId, &hasFlash);
608 if (mDevice != NULL && cameraId != mCameraId) {
611 } else if (mDevice == NULL || cameraId != mCameraId) {
619 cameraId.string(), TORCH_MODE_STATUS_AVAILABLE_OFF);
624 res = connectCameraDevice(cameraId);
637 cameraId.string(), TORCH_MODE_STATUS_AVAILABLE_ON);
675 const String8& cameraId, bool enabled) {
683 res = hasFlashUnitLocked(cameraId, &hasFlash, /*keepDeviceOpen*/true);
696 } else if (mDevice == NULL || cameraId != mCameraId) {
704 cameraId.string(), TORCH_MODE_STATUS_AVAILABLE_OFF);
715 cameraId.string(), TORCH_MODE_STATUS_AVAILABLE_ON);
720 const String8& cameraId, bool *hasFlash) {
723 return hasFlashUnitLocked(cameraId, hasFlash, /*keepDeviceOpen*/false);
727 const String8& cameraId, bool *hasFlash, bool keepDeviceOpen) {
737 res = connectCameraDevice(cameraId);
746 if (cameraId != mCameraId) {
850 const String8& cameraId) {
852 new CameraHardwareInterface(cameraId.string());
857 cameraId.string());
870 __FUNCTION__, cameraId.string());
877 __FUNCTION__, cameraId.string());
881 mCameraId = cameraId;