Lines Matching refs:cameraId
50 status_t CameraFlashlight::createFlashlightControl(const String8& cameraId) { in createFlashlightControl() argument
52 cameraId.string()); in createFlashlightControl()
57 if (mProviderManager->supportSetTorchMode(cameraId.string())) { in createFlashlightControl()
67 status_t CameraFlashlight::setTorchMode(const String8& cameraId, bool enabled) { in setTorchMode() argument
75 cameraId.string(), enabled); in setTorchMode()
80 if (mOpenedCameraIds.indexOf(cameraId) != NAME_NOT_FOUND) { in setTorchMode()
90 __FUNCTION__, cameraId.string()); in setTorchMode()
95 res = createFlashlightControl(cameraId); in setTorchMode()
99 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode()
105 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode()
110 res = createFlashlightControl(cameraId); in setTorchMode()
114 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode()
120 status_t CameraFlashlight::turnOnTorchWithStrengthLevel(const String8& cameraId, in turnOnTorchWithStrengthLevel() argument
129 cameraId.string(), torchStrength); in turnOnTorchWithStrengthLevel()
133 if (mOpenedCameraIds.indexOf(cameraId) != NAME_NOT_FOUND) { in turnOnTorchWithStrengthLevel()
135 __FUNCTION__, cameraId.string()); in turnOnTorchWithStrengthLevel()
140 res = createFlashlightControl(cameraId); in turnOnTorchWithStrengthLevel()
146 res = mFlashControl->turnOnTorchWithStrengthLevel(cameraId, torchStrength); in turnOnTorchWithStrengthLevel()
151 status_t CameraFlashlight::getTorchStrengthLevel(const String8& cameraId, in getTorchStrengthLevel() argument
163 res = createFlashlightControl(cameraId); in getTorchStrengthLevel()
169 res = mFlashControl->getTorchStrengthLevel(cameraId, torchStrength); in getTorchStrengthLevel()
221 bool CameraFlashlight::hasFlashUnit(const String8& cameraId) { in hasFlashUnit() argument
223 return hasFlashUnitLocked(cameraId); in hasFlashUnit()
226 bool CameraFlashlight::hasFlashUnitLocked(const String8& cameraId) { in hasFlashUnitLocked() argument
233 ssize_t index = mHasFlashlightMap.indexOfKey(cameraId); in hasFlashUnitLocked()
237 __FUNCTION__, cameraId.string()); in hasFlashUnitLocked()
244 bool CameraFlashlight::isBackwardCompatibleMode(const String8& cameraId) { in isBackwardCompatibleMode() argument
247 !mProviderManager->supportSetTorchMode(cameraId.string())) { in isBackwardCompatibleMode()
253 status_t CameraFlashlight::prepareDeviceOpen(const String8& cameraId) { in prepareDeviceOpen() argument
263 if (isBackwardCompatibleMode(cameraId)) { in prepareDeviceOpen()
285 if (mOpenedCameraIds.indexOf(cameraId) == NAME_NOT_FOUND) { in prepareDeviceOpen()
286 mOpenedCameraIds.add(cameraId); in prepareDeviceOpen()
292 status_t CameraFlashlight::deviceClosed(const String8& cameraId) { in deviceClosed() argument
293 ALOGV("%s: device %s is closed", __FUNCTION__, cameraId.string()); in deviceClosed()
302 ssize_t index = mOpenedCameraIds.indexOf(cameraId); in deviceClosed()
305 cameraId.string()); in deviceClosed()
314 if (isBackwardCompatibleMode(cameraId)) { in deviceClosed()
346 status_t ProviderFlashControl::hasFlashUnit(const String8& cameraId, bool *hasFlash) { in hasFlashUnit() argument
350 *hasFlash = mProviderManager->hasFlashUnit(cameraId.string()); in hasFlashUnit()
354 status_t ProviderFlashControl::setTorchMode(const String8& cameraId, bool enabled) { in setTorchMode() argument
356 cameraId.string(), enabled); in setTorchMode()
358 return mProviderManager->setTorchMode(cameraId.string(), enabled); in setTorchMode()
361 status_t ProviderFlashControl::turnOnTorchWithStrengthLevel(const String8& cameraId, in turnOnTorchWithStrengthLevel() argument
364 cameraId.string(), torchStrength); in turnOnTorchWithStrengthLevel()
366 return mProviderManager->turnOnTorchWithStrengthLevel(cameraId.string(), torchStrength); in turnOnTorchWithStrengthLevel()
369 status_t ProviderFlashControl::getTorchStrengthLevel(const String8& cameraId, in getTorchStrengthLevel() argument
372 cameraId.string()); in getTorchStrengthLevel()
374 return mProviderManager->getTorchStrengthLevel(cameraId.string(), torchStrength); in getTorchStrengthLevel()