Lines Matching refs:hasFlash
144 bool hasFlash = false; in findFlashUnits() local
150 res = mFlashControl->hasFlashUnit(id, &hasFlash); in findFlashUnits()
164 mHasFlashlightMap.add(id, hasFlash); in findFlashUnits()
296 status_t ProviderFlashControl::hasFlashUnit(const String8& cameraId, bool *hasFlash) { in hasFlashUnit() argument
297 if (!hasFlash) { in hasFlashUnit()
300 *hasFlash = mProviderManager->hasFlashUnit(cameraId.string()); in hasFlashUnit()
349 bool hasFlash = false; in setTorchMode() local
351 res = hasFlashUnitLocked(cameraId, &hasFlash, /*keepDeviceOpen*/true); in setTorchMode()
359 if (!hasFlash) { in setTorchMode()
386 const String8& cameraId, bool *hasFlash) { in hasFlashUnit() argument
389 return hasFlashUnitLocked(cameraId, hasFlash, /*keepDeviceOpen*/false); in hasFlashUnit()
393 const String8& cameraId, bool *hasFlash, bool keepDeviceOpen) { in hasFlashUnitLocked() argument
396 if (!hasFlash) { in hasFlashUnitLocked()
419 *hasFlash = true; in hasFlashUnitLocked()
421 *hasFlash = false; in hasFlashUnitLocked()